1 heat_template_version: pike
4 OpenStack containerized Nova Placement API service
9 default: 'tripleoupstream'
11 DockerNovaPlacementImage:
13 default: 'centos-binary-nova-placement-api:latest'
15 DockerNovaPlacementConfigImage:
16 description: The container image to use for the nova_placement config_volume
17 default: 'centos-binary-nova-placement-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
45 type: ./containers-common.yaml
48 type: ../../puppet/services/nova-placement.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Nova Placement API role.
60 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
63 - get_attr: [NovaPlacementBase, role_data, config_settings]
64 - apache::default_vhost: false
65 step_config: &step_config
66 get_attr: [NovaPlacementBase, role_data, step_config]
67 service_config_settings: {get_attr: [NovaPlacementBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
70 config_volume: nova_placement
71 puppet_tags: nova_config
72 step_config: *step_config
76 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementConfigImage} ]
78 /var/lib/kolla/config_files/nova_placement.json:
79 command: /usr/sbin/httpd -DFOREGROUND
85 # start this early so it is up before computes start reporting
92 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementImage} ]
98 - {get_attr: [ContainersCommon, volumes]}
100 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
101 - /var/lib/config-data/nova_placement/etc/nova/:/etc/nova/:ro
102 - /var/lib/config-data/nova_placement/etc/httpd/conf/:/etc/httpd/conf/:ro
103 - /var/lib/config-data/nova_placement/etc/httpd/conf.d/:/etc/httpd/conf.d/:ro
104 - /var/lib/config-data/nova_placement/etc/httpd/conf.modules.d/:/etc/httpd/conf.modules.d/:ro
105 - /var/lib/config-data/nova_placement/var/www/:/var/www/:ro
106 - /var/log/containers/nova:/var/log/nova
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 - name: create persistent logs directory
112 path: /var/log/containers/nova
115 - name: Stop and disable nova_placement service (running under httpd)
117 service: name=httpd state=stopped enabled=no