aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/config.role.j2.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-10-04 21:40:13 +0000
committerGerrit Code Review <review@openstack.org>2016-10-04 21:40:13 +0000
commit525e41d4a7c83ae109261521628be84e4eb2fc10 (patch)
tree81b75d3cd7e02488cc4ba00c059969a1eb4ed57a /puppet/config.role.j2.yaml
parent3fa2ab420c2ba354fd709857e1ceaacf36a0f1b5 (diff)
parent94fddffa6d3e98df227803cca0879855fe47e6d8 (diff)
Merge "j2 template role config templates"
Diffstat (limited to 'puppet/config.role.j2.yaml')
-rw-r--r--puppet/config.role.j2.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/puppet/config.role.j2.yaml b/puppet/config.role.j2.yaml
new file mode 100644
index 00000000..e59a0216
--- /dev/null
+++ b/puppet/config.role.j2.yaml
@@ -0,0 +1,44 @@
+heat_template_version: 2015-04-30
+
+description: >
+ A software config which runs puppet on the {{role}} role
+
+parameters:
+ ConfigDebug:
+ default: false
+ description: Whether to run config management (e.g. Puppet) in debug mode.
+ type: boolean
+ StepConfig:
+ type: string
+ description: Config manifests that will be used to step through the deployment.
+ default: ''
+
+resources:
+
+ {{role}}PuppetConfigImpl:
+ type: OS::Heat::SoftwareConfig
+ properties:
+ group: puppet
+ options:
+ enable_debug: {get_param: ConfigDebug}
+ enable_hiera: True
+ enable_facter: False
+ modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules
+ outputs:
+ - name: result
+ inputs:
+ - name: step
+ type: Number
+ config:
+ list_join:
+ - ''
+ - - str_replace:
+ template: {get_file: manifests/overcloud_role.pp}
+ params:
+ __ROLE__: {{role.lower()}}
+ - {get_param: StepConfig}
+
+outputs:
+ OS::stack_id:
+ description: The software config which runs puppet on the {{role}} role
+ value: {get_resource: {{role}}PuppetConfigImpl}