7 Commits

Author SHA1 Message Date
Clark Boylan
972aa56581 Use nproc puppet apply processes when testing
Puppet apply is single threaded and slow. We are testing many puppet
applies in noop mode so it should be safe to run them in parallel using
the number of cpus available to us. Make it so.

Change-Id: I66250d21258de7791e4f5fc0b013100efae63603
2014-05-30 11:54:04 -07:00
K Jonathan Harker
477db9c37c Get all of the puppet-apply errors
Instead of stopping at the first error, keep going and report all of the
errors.

Change-Id: I940f3a263164c8d1b13b525fb825d9f3eaf316a0
2014-05-29 15:21:55 -07:00
Jonathan Harker
4f25a69a89 Run the puppet apply test (requires sudo)
The test.sh script is not currently being run in any jobs, this change
removes the redundant validation code that's also in the puppet-syntax
job and creates a puppet-apply-test job that runs the test.sh script.

Running `puppet apply --noop` requires sudo, otherwise it will give
errors about refusing to run commands as other users.

Change-Id: Ie6b278d98390a8a5dd8bb24899c8c4083f5755c9
2014-05-28 17:02:16 -07:00
James E. Blair
56562d83f7 Revert "Adds second hiera data directory"
This did not seem to work.

This reverts commit ed57cef9c5a65f429e07ce253668cd23ceb6c45a
2014-03-31 21:06:37 +00:00
Spencer Krum
ed57cef9c5 Adds second hiera data directory
This allows hiera data to be split into two buckets: sensitive and
non-sensitive. Sensitive data is put where it always has been. Non-
sensitive data, such as users ssh keys and lists of packages can be
put into the data directory contained within the
openstack-infra/config git repository.

This also introduces a more complex hierarchy: data is now split on
osfamily and lsbdistcondename. Operatingsystem is left for
compatibility.

Change-Id: I3b3faeab837aa5732da01e96bbe0c19aa936a58d
2014-03-28 18:42:33 -07:00
Clark Boylan
94a7768dc3 Pass sysadmins list into node defs.
Pass the sysadmins list into each node definition. This allows us to
retrieve the data from hiera rather than hard coding it in the puppet
manifests. Also, update test script to use bogus sysadmin data when
testing.

Change-Id: Ide3560f16bce4d66fb95cc5021fc879476e6a712
Reviewed-on: https://review.openstack.org/12512
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-09-10 15:58:27 +00:00
Monty Taylor
aa559e7ea1 Add Clark's testing stuff to the tree.
This way, I can easily run it locally before submitting. Also, updated a
little bit to put in some hacks around hiera calls.

Change-Id: Ie4f3de6d81d915fbf06e896f31362c836fd244a9
Reviewed-on: https://review.openstack.org/10834
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-07 07:12:52 +00:00