Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / config.role.j2.yaml
1 heat_template_version: pike
2
3 description: >
4   A software config which runs puppet on the {{role}} role
5
6 parameters:
7   ConfigDebug:
8     default: false
9     description: Whether to run config management (e.g. Puppet) in debug mode.
10     type: boolean
11   StepConfig:
12      type: string
13      description: Config manifests that will be used to step through the deployment.
14      default: ''
15   PuppetTags:
16      type: string
17      description: List of comma-separated tags to limit puppet catalog to.
18      default: ''
19
20 conditions:
21
22   puppet_tags_empty: {equals : [{get_param: PuppetTags}, '']}
23
24 resources:
25
26   {{role}}PuppetConfigImpl:
27     type: OS::Heat::SoftwareConfig
28     properties:
29       group: puppet
30       options:
31         enable_debug: {get_param: ConfigDebug}
32         enable_hiera: True
33         enable_facter: False
34         modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules
35         tags:
36           if:
37           - puppet_tags_empty
38           - ''
39           - list_join:
40             - ','
41             - ['file,concat,file_line,augeas', {get_param: PuppetTags}]
42       outputs:
43       - name: result
44       inputs:
45       - name: step
46         type: Number
47       config:
48         list_join:
49         - ''
50         - - str_replace:
51               template: {get_file: manifests/overcloud_role.pp}
52               params:
53                 __ROLE__: {{role.lower()}}
54           - {get_param: StepConfig}
55
56 outputs:
57   OS::stack_id:
58     description: The software config which runs puppet on the {{role}} role
59     value: {get_resource: {{role}}PuppetConfigImpl}