1 heat_template_version: pike
4 OpenStack containerized Manila Scheduler service
7 DockerManilaSchedulerImage:
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: 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
41 ManilaSchedulerPuppetBase:
42 type: ../../puppet/services/manila-scheduler.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
50 description: Role data for the Manila Scheduler role.
52 service_name: {get_attr: [ManilaSchedulerPuppetBase, role_data, service_name]}
53 config_settings: {get_attr: [ManilaSchedulerPuppetBase, role_data, config_settings]}
54 step_config: &step_config
55 {get_attr: [ManilaSchedulerPuppetBase, role_data, step_config]}
56 service_config_settings: {get_attr: [ManilaSchedulerPuppetBase, role_data, service_config_settings]}
57 # BEGIN DOCKER SETTINGS #
60 puppet_tags: manila_config,manila_scheduler_paste_ini
61 step_config: *step_config
62 config_image: {get_param: DockerManilaConfigImage}
64 /var/lib/kolla/config_files/manila_scheduler.json:
65 command: /usr/bin/manila-scheduler --config-file /usr/share/manila/manila-dist.conf --config-file /etc/manila/manila.conf
67 - source: "/var/lib/kolla/config_files/src/*"
70 preserve_properties: true
72 - path: /var/log/manila
78 image: {get_param: DockerManilaSchedulerImage}
83 - {get_attr: [ContainersCommon, volumes]}
85 - /var/lib/kolla/config_files/manila_scheduler.json:/var/lib/kolla/config_files/config.json:ro
86 - /var/lib/config-data/puppet-generated/manila/:/var/lib/kolla/config_files/src:ro
87 - /var/log/containers/manila:/var/log/manila
89 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
91 - name: Create persistent manila logs directory
93 path: /var/log/containers/manila
96 - name: Stop and disable manila_scheduler service
98 service: name=openstack-manila-scheduler state=stopped enabled=no