Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automation]

the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"

0
votes
0answers
6 views

Totally automating Apache on whatever distro

The problem I'm having seems to be true to all distors but let's assume I use an all-default debian-stable (server), and ran apt update -y. Installing, upgrading, restarting as well as enabling or ...
0
votes
1answer
41 views

Haproxy healthcheck and backend section generation

I have a lot of sites and I want to do a http healthcheck for each one. Does it mean that I need to make a backend section for each site? If so, I need to generate it somehow. Can I achieve it with ...
0
votes
1answer
31 views

lineinfile module creating a file if it doesn't exist even I use “create=no”

--- - hosts: testhost become: yes tasks: - name: change user profile copy: src=/tmp/profile dest=/home/test/.bash_profile force=no owner=test group=test - name: update bashrc ...
0
votes
1answer
17 views

Ansible cloud stack module nested loop for security groups and ports

I'm trying to set multiple security groups at once using the ansible cloud stack module. The yaml file currently looks like this: - name: add inbound tcp rules to security group web ...
1
vote
0answers
22 views

Multi VPS: Best practice for semi-automated upgrades?

I've got many virtual private servers, each needing some apt-get upgrade -y lovin' from time to time. (Ubuntu 18.04) Problems I face: I don't have time to upgrade each one manually. I don't want to ...
0
votes
2answers
37 views

Is it possible to deploy the 'Start stop VM's during off-hours' solution of Automation account in ARM templates?

