Commit Graph

6 Commits

Author SHA1 Message Date
Monty Taylor f2a57670a7 Define defaults as defaults, not variables
Defining them as variables overrides the local group_vars defined in
system-config. But these are defaults, not the actual variables.

Change-Id: I40acef591a22005434960af1ee13497c963df7d9
2016-01-18 19:41:56 -05:00
Monty Taylor 8d50410c04 Rename hieraenvironment to puppet_environment
It's actually a puppet environment, not a hiera environment. So let's
call it that, otherwise nibalizer will be sad.

Change-Id: I0175596329e9f7eb7a079513bfa17dd18d53b753
2016-01-18 17:10:39 -05:00
Monty Taylor 6260b48b9e Clean up codestyle in conditionals
Based on some earlier review feedback, add defaults for copy_puppet and
copy_hieradata so that we don't have to check if they are defined. Also,
split the and condition in when to be a list of conditions.

Change-Id: I68bd332bdfae6880b582203161798f709dc45a45
2016-01-14 15:39:25 -05:00
Monty Taylor 1363b6fbc3 Remove copy_hieradata value from vars file
Putting this here makes it not possible to specify the setting in our
in-tree vars file. We also already account for it not being set in the
role logic.

Change-Id: I0e06b750a23b46c39ff675b5ac842e6a0d25bfff
2015-11-24 17:40:29 -05:00
Monty Taylor c424d8b555 Copy in matching hiera files
Find any files that match common, $fqdn and $group in the hiera
structure and copy them to the target host's hiera structure so that
the puppet apply command can operate.

Change-Id: I833858e86b9e8fe0750642476f118ca7d0358380
2015-11-11 14:59:35 -08:00
Monty Taylor 50173449a6 Add all of the files needed to make this a role
Similar to puppet modules, ansible roles can be uploaded to ansible
galaxy and can be consumed in a role-per-repo manner.
2015-02-22 22:59:39 -05:00