Skadi Pack 01: Automation
lkuik edited this page Feb 18, 2021
·
4 revisions
Clone this wiki locally
Installing Skadi Pack: Automation
Download and execute the installation script with the following commands
wget -O /tmp/automation.sh https://raw.githubusercontent.com/orlikoski/Skadi/main/scripts/automation.sh
bash /tmp/automation.sh
This installation will do the following:
- Create new group
automationadmin - Create new user
ottomateand add toautomationadmingroup-
ottomateis disabled from authenticating with password (must use key pair) -
ottomateis used to execute all items related to automation (gRPC and SSH options)
-
- Install all Skadi automation files to
/var/lib/automation - Setup automation log file in
/var/log/automation/skadi_automation.log - Configure Systemd service
grpc_automation.serviceto control the gRPC automation - Add UFW firewall rule to allow port 10101 from anywhere to use with gRPC service
NOTE: Highly recommended to restrict this to just the automation server
Post Installation
- Refer to Skadi wiki for remaining items required to use a RSA keypair for SSH based automation
gRPC Server Automation Instructions
- Use
sudo systemctl status grpc_automationto verify service is running - Use
tail -f /var/log/automation/skadi_automation.logto check the automation enginerc.pylogs - Use
sudo journalctl -f -u grpc_automationto check the gRPC automation servicerc_server.pylogs
To verify Automation is working run the following:
/usr/bin/python /var/lib/automation/rc_client.py localhost -h
gRPC Client Automation Instructions
- Use the files in
/var/lib/automationand specifically/var/lib/automation/rc_client.pyto send automation commands to Skadi - Usage:
/usr/bin/python rc_client.py <server IP address or routable domain name> <commands to send to rc_server.py>