I need to deploy an Azure automation account to my resource group. This to add the module (start/stop VM's during off hours solution to my environment) For the automation account I succesfully used ...
-1
votes
1answer
63 views

Automating windows configuration [closed]

This is more a workstation question than server itself, but I believe is best suited in this site: I want to automate Windows 10 Pro workstation configuration settings. I want to be able to automate ...
0
votes
1answer
11 views

Use serviceescalation to “de-escalate” notifications

Is it OK to use the serviceescalation Nagios facility to reduce frequency of the notifications sent? The idea is to setup a generic service template with frequent notifications by default and provide ...
0
votes
0answers
27 views

How to prevent boot again from PXE NIC after successful automated installation of CentOS on Vm using Kickstart Configuration file?

I have successfully installed (Automated) CentOS 7 using PXE Network boot with kickstart Configuration file. I have configured PXE Server on a VM & installing CentOS 7 on PXE Client VM. The ...
0
votes
1answer
29 views

How to automatically start a cloud windows instance periodically?

I have zero experience with windows server management, azure, etc. and therefore asking for an advice here. There exist an automation script that needs to be executed every N days, it takes ~10 ...
0
votes
1answer
78 views

Automatically block Gitlab users, removed from LDAP

I've migrated this question from StackOverflow. I'm administering a Gitlab-Omnibus (Community Edition) instance in our company as an additional duty. Gitlab uses company's Active Directory server ...
0
votes
0answers
28 views

Target salt minions with a public IP address

I'm just getting started with SaltStack. I'd like to target states for firewall configuration only at machines that have a public IP address. I know about the IP/subnet targeting, the various ip_* ...
0
votes
0answers
107 views

Vagrant ubuntu box configure keyboard layout

I am deploying a vagrant ubuntu 18.04 box, using the default bionic64 box. Installing the gui with these deb packages, via apt install: gnome language-pack-de language-pack-gnome-de even setting ...
0
votes
2answers
26 views

Restarting a script after X interval of time

Not sure I am making sense or not: I run a script on multiple AWS instances under a screen session. The scripts are Python-based and stopped working after a while due to network issue of Amazon Arora ...
0
votes
0answers
28 views

Trend Micro Anti-Virus / Deep Security Unattended Installation

I would greatly appreciate if someone with operational knowledge about Trend Micro Deep Security, could verify or debunk the following statement: The software cannot be installed unattended client-...
0
votes
0answers
42 views

Windows Answer file is not activating the product key

I'M trying to enable the product key of our Windows Server with an answer file. The answer file is created with Windows System Image Manager.Is finishing the Answer file without errors but when i ...
0
votes
2answers
64 views

How to use ssh client without local OS login

I have server-like machines (they are not workstations, fully automated) and I need them to be able to run a script that opens a client ssh connection (to a 3rd party server such as github), and I ...
0
votes
1answer
19 views

Open graphical Windows applications without monitor and control it

I have an Windows server with multiple applications installed on it. For each application we created a macro that interects over it. For example, open the ERP -> go to product registration -> add a ...
0
votes
1answer
18 views

Implementing an automated mail backup/forwarding service?

I have a senario in mind but I'm not sure how it should be implemented: I have a mail service with an mx record and an IP address. This mail server could be down sometimes. The incoming mails to this ...
1
vote
2answers
145 views

How to install a MySQL plugin with Ansible?

So far we've been using the Geerlingguy Ansible role for all of our database deployments, but now I'm expanding our usage of it for a new project, and it doesn't seem installing plugins is a supported ...
0
votes
1answer
310 views

How to correctly install Cygwin with chosen packages from powershell?

I'm working on a Powershell automation script that deploys various dependencies on a Windows Server box (as prep for creating an AMI from it) and one of the dependencies is Cygwin with various ...
0
votes
0answers
13 views

Looking for a detailed frame explanation of IEC 60870

consider the following scenario: A bunch of different controllers is sending information to a common sink, while making use of different protocols such as Modbus, Profinet, etc. Now this sink has to ...
0
votes
1answer
20 views

Check File integrity with Hash value on Rudder

someone have an idea to how to check file modification / integrity on rudder with Hash value ? We want to create somes rules who check a lot of Hash files and raise an alert if on hash change.
1
vote
0answers
162 views

Automate jenkins slave node cleanup

So here is the scenario: Currently to cleanup space on Jenkins slave we have a job(a jenkins job itself) scheduled to run every day to do the cleanup. But many a times disk get full between scheduled ...
2
votes
2answers
384 views

How can I locate Registry key for Group policy settings?

How can I locate the registry entry for the below values Perform volume maintenance tasks Lock pages in memory under Local Computer Policy\Computer Configuration\Windows Settings\Security Settings\...
0
votes
1answer
251 views

Auto logon fails on Windows 10 1709 devices

Recently we re-imaged a computer lab to bring it up to spec with the latest updates, and some of the computers in this lab (HP EliteOne 800 G2 all-in-ones) are run without keyboard or mouse, and are ...
1
vote
0answers
273 views

How to add Jenkins slave (Java web start) using CURL?

I was able to create a bash script to use Curl (doCreateItem) to create SSH slave which would show up in Jenkins ---> Nodes without a problem, My question is how to create slave with Java Web start ...
0
votes
1answer
96 views

Is Azure Automation DSC at all suitable for configuring client machines (not servers)?

I am trying to create a DSC configuration for a developer workstation and facing difficulties. A developer machine has a well defined owner - the developer who is going to get it. Some ...
0
votes
0answers
85 views

dnsmasq not responding to Cisco tftp broadcast requests (tftp://255.255.255.255/network-confg)

I'm trying to automate a Cisco router basic initial config. During the initial boot, these routers attempt to pull a network config via TFTP from 255.255.255.255, but this is failing: %Error opening ...
8
votes
5answers
8k views

Ansible: Conditionally define variables in vars file if a certain condition is met

Depending on the value(True/False) of a variable defined into the group_vars I am trying to define some variables in a vars file. Their value depends on the group var's value. My current var file ...
1
vote
1answer
83 views

Best practice for auto-healing servers in the cloud (outside of AWS)?

We are in the process of moving from AWS where we have a highly available system setup using EC2's auto scaling feature. However, we aren't using this to change the size of the pool based on resource ...
1
vote
1answer
138 views

Puppet caching resources

I'm trying to debug a caching issue with Puppet on RedHat 7. My versions are at the bottom of this question. Below is an excerpt from my site.pp manifest. This is all fine and the Nagios check is ...
0
votes
0answers
78 views

How to automate login to a set of PCs without ssh or vnc in linux?

I am working in an IT School that has 50 PCs per lab that run Fedora 26. In the labs during examination we have to manually login to all the PCs since we are not exposing the username and password to ...
0
votes
0answers
17 views

auto update 1 vhd when another collects the updates

I have a server running server 2012, failed at making a shared vhdx. Instead I mounted the created vhd to another computer installed the games and programs I wanted. Unmounted the vhd and the copied ...
-1
votes
1answer
53 views

We're building Windows VMs from ISO, on VSphere. What are my automation options?

We're an old-school Windows software shop, with a large legacy install base, running both client and server applications on various versions of Windows. As you might imagine, our testing matrix is ...
0
votes
1answer
394 views

Windows Service vs. Task Scheduler with startup trigger

I'm running a desktop application as a service with the help of NSSM (Non Sucking Service Manager), which is a wrapper for applications which aren't made to run as a service to be run as a service. I ...
0
votes
1answer
70 views

Keep a server alive for each file in a directory

Current situation I am running a linux server (Arch). I have a server application which is executed like this: run_server filename --port=xxxx I have written systemd service files. Each one keeps a ...
0
votes
1answer
38 views

2 ESXi servers: NFS for storage, second for VMs. Startup considerations

I'm planning to test this configuration: server A - ESXi with virtual ZFS storage appliance exported as NFS, server B - ESXi with Datastore2 connected to NFS, VM files on Datastore2. How to ...
1
vote
2answers
1k views

How to merge variables of type hash across different variable files in ansible?

I have two YAML variable files which are reused for many playbooks: # playbook/group_vars/all settings: a: 1 b: 2 # inventory/group_vars/main.yml settings: c: 3 I want settings to be equal {...
1
vote
1answer
83 views

Puppet not passing parameter to custom module

So I have a custom module that just sets up a simple nginx server, to learn how to properly make puppet modules. But it seems that my values when I declare the class aren't getting passed in. It ...
0
votes
1answer
362 views

OpenVPN fails to reconnect with wake-on-LAN after long sleep

I have a RaspberryPi on my parents' house with PiVPN set up and configured to provide a personal VPN service for me and a few friends. This VPN has worked flawlessly since the beggining, I have used ...
0
votes
2answers
288 views

Terraform-use same tf file for multiple deployment?

resource "aws_instance" "win-example" { ami = "${lookup(var.WIN_AMIS, var.AWS_REGION)}" instance_type = "t2.medium" count="${var.count}" vpc_security_group_ids = ["${var.security_group_id}"] ...
1
vote
2answers
28 views

Automated software testing on real hardware

I'm currently working on a small testing farm at work and especially the part of resetting the machines after a test was run gives me some headaches. Before we decided to get a couple of dedicated ...
1
vote
1answer
165 views

What means 3 numbers in manual partitioning of hdd in preseed for ubuntu?

i see in official documentation this: #d-i partman-auto/expert_recipe string \ # boot-root :: \ # 40 50 100 ext3 ...
0
votes
0answers
34 views

Nginx webapp conf + Certbot automation

I run a Ubuntu 16.04 Nginx server environment used to run personal, small-scale websites from different CMSs (generally, WordPress). I'm looking for some way, likely a FOSS, payless, communal utility,...
0
votes
1answer
335 views

How to make custom partitioning of hdd via preseed?

According to official debian manual (https://www.debian.org/releases/stable/amd64/apbs04.html.en), i saw: #d-i partman-auto/expert_recipe string \ # boot-root :: ...
0
votes
3answers
104 views

how to get the version of mysql without running anything relate to mysql itself?

there are many ways to retrieve version of a mysql distribution, such as : running a SQL statements in the server by: select version(); or show global variables like 'version'; mysqld --version ...
1
vote
2answers
2k views

How to run different role for different hosts in single ansible playbook?

I have 3 ansible playbook. my_ansible ├── hosts ├── play1.yaml ├── play2.yaml ├── play3.yaml └── roles    ├── role1    ├── role2    └── role3 hosts [play1] host1 [play2] host2 [play3] host3 ...
0
votes
0answers
643 views

Powercli Build and install VM from ISO

I assume this would be easy. However i cannot get powercli latest to mount a cd with an iso and boot from the ISO to install the OS(windows). $NewVMParams = @{ 'VMHost' = 'MyESX1' 'Name' =...
3
votes
1answer
483 views

dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails

(N.B. In this question, a leading # indicates a root prompt, not a comment. Also, I have replaced the actual hostname with <myhostname>.) As the debconf (7) man-page states, dpkg-reconfigure ...