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
43 type: ./containers-common.yaml
46 type: ../../puppet/services/database/mysql-client.yaml
49 type: ../../puppet/services/nova-placement.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceData: {get_param: ServiceData}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Role data for the Nova Placement API role.
62 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
65 - get_attr: [NovaPlacementBase, role_data, config_settings]
66 - apache::default_vhost: false
67 step_config: &step_config
70 - - {get_attr: [NovaPlacementBase, role_data, step_config]}
71 - {get_attr: [MySQLClient, 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
78 config_image: {get_param: DockerNovaPlacementConfigImage}
80 /var/lib/kolla/config_files/nova_placement.json:
81 command: /usr/sbin/httpd -DFOREGROUND
83 - source: "/var/lib/kolla/config_files/src/*"
86 preserve_properties: true
92 # start this early so it is up before computes start reporting
96 image: {get_param: DockerNovaPlacementImage}
102 - {get_attr: [ContainersCommon, volumes]}
104 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
105 - /var/lib/config-data/puppet-generated/nova_placement/:/var/lib/kolla/config_files/src:ro
106 - /var/log/containers/nova:/var/log/nova
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 get_attr: [NovaPlacementBase, role_data, metadata_settings]
112 - name: create persistent logs directory
114 path: /var/log/containers/nova
117 - name: Stop and disable nova_placement service (running under httpd)
119 service: name=httpd state=stopped enabled=no