1 heat_template_version: pike
4 OpenStack Octavia service configured with Puppet
9 default: 'tripleoupstream'
11 DockerOctaviaHousekeepingImage:
13 default: 'centos-binary-octavia-housekeeping:latest'
15 DockerOctaviaConfigImage:
16 description: The container image to use for the octavia config_volume
17 default: 'centos-binary-octavia-api:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
46 type: ./containers-common.yaml
48 OctaviaHousekeepingPuppetBase:
49 type: ../../puppet/services/octavia-housekeeping.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Role data for the Octavia housekeeping role.
61 service_name: {get_attr: [OctaviaHousekeepingPuppetBase, role_data, service_name]}
62 config_settings: {get_attr: [OctaviaHousekeepingPuppetBase, role_data, config_settings]}
63 step_config: &step_config
64 get_attr: [OctaviaHousekeepingPuppetBase, role_data, step_config]
65 service_config_settings: {get_attr: [OctaviaHousekeepingPuppetBase, role_data, service_config_settings]}
66 # BEGIN DOCKER SETTINGS #
68 config_volume: octavia
69 puppet_tags: octavia_config
70 step_config: *step_config
74 - [ {get_param: DockerNamespace}, {get_param: DockerOctaviaConfigImage} ]
76 /var/lib/kolla/config_files/octavia_housekeeping.json:
77 command: /usr/bin/octavia-housekeeping --config-file /usr/share/octavia/octavia-dist.conf --config-file /etc/octavia/octavia.conf --log-file /var/log/octavia/housekeeping.log --config-dir /etc/octavia/conf.d/common --config-dir /etc/octavia/conf.d/octavia-housekeeping
79 - source: "/var/lib/kolla/config_files/src/*"
82 preserve_properties: true
85 octavia_housekeeping_init_dirs:
87 image: &octavia_housekeeping_image
90 - [ {get_param: DockerNamespace}, {get_param: DockerOctaviaHousekeepingImage} ]
93 # NOTE(mandre) we need extra dir for the service in /etc/octavia/conf.d
94 # It is normally created as part of the RPM install, but it is
95 # missing here because we use the same config_volume for all
96 # octavia services, hence the same container image to generate
98 - /var/lib/config-data/puppet-generated/octavia/etc/octavia:/etc/octavia/
99 command: ['/bin/bash', '-c', 'mkdir -p /etc/octavia/conf.d/octavia-housekeeping; chown -R octavia:octavia /etc/octavia/conf.d/octavia-housekeeping']
101 octavia_housekeeping:
103 image: *octavia_housekeeping_image
109 - {get_attr: [ContainersCommon, volumes]}
111 - /var/lib/kolla/config_files/octavia_housekeeping.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/puppet-generated/octavia/:/var/lib/kolla/config_files/src:ro
113 - /var/log/containers/octavia:/var/log/octavia
115 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
117 - name: create persistent logs directory
119 path: /var/log/containers/octavia
122 - name: Stop and disable octavia_housekeeping service
124 service: name=openstack-octavia-housekeeping state=stopped enabled=no