Questions tagged [automation]
the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"
643
questions
2
votes
2
answers
359
views
How can I bulk update CloudFormation stacks while keeping the parameters unchanged?
Let's say I have a number of CloudFormation stacks created from the same template. After making changes to the template, I want all stacks to be updated to the new version of the template.
I have ...
0
votes
1
answer
2k
views
Azure Update Management for Windows VMs - Agent Not Configured
I am trying to manage Windows updates via Azure Update Management. I have successfully (or at least that is what the wizard told me) onboarded my VMs. From the Update Management section on the VMs you ...
1
vote
1
answer
3k
views
Unsupported parameters for (expect) module error Ansible?
I am writing a playbook for automating anaconda installation . I am using Ansible expect module to answer the installation prompts.
Here is my code.
---
- hosts: all
become: yes
...
1
vote
2
answers
187
views
How to automate local Outlook to Exchange migration of 40 users
I am currently dealing with a site which has about 40 users, each with his/her own local Outlook setup on their PCs (currently connecting via POP/IMAP to the mail server).
They have asked me to ...
0
votes
1
answer
706
views
Azure - automating events based on new blob storage file triggers
I'm looking into automating some stuff in Azure and wanted to ask for tips.
The invironment: a VM that creates some local db backups, then sends them via azcopy to Blob Storage.
The goal: each time ...
0
votes
1
answer
572
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
0
answers
2k
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
1
answer
234
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
1
answer
63
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 ...
11
votes
5
answers
14k
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 ...
-1
votes
1
answer
355
views
How to install WordPress without using the /wp-admin/install.php script?
I am trying to create a system that will install WordPress without any browser interaction like-
I will create a database
I will upload/create WordPress required database tables manually
(I have ...
0
votes
1
answer
2k
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
1
answer
348
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
1
answer
388
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
1
answer
3k
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
1
answer
207
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
0
answers
50
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
2
answers
425
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
1
answer
451
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
1
answer
23
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
1
answer
38
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 ...
1
vote
3
answers
2k
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 ...
1
vote
0
answers
1k
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
2
answers
147
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
0
answers
79
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
0
answers
362
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
2
answers
534
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
1
answer
224
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
1
answer
48
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
2
answers
1k
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 ...
1
vote
1
answer
4k
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
1
answer
42
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.
2
votes
0
answers
856
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 ...
4
votes
3
answers
63k
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
1
answer
566
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
0
answers
627
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
1
answer
150
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 ...
36
votes
9
answers
134k
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
1
answer
322
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
1
answer
1k
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
1
answer
181
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 ...
4
votes
3
answers
11k
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
1
answer
94
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
1
answer
143
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 ...
6
votes
2
answers
11k
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
1
answer
627
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
2
answers
2k
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
2
answers
560
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}"]
...
5
votes
4
answers
220
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 ...
5
votes
1
answer
2k
views
What do the 3 numbers mean in manual partitioning of HDD in Ubuntu preseed?
I see in official documentation this:
#d-i partman-auto/expert_recipe string \
# boot-root :: \
# 40 50 100 ext3 ...