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'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
41 type: ./containers-common.yaml
44 type: ../../puppet/services/nova-placement.yaml
46 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Nova Placement API role.
56 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
59 - get_attr: [NovaPlacementBase, role_data, config_settings]
60 - apache::default_vhost: false
61 step_config: &step_config
62 get_attr: [NovaPlacementBase, role_data, step_config]
63 service_config_settings: {get_attr: [NovaPlacementBase, role_data, service_config_settings]}
64 # BEGIN DOCKER SETTINGS
66 config_volume: nova_placement
67 puppet_tags: nova_config
68 step_config: *step_config
69 config_image: &nova_placement_image
72 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementImage} ]
74 /var/lib/kolla/config_files/nova_placement.json:
75 command: /usr/sbin/httpd -DFOREGROUND
81 # start this early so it is up before computes start reporting
85 image: *nova_placement_image
91 - {get_attr: [ContainersCommon, volumes]}
93 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
94 - /var/lib/config-data/nova_placement/etc/nova/:/etc/nova/:ro
95 - /var/lib/config-data/nova_placement/etc/httpd/conf/:/etc/httpd/conf/:ro
96 - /var/lib/config-data/nova_placement/etc/httpd/conf.d/:/etc/httpd/conf.d/:ro
97 - /var/lib/config-data/nova_placement/etc/httpd/conf.modules.d/:/etc/httpd/conf.modules.d/:ro
98 - /var/lib/config-data/nova_placement/var/www/:/var/www/:ro
99 - /var/log/containers/nova:/var/log/nova
101 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
103 - name: create persistent logs directory
105 path: /var/log/containers/nova
108 - name: Stop and disable nova_placement service (running under httpd)
110 service: name=httpd state=stopped enabled=no