4 Commits

Author SHA1 Message Date
Jeremy Stanley
4ba760b81b Disable the salt minion data cache on master
* modules/salt/templates/master.erb: A bug with the salt mine was
preventing communication with CentOS minions after about 24 hours.
Disabling the minion data cache, which we don't currently use, works
around it.

Change-Id: I4f68305ee6215333bd1491fba859b0607bc25137
2013-10-01 19:03:11 +00:00
David Boucha
b085abb41b Give Jenkins the ability to trigger puppet runs
* modules/openstack_project/files/salt-trigger.sudoers: Allow the
jenkins user to send messages to the salt master.

* modules/openstack_project/manifests/salt_trigger_slave.pp: Add the
sudoers inclusion above to the salt-trigger slave.

* modules/salt/manifests/master.pp: Change ownership on the existing
salt configuration directory on the master to belong to the salt
user, and add the file structure for the new reactor components.

* modules/salt/templates/master.erb: Add reactor configuration to
run tests.sls when receiving a trigger named jenkins.

* modules/salt/templates/tests.reactor.erb: Define a puppet command
which will be run on all minions.

Change-Id: I346bb28e5b4d53618855a28f616f7c5ed0e60dc7
2013-09-12 23:37:30 +00:00
Clark Boylan
cd64a94b4c Run salt master as non root user.
The salt master service should not run as root. Run it as salt instead.

Change-Id: Ia5cdedf8c98684e25c5d88c59130cae3361c9fc3
Reviewed-on: https://review.openstack.org/14311
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-10-11 21:23:47 +00:00
Clark Boylan
71e96df67f Add saltstack puppet module.
Add a puppet module to install saltstack minion and saltstack master.
This is to be used to bootstrap saltstack. As a result the only
configurable option here is the master node that minions should talk to.
Eventually salt master should have a setup similar to puppet to manage
its own configs.

Change-Id: I27cb902f043c4f4a2a53c599c08ae94df297cc97
Reviewed-on: https://review.openstack.org/14235
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-10-10 17:52:29 +00:00