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
41 type: ./containers-common.yaml
44 type: ../../puppet/services/zaqar.yaml
46 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Zaqar API role.
56 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
57 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
58 step_config: &step_config
59 get_attr: [ZaqarBase, role_data, step_config]
60 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
61 # BEGIN DOCKER SETTINGS
64 puppet_tags: zaqar_config
65 step_config: *step_config
66 config_image: &zaqar_image
69 - [ {get_param: DockerNamespace}, {get_param: DockerZaqarImage} ]
71 /var/lib/kolla/config_files/zaqar.json:
72 command: /usr/sbin/httpd -DFOREGROUND
73 /var/lib/kolla/config_files/zaqar_websocket.json:
74 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
76 - path: /var/log/zaqar
86 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
87 # to be root to run httpd
91 - {get_attr: [ContainersCommon, volumes]}
93 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
94 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
95 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
96 - /var/lib/config-data/zaqar/etc/httpd/conf/:/etc/httpd/conf/:ro
97 - /var/lib/config-data/zaqar/etc/httpd/conf.d/:/etc/httpd/conf.d/:ro
98 - /var/lib/config-data/zaqar/etc/httpd/conf.modules.d/:/etc/httpd/conf.modules.d/:ro
99 - /var/log/containers/zaqar:/var/log/zaqar
101 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
109 - {get_attr: [ContainersCommon, volumes]}
111 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/zaqar/etc/zaqar/:/etc/zaqar/:ro
113 - /var/lib/config-data/zaqar/var/www/:/var/www/:ro
114 - /var/lib/config-data/zaqar/etc/httpd/:/etc/httpd/:ro
115 - /var/log/containers/zaqar:/var/log/zaqar
117 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
119 - name: create persistent logs directory
121 path: /var/log/containers/zaqar
124 - name: Stop and disable zaqar service
126 service: name=httpd state=stopped enabled=no