1 heat_template_version: pike
4 OpenStack containerized Zaqar services
9 default: 'tripleoupstream'
13 default: 'centos-binary-zaqar: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.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/zaqar.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the Zaqar API role.
46 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
47 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
48 step_config: &step_config
49 get_attr: [ZaqarBase, role_data, step_config]
50 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
51 # BEGIN DOCKER SETTINGS
54 puppet_tags: zaqar_config
55 step_config: *step_config
56 config_image: &zaqar_image
59 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarImage} ]
61 /var/lib/kolla/config_files/zaqar.json:
62 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf
63 /var/lib/kolla/config_files/zaqar_websocket.json:
64 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
74 - {get_attr: [ContainersCommon, volumes]}
76 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
77 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
79 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
87 - {get_attr: [ContainersCommon, volumes]}
89 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
90 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
92 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
94 - name: Stop and disable zaqar service
96 service: name=openstack-zaqar.service state=stopped enabled=no