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.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
40 type: ./containers-common.yaml
43 type: ../../puppet/services/zaqar.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 RoleName: {get_param: RoleName}
49 RoleParameters: {get_param: RoleParameters}
53 description: Role data for the Zaqar API role.
55 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
56 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
57 step_config: &step_config
58 get_attr: [ZaqarBase, role_data, step_config]
59 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
60 # BEGIN DOCKER SETTINGS
63 puppet_tags: zaqar_config
64 step_config: *step_config
65 config_image: &zaqar_image
68 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarImage} ]
70 /var/lib/kolla/config_files/zaqar.json:
71 command: /usr/sbin/httpd -DFOREGROUND
72 /var/lib/kolla/config_files/zaqar_websocket.json:
73 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
75 - path: /var/log/zaqar
85 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
86 # to be root to run httpd
90 - {get_attr: [ContainersCommon, volumes]}
92 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
93 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
94 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
95 - /var/lib/config-data/zaqar/etc/httpd/:/etc/httpd/:ro
96 - /var/log/containers/zaqar:/var/log/zaqar
98 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
109 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
110 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
111 - /var/lib/config-data/zaqar/etc/httpd/:/etc/httpd/:ro
112 - /var/log/containers/zaqar:/var/log/zaqar
114 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - name: create persistent logs directory
118 path: /var/log/containers/zaqar
121 - name: Stop and disable zaqar service
123 service: name=httpd state=stopped enabled=no