A collection of scripts and configurations for automated deployment of Linode servers with monitors.
- A server installed with salt-master.
- jq for JSON filtering.
- A Linode personal access token aliased to
$TOKEN
.
This file contains a list of handles for those participating in training. It is a dependency for other scripts.
Automates the deployment of Linodes, adds Managed pub key, sets a lamp-stack state, and enables monitors.
Automates the deletion of monitors and Linodes.
Loops over trainee.list
to deploy Linodes.
Loops over trainee.list
to destroy Linodes.
Sets monitor "body" to equal an empty string.
Creates monitors for all Linodes deployed with linodes_create.sh
. Default "service_type" is URL
and default "address" is http://${ipv4}
.
Destroys all monitors deployed with monitors_create.sh
.
Disables all active monitors.
Displays the status of all enabled monitors.
salt '$minion' cmd.run 'mv /var/www /var/wwww'
salt '*-WP' cmd.run 'systemctl stop apache2'
salt '*-WP' cmd.run 'mkdir -p /var/lib/specialfiles/ && dd if=/dev/zero of=/var/lib/specialfiles/biglogs count=25934272 bs=1024 && systemctl restart mysql'
# You might need to restart mysql a few times to break it.
systemctl restart mysql
-
Linode plan renaming for Gen 6 Linodes broke the ability to create minions. Changes to Linode plan details can be edited in
/etc/salt/cloudprofiles.d/managed.conf
. -
Salt Master becomes out of date. To upgrade:
apt-get update apt-get upgrade salt-master