1 heat_template_version: pike
4 OpenStack containerized Manila API service
10 DockerManilaConfigImage:
11 description: The container image to use for the manila 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/database/mysql-client.yaml
49 type: ../../puppet/services/manila-api.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceData: {get_param: ServiceData}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
58 description: Role data for the Manila API role.
60 service_name: {get_attr: [ManilaApiPuppetBase, role_data, service_name]}
61 config_settings: {get_attr: [ManilaApiPuppetBase, role_data, config_settings]}
62 step_config: &step_config
65 - - {get_attr: [ManilaApiPuppetBase, role_data, step_config]}
66 - {get_attr: [MySQLClient, role_data, step_config]}
67 service_config_settings: {get_attr: [ManilaApiPuppetBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS #
71 puppet_tags: manila_config,manila_api_paste_ini
72 step_config: *step_config
73 config_image: {get_param: DockerManilaConfigImage}
75 /var/lib/kolla/config_files/manila_api.json:
76 command: /usr/bin/manila-api --config-file /usr/share/manila/manila-dist.conf --config-file /etc/manila/manila.conf
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
83 - path: /var/log/manila
89 image: &manila_api_image {get_param: DockerManilaApiImage}
92 - /var/log/containers/manila:/var/log/manila
93 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R manila:manila /var/log/manila']
97 image: *manila_api_image
102 - {get_attr: [ContainersCommon, volumes]}
104 - /var/lib/config-data/manila/etc/manila/:/etc/manila/:ro
105 - /var/log/containers/manila:/var/log/manila
106 command: "/usr/bin/bootstrap_host_exec manila_api su manila -s /bin/bash -c '/usr/bin/manila-manage db sync'"
109 image: *manila_api_image
114 - {get_attr: [ContainersCommon, volumes]}
116 - /var/lib/kolla/config_files/manila_api.json:/var/lib/kolla/config_files/config.json:ro
117 - /var/lib/config-data/puppet-generated/manila/:/var/lib/kolla/config_files/src:ro
118 - /var/log/containers/manila:/var/log/manila
120 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
122 - name: Create persistent manila logs directory
124 path: /var/log/containers/manila
127 - name: Stop and disable manila_api service
129 service: name=openstack-manila-api state=stopped enabled=no