Merge "Removes deprecated neutron-opendaylight-l3 env file"
[apex-tripleo-heat-templates.git] / puppet / services / tripleo-packages.yaml
1 heat_template_version: ocata
2
3 description: >
4   TripleO Package installation settings
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   EnablePackageInstall:
22     default: 'false'
23     description: Set to true to enable package installation via Puppet
24     type: boolean
25
26 outputs:
27   role_data:
28     description: Role data for the TripleO package settings
29     value:
30       service_name: tripleo_packages
31       config_settings:
32         tripleo::packages::enable_install: {get_param: EnablePackageInstall}
33       step_config: |
34         include ::tripleo::packages
35       upgrade_tasks:
36         - name: Check yum for rpm-python present
37           tags: step0
38           yum: "name=rpm-python state=present"
39           register: rpm_python_check
40         - name: Fail when rpm-python wasn't present
41           fail: msg="rpm-python package was not present before this run! Check environment before re-running"
42           when: rpm_python_check.changed != false
43           tags: step0
44         - name: Update all packages
45           tags: step3
46           yum: name=* state=latest