Stack Exchange Network

Stack Exchange network consists of 175 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
13 views

Automating the Okta AD Agent Installation

Our company will be implementing Okta as a single-sign on identity provider, and we're trying to automate the installation of the server side Okta agent so that we can avoid error-prone human ...
0
votes
0answers
21 views

Azure Automation watcher task pass data to action task

I have configured a watcher task to monitor a group in AD. If a new user is found, select the samaccountname and convert to JSON, then send to the action task using Invoke-AutomationWatcherAction -...
0
votes
0answers
20 views

Attach security groups to multiple EC2 instances

Is it possible to attach a new security group to all the EC2 instances in a specific region and keeping the old ones in place?
0
votes
0answers
41 views

SCOM maintenance mode trigger based on PowerShell script on client

Appreciate any suggestions with this, I am looking to make a scom configuration in such a way that it monitors for a PowerShell script deployed onto a server and puts that server to maintenance mode ...
0
votes
1answer
32 views

Ansible Digital Ocean APIv2 multidroplet deployment conceptual misunderstanding

I am having some conceptual trouble getting Ansible to work with the Digital Ocean APIv2 to deploy multiple droplets. Normally I would define a list of hosts in the Ansible hosts file and that's how ...
9
votes
4answers
1k views

Execute command when a file changes

I have a scenario where I am uploading .csv files to a specific folder, /tmp/data_upload, every day, and the old files are replaced by the new one. I need to run a Python script once the data is ...
0
votes
1answer
313 views

How do I use Get-PhysicalExtent on Get-PhysicalDisk?

No matter which server I try the PowerShell docs for Get-PhysicalExtent on, nothing works. I've documented this as a bug on GitHub: https://github.com/MicrosoftDocs/windows-powershell-docs/issues/514 ...
2
votes
1answer
112 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
61 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
116 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
33 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
26 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
40 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
77 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
14 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
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
177 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
40 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
168 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
27 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
35 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
45 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
67 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
19 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
230 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
479 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
23 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
237 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
678 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
292 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
290 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
105 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
109 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 ...
10
votes
5answers
11k 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
109 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
142 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 ...
-1
votes
0answers
79 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
18 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
54 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
489 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
73 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
118 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
423 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
322 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 ...
2
votes
1answer
213 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 ...