Commit Graph

7 Commits

Author SHA1 Message Date
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
Monty Taylor
b8f4081c2e
Use ansible group vars for futureparser flag
Now that we're running with ansible, we can set the futureparser varible
in the group_vars for the futureparser group and stop passing it as a
parameter explicitly.

Change-Id: I41fe283e96bb48a17f2acfe2ffd939223b5345e7
2018-08-16 14:02:50 -05:00
Colleen Murphy
5dd32fc501 Simplify group_names variable
As noted in [1] the group_names variable is a top-level variable and
doesn't need to be accessed via the hostvars object.

[1] https://review.openstack.org/#/c/572861/1/playbooks/remote_puppet_adhoc.yaml

Change-Id: Ic895f177019b31da34cdf91a6dd62dc99a649754
2018-06-20 23:53:26 +02:00
Colleen Murphy
9ce4a353e6 Add support for turning on the future parser
If a host is a member of the 'futureparser' group, pass the
'futureparser' option to the puppet role, which will turn on parser =
future in puppet.conf when manage_config is true and when the node isn't
already using puppet 4. Nodes can be added one at a time by adding them
to modules/openstack_project/files/puppetmaster/groups.txt.

Depends-On: https://review.openstack.org/572856
Change-Id: I54e19ef6164658da8e0e5bff72a1964b88b81242
2018-06-06 20:23:43 +02:00
Monty Taylor
082c5174b1
Turn off puppet reports
We have puppet configured to write reports when it runs. We used to
collect these and inject them into puppetdb. Since we don't do this
anymore, they're just a giant pile of files we never see.

Enable managing the puppet.conf file from ansible and then also turn off
the reports.

Change-Id: I55bef052bddc9b9ff5de76a4f0b2ec07f93f158c
2018-01-24 09:35:54 -06:00
Paul Belanger
a62b671ee7
Make strategy free default for all remote_puppet playbooks
Now that we've confirmed ansible-playbook works as expected, lets
enable the free strategy by default.

While playbooks with singles hosts will not benefit from this, we add
it to be consistent with our playbooks.

Change-Id: Ia6abdfaf5c122f88ead2272c8700e2c1f33c5449
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-13 16:53:31 -04:00
Monty Taylor
e8e201cc75 Add a playbook and script for doing adhoc puppet
Running puppet remotely in an ad-hoc manner on disabled hosts is mildly
complex. To facilitate, have a wide open playbook that we always run
with --limit - and a shell script to help us type less.

Change-Id: I629072dcada38d0465d351b1b99828466405372f
2016-03-09 14:23:49 -06:00