Merge "Force epmd listening to a specific address"
[apex-tripleo-heat-templates.git] / puppet / upgrade_config.yaml
1 heat_template_version: ocata
2 description: 'Upgrade for via ansible by applying a step related tag'
3
4 parameters:
5   UpgradeStepConfig:
6      type: json
7      description: Config (ansible yaml) that will be used to step through the deployment.
8      default: ''
9
10   step:
11     type: string
12     description: Step number of the upgrade
13
14 resources:
15
16   AnsibleConfig:
17     type: OS::Heat::Value
18     properties:
19       value:
20         str_replace:
21           template: CONFIG
22           params:
23             CONFIG:
24               - hosts: localhost
25                 connection: local
26                 tasks: {get_param: UpgradeStepConfig}
27
28   AnsibleUpgradeConfigImpl:
29     type: OS::Heat::SoftwareConfig
30     properties:
31       group: ansible
32       options:
33         tags:
34           str_replace:
35             template: "stepSTEP"
36             params:
37               STEP: {get_param: step}
38         modulepath: /usr/share/ansible-modules
39       inputs:
40       - name: role
41       config: {get_attr: [AnsibleConfig, value]}
42
43 outputs:
44   OS::stack_id:
45     description: The software config which runs ansible with tags
46     value: {get_resource: AnsibleUpgradeConfigImpl}
47   upgrade_config:
48     description:  The configuration file used for upgrade
49     value: {get_attr: [AnsibleConfig, value]}