1 heat_template_version: pike
4 OpenStack containerized Nova Placement API service
7 DockerNovaPlacementImage:
10 DockerNovaPlacementConfigImage:
11 description: The container image to use for the nova_placement config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
45 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
50 type: ./containers-common.yaml
53 type: ../../puppet/services/database/mysql-client.yaml
56 type: ../../puppet/services/nova-placement.yaml
58 EndpointMap: {get_param: EndpointMap}
59 ServiceData: {get_param: ServiceData}
60 ServiceNetMap: {get_param: ServiceNetMap}
61 DefaultPasswords: {get_param: DefaultPasswords}
62 RoleName: {get_param: RoleName}
63 RoleParameters: {get_param: RoleParameters}
67 description: Role data for the Nova Placement API role.
69 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
72 - get_attr: [NovaPlacementBase, role_data, config_settings]
73 - apache::default_vhost: false
74 step_config: &step_config
77 - - {get_attr: [NovaPlacementBase, role_data, step_config]}
78 - {get_attr: [MySQLClient, role_data, step_config]}
79 service_config_settings: {get_attr: [NovaPlacementBase, role_data, service_config_settings]}
80 # BEGIN DOCKER SETTINGS
82 config_volume: nova_placement
83 puppet_tags: nova_config
84 step_config: *step_config
85 config_image: {get_param: DockerNovaPlacementConfigImage}
87 /var/lib/kolla/config_files/nova_placement.json:
88 command: /usr/sbin/httpd -DFOREGROUND
90 - source: "/var/lib/kolla/config_files/src/*"
93 preserve_properties: true
99 # start this early so it is up before computes start reporting
103 image: {get_param: DockerNovaPlacementImage}
109 - {get_attr: [ContainersCommon, volumes]}
111 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/puppet-generated/nova_placement/:/var/lib/kolla/config_files/src:ro
113 - /var/log/containers/nova:/var/log/nova
116 - internal_tls_enabled
117 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
121 - internal_tls_enabled
122 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
125 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
127 get_attr: [NovaPlacementBase, role_data, metadata_settings]
129 - name: create persistent logs directory
131 path: /var/log/containers/nova
134 - name: Stop and disable nova_placement service (running under httpd)
136 service: name=httpd state=stopped enabled=no