1 heat_template_version: pike
4 OpenStack containerized Manila Share service
7 DockerManilaShareImage:
10 DockerManilaConfigImage:
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: ../../../puppet/services/database/mysql-client.yaml
46 type: ../../../puppet/services/pacemaker/manila-share.yaml
48 EndpointMap: {get_param: EndpointMap}
49 ServiceNetMap: {get_param: ServiceNetMap}
50 DefaultPasswords: {get_param: DefaultPasswords}
51 RoleName: {get_param: RoleName}
52 RoleParameters: {get_param: RoleParameters}
56 description: Role data for the Manila Share role.
58 service_name: {get_attr: [ManilaBase, role_data, service_name]}
61 - get_attr: [ManilaBase, role_data, config_settings]
62 - tripleo::profile::pacemaker::manila::share_bundle::manila_share_docker_image: &manila_share_image_pcmklatest
66 data: {get_param: DockerManilaShareImage}
67 expression: $.data.rightSplit(separator => ":", maxSplits => 1)[0]
69 manila::share::manage_service: false
70 manila::share::enabled: false
71 manila::host: hostgroup
72 logging_source: {get_attr: [ManilaBase, role_data, logging_source]}
73 logging_groups: {get_attr: [ManilaBase, role_data, logging_groups]}
75 service_config_settings: {get_attr: [ManilaBase, role_data, service_config_settings]}
76 # BEGIN DOCKER SETTINGS
79 puppet_tags: manila_config,file,concat,file_line
83 - - {get_attr: [ManilaBase, role_data, step_config]}
84 - - {get_attr: [MySQLClient, role_data, step_config]}
85 config_image: {get_param: DockerManilaConfigImage}
87 /var/lib/kolla/config_files/manila_share.json:
88 command: /usr/bin/manila-share --config-file /usr/share/manila/manila-dist.conf --config-file /etc/manila/manila.conf
90 - source: "/var/lib/kolla/config_files/src/*"
93 preserve_properties: true
95 - path: /var/log/manila
100 manila_share_image_tag:
110 "/usr/bin/docker tag 'MANILASHARE_IMAGE' 'MANILASHARE_IMAGE_PCMKLATEST'"
112 MANILASHARE_IMAGE: {get_param: DockerManilaShareImage}
113 MANILASHARE_IMAGE_PCMKLATEST: *manila_share_image_pcmklatest
114 image: {get_param: DockerManilaShareImage}
116 - /etc/hosts:/etc/hosts:ro
117 - /etc/localtime:/etc/localtime:ro
118 - /dev/shm:/dev/shm:rw
119 - /etc/sysconfig/docker:/etc/sysconfig/docker:ro
120 - /usr/bin:/usr/bin:ro
121 - /var/run/docker.sock:/var/run/docker.sock:rw
123 manila_share_init_logs:
125 image: {get_param: DockerManilaShareImage}
129 - /var/log/containers/manila:/var/log/manila
130 command: ['/bin/bash', '-c', 'chown -R manila:manila /var/log/manila']
132 manila_share_init_bundle:
144 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 5}' > /etc/puppet/hieradata/docker.json"
145 - "FACTER_uuid=docker puppet apply --tags file_line,concat,augeas,TAGS --debug -v -e 'CONFIG'"
147 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::constraint::location'
148 CONFIG: 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::manila::share_bundle'
149 image: {get_param: DockerManilaShareImage}
151 - /etc/hosts:/etc/hosts:ro
152 - /etc/localtime:/etc/localtime:ro
153 - /etc/puppet:/tmp/puppet-etc:ro
154 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
155 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
156 - /dev/shm:/dev/shm:rw
158 - name: create persistent directories
163 - /var/log/containers/manila
166 - name: Stop and disable manila_share service
168 service: name=openstack-manila-share state=stopped enabled=no