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: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
49 type: ./containers-common.yaml
52 type: ../../puppet/services/nova-placement.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceData: {get_param: ServiceData}
56 ServiceNetMap: {get_param: ServiceNetMap}
57 DefaultPasswords: {get_param: DefaultPasswords}
58 RoleName: {get_param: RoleName}
59 RoleParameters: {get_param: RoleParameters}
63 description: Role data for the Nova Placement API role.
65 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
68 - get_attr: [NovaPlacementBase, role_data, config_settings]
69 - apache::default_vhost: false
70 step_config: &step_config
71 get_attr: [NovaPlacementBase, role_data, step_config]
72 service_config_settings: {get_attr: [NovaPlacementBase, role_data, service_config_settings]}
73 # BEGIN DOCKER SETTINGS
75 config_volume: nova_placement
76 puppet_tags: nova_config
77 step_config: *step_config
81 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementConfigImage} ]
83 /var/lib/kolla/config_files/nova_placement.json:
84 command: /usr/sbin/httpd -DFOREGROUND
86 - source: "/var/lib/kolla/config_files/src/*"
89 preserve_properties: true
95 # start this early so it is up before computes start reporting
102 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementImage} ]
108 - {get_attr: [ContainersCommon, volumes]}
110 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
111 - /var/lib/config-data/puppet-generated/nova_placement/:/var/lib/kolla/config_files/src:ro
112 - /var/log/containers/nova:/var/log/nova
114 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - name: create persistent logs directory
118 path: /var/log/containers/nova
121 - name: Stop and disable nova_placement service (running under httpd)
123 service: name=httpd state=stopped enabled=no