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: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
43 type: ./containers-common.yaml
46 type: ../../puppet/services/zaqar.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 RoleName: {get_param: RoleName}
53 RoleParameters: {get_param: RoleParameters}
57 description: Role data for the Zaqar API role.
59 service_name: {get_attr: [ZaqarBase, role_data, service_name]}
60 config_settings: {get_attr: [ZaqarBase, role_data, config_settings]}
61 step_config: &step_config
62 get_attr: [ZaqarBase, role_data, step_config]
63 service_config_settings: {get_attr: [ZaqarBase, role_data, service_config_settings]}
64 # BEGIN DOCKER SETTINGS
67 puppet_tags: zaqar_config
68 step_config: *step_config
69 config_image: {get_param: DockerZaqarConfigImage}
71 /var/lib/kolla/config_files/zaqar.json:
72 command: /usr/sbin/httpd -DFOREGROUND
74 - source: "/var/lib/kolla/config_files/src/*"
77 preserve_properties: true
78 /var/lib/kolla/config_files/zaqar_websocket.json:
79 command: /usr/bin/zaqar-server --config-file /etc/zaqar/zaqar.conf --config-file /etc/zaqar/1.conf
81 - source: "/var/lib/kolla/config_files/src/*"
84 preserve_properties: true
86 - path: /var/log/zaqar
92 image: &zaqar_image {get_param: DockerZaqarImage}
96 # NOTE(mandre) kolla image changes the user to 'zaqar', we need it
97 # to be root to run httpd
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/zaqar.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/zaqar/:/var/lib/kolla/config_files/src:ro
105 - /var/log/containers/zaqar:/var/log/zaqar
107 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
115 - {get_attr: [ContainersCommon, volumes]}
117 - /var/lib/kolla/config_files/zaqar_websocket.json:/var/lib/kolla/config_files/config.json:ro
118 - /var/lib/config-data/puppet-generated/zaqar/:/var/lib/kolla/config_files/src:ro
119 - /var/log/containers/zaqar:/var/log/zaqar
121 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
123 - name: create persistent logs directory
125 path: /var/log/containers/zaqar
128 - name: Stop and disable zaqar service
130 service: name=httpd state=stopped enabled=no