-
Notifications
You must be signed in to change notification settings - Fork 70
Skadi Pack 01: Automation
@AlanOrlikoski edited this page Apr 12, 2018
·
4 revisions
wget -O /tmp/automation.sh https://github.com/orlikoski/Skadi/blob/master/scripts/automation.sh
bash /tmp/automation.sh
- Create new group
automationadmin
- Create new user
ottomate
and add toautomationadmin
group-
ottomate
is disabled from authenticating with password (must use key pair) -
ottomate
is 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.service
to 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
- Refer to Skadi wiki for remaining items required to use a RSA keypair for SSH based automation
- Use
sudo systemctl status grpc_automation
to verify service is running - Use
tail -f /var/log/automation/skadi_automation.log
to check the automation enginerc.py
logs - Use
sudo journalctl -f -u grpc_automation
to check the gRPC automation servicerc_server.py
logs
/usr/bin/python /var/lib/automation/rc_client.py localhost -h
- Use the files in
/var/lib/automation
and specifically/var/lib/automation/rc_client.py
to 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>