1 heat_template_version: pike
4 OpenStack containerized Zaqar services
10 DockerZaqarConfigImage:
11 description: The container image to use for the zaqar config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
39 type: ./containers-common.yaml
42 type: ../../puppet/services/zaqar.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
47 RoleName: {get_param: RoleName}
48 RoleParameters: {get_param: RoleParameters}
52 description: Role data for the Zaqar API role.
54 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
55 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
56 step_config: &step_config
57 get_attr: [ZaqarBase, role_data, step_config]
58 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
59 # BEGIN DOCKER SETTINGS
62 puppet_tags: zaqar_config
63 step_config: *step_config
64 config_image: {get_param: DockerZaqarConfigImage}
66 /var/lib/kolla/config_files/zaqar.json:
67 command: /usr/sbin/httpd -DFOREGROUND
69 - source: "/var/lib/kolla/config_files/src/*"
72 preserve_properties: true
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 - source: "/var/lib/kolla/config_files/src/*"
79 preserve_properties: true
81 - path: /var/log/zaqar
87 image: &zaqar_image {get_param: DockerZaqarImage}
91 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
92 # to be root to run httpd
96 - {get_attr: [ContainersCommon, volumes]}
98 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
99 - /var/lib/config-data/puppet-generated/zaqar/:/var/lib/kolla/config_files/src:ro
100 - /var/log/containers/zaqar:/var/log/zaqar
102 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
110 - {get_attr: [ContainersCommon, volumes]}
112 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
113 - /var/lib/config-data/puppet-generated/zaqar/:/var/lib/kolla/config_files/src:ro
114 - /var/log/containers/zaqar:/var/log/zaqar
116 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
118 - name: create persistent logs directory
120 path: /var/log/containers/zaqar
123 - name: Stop and disable zaqar service
125 service: name=httpd state=stopped enabled=no