1 heat_template_version: ocata
4 OpenStack containerized Nova Placement API service
9 default: 'tripleoupstream'
11 DockerNovaPlacementImage:
13 default: 'centos-binary-nova-placement-api'
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.
33 type: ../../puppet/services/nova-placement.yaml
35 EndpointMap: {get_param: EndpointMap}
36 ServiceNetMap: {get_param: ServiceNetMap}
37 DefaultPasswords: {get_param: DefaultPasswords}
41 description: Role data for the Nova Placement API role.
43 service_name: {get_attr: [NovaPlacementBase, role_data, service_name]}
46 - get_attr: [NovaPlacementBase, role_data, config_settings]
47 - apache::default_vhost: false
48 step_config: &step_config
49 get_attr: [NovaPlacementBase, role_data, step_config]
50 service_config_settings: {get_attr: [NovaPlacementBase, role_data, service_config_settings]}
51 # BEGIN DOCKER SETTINGS
52 docker_image: &nova_placement_image
55 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementImage} ]
57 config_volume: nova_placement
58 puppet_tags: nova_config
59 step_config: *step_config
63 - [ {get_param: DockerNamespace}, {get_param: DockerNovaPlacementImage} ]
65 /var/lib/kolla/config_files/nova_placement.json:
66 command: /usr/sbin/httpd -DFOREGROUND
68 - dest: /etc/nova/nova.conf
71 source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
72 - dest: /etc/httpd/conf.d/10-placement_wsgi.conf
75 source: /var/lib/kolla/config_files/src/etc/httpd/conf.d/10-placement_wsgi.conf
76 # puppet generates a stubbed out version of the stock one so we
77 # copy it in to overwrite the existing one
78 - dest: /etc/httpd/conf.d/00-nova-placement-api.conf
81 source: /var/lib/kolla/config_files/src/etc/httpd/conf.d/00-nova-placement-api.conf
82 - dest: /etc/httpd/conf/httpd.conf
85 source: /var/lib/kolla/config_files/src/etc/httpd/conf/httpd.conf
86 - dest: /etc/httpd/conf/ports.conf
89 source: /var/lib/kolla/config_files/src/etc/httpd/conf/ports.conf
90 - dest: /var/www/cgi-bin/nova/nova-placement-api
93 source: /var/lib/kolla/config_files/src/var/www/cgi-bin/nova/nova-placement-api
95 # start this early so it is up before computes start reporting
99 image: *nova_placement_image
104 - /var/lib/kolla/config_files/nova_placement.json:/var/lib/kolla/config_files/config.json:ro
105 - /var/lib/config-data/nova_placement/:/var/lib/kolla/config_files/src:ro
106 - /var/lib/config-data/nova_placement/etc/httpd/conf.modules.d:/etc/httpd/conf.modules.d:ro
107 - /etc/hosts:/etc/hosts:ro
108 - /etc/localtime:/etc/localtime:ro
110 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
112 - name: Stop and disable nova_placement service (running under httpd)
114 service: name=httpd state=stopped enabled=no