9 Commits

Author SHA1 Message Date
James E. Blair
11238771d5 Write ansible log to fileout in apply test
So that ansible output lives with the puppet output.

Change-Id: Ia3022096a8a006b1b1eba864df3809b3e66cf7fb
2018-09-06 15:15:40 -07:00
Monty Taylor
a634593a05
Set mgmt_hieradata in puppet group_vars
This is not a variable describing the system-under-management
bridge.openstack.org - it's a variable that is always true for all
systems in the puppet group.

As a result, update the puppet apply test to figure out which directory
we should be copying modules _from_ - since the puppet4 tests will be
unhappy otherwise.

Change-Id: Iddee83944bd85f69acf4fcfde83dc70304386baf
2018-08-17 14:25:50 -05:00
Monty Taylor
92c9a7c869
Clean up puppet variables and playbooks
The puppet playbooks were some of the first we wrote, so they're
slightly wonky.

Remove '---' lines that are completely unnecessary.

Fix indentation.

Move some variables that are the same everywhere into
ansible variables.

Put puppet related variables into the puppet group_vars.

Stop running puppet on localhost in the git playbook.

Change-Id: I2d2a4acccd3523f1931ebec5977771d5a310a0c7
2018-08-17 09:41:12 -05:00
Paul Belanger
e72ed2fe58
Create hosts file for ansible-playbook
Be explicity with our inventory file, to avoid ansible-playbook from
skipping hosts.

Change-Id: I29260bd97432a443e5989fa4a883e8e8d37307fd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-18 13:40:51 -04:00
James E. Blair
e82731f0f3 Run ansible apply test in parallel
Change-Id: Ic5b5ef5ca115ca244ebf86079f9b192fbb13fad6
2016-10-04 15:29:25 -07:00
James E. Blair
a01bec1fc6 Use ansible for puppet apply test
This is needed since the hiera configuration is in the ansible
role.

Have puppet append its output directly to our per-test output file.

Rename that file with a FAILED suffix for easy identification when
looking at the results in the published log directory.

Change-Id: Ie2a028b9e0179168d279bcf33de7f997cdfdbc8d
Depends-On: I0db01d128258f78e9b196354799a80774f6c6808
2016-10-04 22:29:00 +00:00
James E. Blair
ade79eb3f2 Remove -e from apply test applier
The script that is run by find on each apply test file has -e set,
yet, it attempts to save the exit code from puppet apply and keep
running even in error.  Remove -e so that it does not immediately
exit and can continue as designed.

Change-Id: I1a24e80f42be8d028ecc3eb02df54b49f811fff4
2015-07-08 16:30:59 -07:00
Paul Belanger
be7adfa7f2 Display puppet apply results right after running
Otherwise, there is a case where the results are not rendered properly
because the shell exits.

Change-Id: Ica05615cad4fcc15c9d941d16f74cb4f68bc5a99
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-07-08 16:36:36 -04:00
Spencer Krum
284749fb4d Print the node definition before apply test
This makes it easier to tell which node definition is being evaluated
Because xargs -P doesn't do bash functions, some of the apply_test has
been moved into test_puppet_apply.sh. All the test snippets and test
output is being recorded in files in tools/opt, then catted for the
user.

Change-Id: I4fb77f93f9e9a7216b62634438a11d8d297bdefe
2015-06-12 17:11:25 -07:00