Mine
Merge request reports
Activity
Filter activity
The following are some changes that I made as a solution for the issue of automatically updating fernet-keys on keystone. This uses some configuration changes on master and implements the event and reactor system.
1.apps/openstack/keystone/files/beacons.conf
- This file adds the beacons.conf file on keystone that instructs the keystone minion to send a beacon to the master anytime /etc/keystone/fernet-keys directory is modified. Whenever keystone changes its fernet-keys then master should be notified
- apps/openstack/keystone/files/hash
- contains the beacons.conf hash
- apps/public/nacl/configure-nacl.sls
- Renamed the sync_grains.conf file to reactor.conf and pointed it to the reactor.conf file. I also added more configurations in the /etc/salt/master.d directory on nacl
- apps/public/nacl/files/file_recv.conf
- Added this configuration on master so that it can receive pushed files from minions. This option is default off on master config
- apps/public/nacl/files/fileserver_backend.conf
- Added minion to the fileserver backend in order to receive files from minions
- ../hash
- Updated hash
- apps/public/nacl/files/minionfs_blacklist.conf
- Added configuration file to master that states all minions other than keystone are able to push/access files on the master
- apps/public/nacl/files/minionfs_mountpoint.conf
- Add mount point for minion files so a new directory wouldn't have to be created on master. All minion files pushed will have the path of salt://minionfs//path/of/file
- apps/public/nacl/files/minionfs_whitelist.conf
- Add keystone minion to whitelist of files on the master that can be accessed via cp.push
- apps/public/nacl/files/reactor.conf
- Added reactor file on master that contains reactions to events that occur on minions. So far there are only 2 reactions and that is when a minion starts then sync_grains.sls state is automatically run. Next if a beacon is received from keystone-0 then the fernet-keys.sls state is run
- ../sync_grains.conf
- deleted legacy file from master
- pillar/apps/openstack/keystone/configuration.sls
- Added inotify package to keystone that installs beacons
- reactor/fernet-keys.sls
- This file states that if the master gets a beacon notification from keystone-0 then do a cp.push_dir of that file to all other minions. This is so that all the kernet-keys on the keystone minions will be in sync.
- /apps/openstack/keystone/configure-keystone.sls
- This is a state file added to push the fernet keys directory to master if there are any changes to that file.
@kyle.w.jefferson Ok this is good work - as soon as you run some basic tests to make sure there is not broken syntax, etc. let me know and I will merge.
Please register or sign in to reply