Help:Project hosted salt master
|
This document describes how to host a salt master for a project.
Configure the instance as a salt master
- Add the role::salt::masters::labs::project_master class to the instance's puppet configuration
- Run puppet:
puppet agent --test --verbose
- Find the salt master's public fingerprint:
salt-key --finger-all
- Add the pub fingerprint to the salt_master_finger_override puppet option in the instance's configuration.
- Add the instance's FQDN to the salt_master_override puppet option in the instance's configuration.
- Remove the cached labs salt master key:
rm /etc/salt/pki/minion/minion_master.pub
- Run puppet:
puppet agent --test --verbose
Point other instances in the project to new master
For each instance:
- Add the master's pub fingerprint to the salt_master_finger_override puppet option in the instance's configuration.
- Add the master's FQDN to the salt_master_override puppet option in the instance's configuration.
- Remove the cached labs salt master key:
rm /etc/salt/pki/minion/minion_master.pub
- Run puppet:
puppet agent --test --verbose
Sign keys on the master
salt-key --accept-all