1 heat_template_version: pike
4 OpenStack containerized Zaqar services
9 default: 'tripleoupstream'
13 default: 'centos-binary-zaqar:latest'
15 DockerZaqarConfigImage:
16 description: The container image to use for the zaqar config_volume
17 default: 'centos-binary-zaqar:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ./containers-common.yaml
48 type: ../../puppet/services/zaqar.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Zaqar API role.
60 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
61 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
62 step_config: &step_config
63 get_attr: [ZaqarBase, role_data, step_config]
64 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
65 # BEGIN DOCKER SETTINGS
68 puppet_tags: zaqar_config
69 step_config: *step_config
73 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarConfigImage} ]
75 /var/lib/kolla/config_files/zaqar.json:
76 command: /usr/sbin/httpd -DFOREGROUND
77 /var/lib/kolla/config_files/zaqar_websocket.json:
78 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
80 - path: /var/log/zaqar
89 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarImage} ]
93 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
94 # to be root to run httpd
98 - {get_attr: [ContainersCommon, volumes]}
100 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
101 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
102 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
103 - /var/lib/config-data/zaqar/etc/httpd/conf/:/etc/httpd/conf/:ro
104 - /var/lib/config-data/zaqar/etc/httpd/conf.d/:/etc/httpd/conf.d/:ro
105 - /var/lib/config-data/zaqar/etc/httpd/conf.modules.d/:/etc/httpd/conf.modules.d/:ro
106 - /var/log/containers/zaqar:/var/log/zaqar
108 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
116 - {get_attr: [ContainersCommon, volumes]}
118 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
119 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
120 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
121 - /var/lib/config-data/zaqar/etc/httpd/:/etc/httpd/:ro
122 - /var/log/containers/zaqar:/var/log/zaqar
124 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
126 - name: create persistent logs directory
128 path: /var/log/containers/zaqar
131 - name: Stop and disable zaqar service
133 service: name=httpd state=stopped enabled=no