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: 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
45 ManilaSchedulerPuppetBase:
46 type: ../../puppet/services/manila-scheduler.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceData: {get_param: ServiceData}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
55 description: Role data for the Manila Scheduler role.
57 service_name: {get_attr: [ManilaSchedulerPuppetBase, role_data, service_name]}
58 config_settings: {get_attr: [ManilaSchedulerPuppetBase, role_data, config_settings]}
59 step_config: &step_config
60 {get_attr: [ManilaSchedulerPuppetBase, role_data, step_config]}
61 service_config_settings: {get_attr: [ManilaSchedulerPuppetBase, role_data, service_config_settings]}
62 # BEGIN DOCKER SETTINGS #
65 puppet_tags: manila_config,manila_scheduler_paste_ini
66 step_config: *step_config
67 config_image: {get_param: DockerManilaConfigImage}
69 /var/lib/kolla/config_files/manila_scheduler.json:
70 command: /usr/bin/manila-scheduler --config-file /usr/share/manila/manila-dist.conf --config-file /etc/manila/manila.conf
72 - source: "/var/lib/kolla/config_files/src/*"
75 preserve_properties: true
77 - path: /var/log/manila
83 image: {get_param: DockerManilaSchedulerImage}
88 - {get_attr: [ContainersCommon, volumes]}
90 - /var/lib/kolla/config_files/manila_scheduler.json:/var/lib/kolla/config_files/config.json:ro
91 - /var/lib/config-data/puppet-generated/manila/:/var/lib/kolla/config_files/src:ro
92 - /var/log/containers/manila:/var/log/manila
94 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
96 - name: Create persistent manila logs directory
98 path: /var/log/containers/manila
101 - name: Stop and disable manila_scheduler service
103 service: name=openstack-manila-scheduler state=stopped enabled=no