1 heat_template_version: ocata
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: ../../puppet/services/zaqar.yaml
35 EndpointMap: {get_param: EndpointMap}
36 ServiceNetMap: {get_param: ServiceNetMap}
37 DefaultPasswords: {get_param: DefaultPasswords}
41 description: Role data for the Zaqar API role.
43 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
44 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
45 step_config: &step_config
46 get_attr: [ZaqarBase, role_data, step_config]
47 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
48 # BEGIN DOCKER SETTINGS
51 puppet_tags: zaqar_config
52 step_config: *step_config
53 config_image: &zaqar_image
56 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarImage} ]
58 /var/lib/kolla/config_files/zaqar.json:
59 command: /usr/sbin/httpd -DFOREGROUND
60 /var/lib/kolla/config_files/zaqar_websocket.json:
61 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
69 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
70 # to be root to run httpd
73 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
74 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
75 - /var/lib/config-data/zaqar/etc/httpd:/etc/httpd/:ro
76 - /etc/hosts:/etc/hosts:ro
77 - /etc/localtime:/etc/localtime:ro
79 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
86 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
87 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
88 - /etc/hosts:/etc/hosts:ro
89 - /etc/localtime:/etc/localtime:ro
91 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
93 - name: Stop and disable zaqar service
95 service: name=httpd state=stopped enabled=no