Questions tagged [automation]
the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"
140
questions with no upvoted or accepted answers
6
votes
1
answer
2k
views
How do I secure the access token, on Linux, to remote, automated secrets stores like Hashicorp Vault?
There seems to be a bit of a "chicken and egg" problem with the passwords to the password managers like Hashicorp Vault for Linux.
While researching this for some Linux servers, someone clever asked, ...
5
votes
1
answer
697
views
Puppet Error: undefined method 'captures'
I posted this question on the networkengineering SE site, but it was determined to be off topic.... blah.
I'm toying with the idea of using puppet for core network device configuration to increase ...
4
votes
1
answer
104
views
Imaging mac fully remote keyboard free?
How can I image a mac remotely over the network with no access to the machine (no keyboard)?
UPDATE: We may be having issues with the reboot process after selecting a network boot disk, see edit ...
4
votes
0
answers
539
views
Automate the LXD configuration interactive setup?
I realize lxd init has an interactive setup for networking, etc. I'm looking to automate some VM's running LXD and was wondering if there is a nice CLI command that documents this configuration as a ...
3
votes
1
answer
814
views
How to tell (in Powershell) whether Install-ADDSForest is complete?
I have a powershell script that runs Install-ADDSForest to set up a lab environment. The script is actually run via VMware tools. During the Install-ADDSForest process, the Windows server (2012) will ...
3
votes
0
answers
85
views
Automatic on premise server deployment
I'm new to automatic deployment and would like guidance from experts on the the best way to efficiently deploy approximately 75 vms (both windows and linux vms) on 7 vmware esxi 5.5 hosts (All hosts ...
3
votes
2
answers
287
views
Set-AzureRmAutomationModule is unable to find Automation Account
I am trying to upload a custom DSC module to our Azure Automation account.
C:\Code\Epitec DSC [master ≡ +1 ~1 -1 !]> Set-AzureRmAutomationModule -Name "WindowsUpdate" -ContentLinkUri "{ContentURL}....
3
votes
0
answers
253
views
Creating an Openstack user with only reboot permissions
What is the best approach for setting up an Openstack user that is limited to only rebooting servers using the Web API.
The user needs to be able to access servers under different tenants, by using ...
3
votes
2
answers
346
views
Securing database credentials in automated deployment of nodes
In a situation where you're deploying nodes (e.g. amazon ec2), what are the recommended best practices for securing things like credentials to other resources? Without solving for scale, we might ...
3
votes
2
answers
211
views
Automated Syslog Error Solution Finder
Any automated syslog solution finding frameworks? I want my central syslog server to email a list of problems, their severity and suggested solutions.
There have been several questions about ...
2
votes
0
answers
79
views
Deploying docker instances based on user input
I have a use case where I would like to automatically deploy some services (say 2-3) whenever a user signs up. The services are available as pre-built docker images that are the same for all users, ...
2
votes
1
answer
5k
views
How to run jenkins build, in multiple servers with ssh-key
Trying to figure out how can I run a Jenkins build on multiple servers with my ssh-key connection.
For now I used SSH remote host plugin, but this plugin is good for 1,2,3,4.. servers and not for 100+....
2
votes
0
answers
341
views
RouterOS shell command result with Ansible is different?
You will see, I have a little problem with the execution of an Ansible task, since I am giving it the same command that I work with in the Mikrotik shell, but the result is a little different and I ...
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 ...
2
votes
0
answers
29
views
Manage passwords stored in web configs located on a server
We have a number of servers that perform different functions and every 60 days we do password refreshes. Normally this isn't an issue but we have these passwords stored in web configs all over the ...
2
votes
2
answers
709
views
Alternative way to disable cron writing to /var/log/syslog
There are answers that suggest changing this:
*.*;auth,authpriv.none -/var/log/syslog
#cron.* -/var/log/cron.log
Into this:
*.*;cron,auth,authpriv.none -/var/...
2
votes
0
answers
614
views
How to start a data collector upon high CPU load condition?
I have a Windows 2008R2 server that experience high CPU load for several minutes about once every couple of weeks.
Unfortunately, when these events occurs, logging into the system through RDP or at ...
2
votes
1
answer
2k
views
Keep a fifo open by shell-script
I try to start processes by script, which can interact.
EDIT: The general issue is to start these processes via php. After the process is started, another php-script (or the same running again) shall ...
2
votes
1
answer
72
views
Is it possible to tell what machines I'm logged in to (but disconnected from)?
I infrequently work on about 20 Windows servers via remote desktop. There are times when it'd be really convenient to know if and where I have disconnected sessions open.
Is there a powershell script ...
2
votes
1
answer
126
views
Creating new VMs for software deployments
At work we're in the process of moving our production apps to a VM infrastructure, and so far so good.
One of the ideas we're throwing around is related to our software deployment process. The idea ...
2
votes
1
answer
1k
views
Stop automatic reboot with gpedit shutdown script in Windows 2k8
I am search for a way to validate and maybe stop an automatic reboot under windows.
E.g. automatic reboot is initialized by windows update.
When adding a shutdown script with gpedit this script gets ...
1
vote
0
answers
96
views
How to export Azure REDIS data to BLOB storage with a Automation Runbook?
I'm struggling with setting up a runbook that overnight exports my REDIS Premium data to a BLOB container. This might be due to my lack of Powershell experience.
So far I came up with this:
# Ensures ...
1
vote
0
answers
37
views
Scripted upload to AWS cloudshell environment
We maintain dozens of developer accounts on AWS and for maintenance purposes it would be amazing if on all cloudshell environments we would have a set of scripts available. It is possible to upload ...
1
vote
0
answers
169
views
Add a domain user profile to a machine following offline domain join (DJOIN.exe)
I work for an MSP.
I have made an automation script within our RMM system (Connectwise Automate) which when ran on a device will find a domain controller within the same Client container as the device,...
1
vote
1
answer
44
views
Unsure how to proceed from DigitalOcean droplets and CircleCI deployments to just automating the whole setup
I work within a small dev team and our current infrastructure is setup with GitHub for code, CircleCI to deploy these to our DigitalOcean Ubuntu droplets whenever something is merged into the develop ...
1
vote
0
answers
532
views
GPG4Win Decrypt Multiple files to a Different Directory
I have a requirement to download PGP files from a 3rd Party SFTP server and then decrypt them and move to a the company file server. I am going to use WinSCP to download the files to an Inbound ...
1
vote
0
answers
119
views
What is the best way to stream 24/7 content from a server, which can be exported as an m3u file?
I have 24 Lectures for my students, and I teach online to many people. I am trying to setup a server with IPTV software, so they can view the lectures going 24/7 and have VOD for other content related ...
1
vote
0
answers
117
views
Child application doesn't start when run from windows scheduled task
I'm trying to schedule an automation script.
The
1. .bat file starts monitor script (python)
2. monitor script (python) does network request for jobs from other system
3. if job, monitor script (...
1
vote
2
answers
790
views
how to attach snapshot policy by label to all the vms in my project?
I have created the snapshot schedule policy with label daily,weekly,hourly.But I want an automate way so whenever i create the vm label based policy should be assigned to vm. or
automatically attach ...
1
vote
1
answer
51
views
Configuration management nodes in azure
Viewing the pricing information for Azure automation under Configuration management is lists nodes? What are these? In partciualr Non-Azure nodes I can't work it out from the context
https://azure....
1
vote
0
answers
1k
views
Using Chef for setting Windows Active Directory GPO policies on domain controller
I am looking to use Chef to automate the setting of active directory controlled group policy settings (typically on the primary PDC per forest).
I cant find any specific AD GPO functions, on the ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
1
vote
1
answer
787
views
Chef create config file based on hostname
New to chef. I have written a recipe to create a file from template based on hostname. If the hostname matches server 1 and server 2 create from template1, else create from default template. However ...
1
vote
0
answers
829
views
Service monitoring through salt reactor and beacon
I try to monitor the service through salt reactor and beacon. If event happens (eg: nginx service stop on one minion), need to write it to a file in salt master.
I have no idea how to call the event ...
1
vote
0
answers
40
views
Monitor vSphere DRS concurrent vmotions count
We are going to enable DRS on the vSphere 5.5 cluster and want to enable email notifications if more than X VMs are migrated simultaneously.
I found that it's possible to send a message when VM is ...
1
vote
1
answer
2k
views
How to Auto-deploy with Jboss
How to automatically deploy a project with jboss as 7. Is there a way to automatically deploy a Project using the Jboss-cli.sh in Jboss as 7?
1
vote
0
answers
287
views
How to do I create linux VM with ssh public on azure automation
Right now, I am creating Linux VM without public key on azure automation. My aim is to create linux VM with ssh public key on azure automation. How to get ssh public key from "accets" on azure ...
1
vote
0
answers
210
views
Puppet device wildcard names for nodes?
I'm using Puppet's device management to mange some Cisco devices.
Right now my device.conf looks like this:
[someCity]
type cisco
url telnet://puppet:[email protected]/
[someOtherCity]
type cisco
...
1
vote
1
answer
2k
views
Automate the OOBE setup steps for Windows 10
I am not sure if this is possible. I have been reading a bit about answer files but that seems to be more for the actual installation of windows to me.
This is the process we currently use:
Install ...
1
vote
1
answer
142
views
Kerberos master server to slave server automation?
I've set up Kerberos in my workplace running on Centos 6 boxes, and successfully propagated the master server database to the slave and also set up a cron job to update it automatically every 5 ...
1
vote
3
answers
1k
views
How to increase heap size for ws_ant.sh when deploying on WebSphere 8.5 (64-bit Linux)
TL;DR -- How do I give ws_ant.sh and/or the <wsInstallApp> task more heap at runtime?
I am attempting to deploy a relatively large (~160-MB) EAR file to WebSphere 8.5 running on a 64-bit Linux ...
1
vote
0
answers
127
views
Process-wide VPN connection via openconnect
I'm using openconnect to connect to a remote endpoint and SSH onto the machine inside the remote network. The problem is, when I do create the connection, the machine I do it on is unresponsive for ...
1
vote
0
answers
2k
views
Java Deployment with automatic updates (without user confirmation)
Here in our company our users use 1 Java application which is updated every monday and always needs the latest java update. We install Java on Clients through SCCM 2012 R2.
I already know how to do ...
1
vote
0
answers
1k
views
Start/Stop IIS site automated as an administrator, which is not a built-in "Administrator"
There are several ways to start/stop an IIS site, in a way that does not require logon to the system. For example:
1) Command line via APPCMD:
C:\windows\system32\inetsrv\appcmd.exe stop site /site....
1
vote
0
answers
852
views
Automate an interactive command which use /dev/tty
well pretty much it's in the title.
I've a interactive command. This one ask for a password through /dev/tty. I use this command within a shell script. So the command should read the information ...