1 heat_template_version: pike
4 OpenStack containerized Cinder Backup service
9 default: 'tripleoupstream'
11 DockerCinderBackupImage:
13 default: 'centos-binary-cinder-backup:latest'
15 # we configure all cinder services in the same cinder base container
16 DockerCinderConfigImage:
18 default: 'centos-binary-cinder-api:latest'
22 description: The short name of the Cinder Backup backend to use.
25 - allowed_values: ['swift', 'ceph']
26 CinderBackupRbdPoolName:
34 description: Mapping of service endpoint -> protocol. Typically set
35 via parameter_defaults in the resource registry.
39 description: Mapping of service_name -> network name. Typically set
40 via parameter_defaults in the resource registry. This
41 mapping overrides those in ServiceNetMapDefaults.
48 description: Role name on which the service is applied
52 description: Parameters specific to the role
59 type: ../../../puppet/services/cinder-backup.yaml
61 EndpointMap: {get_param: EndpointMap}
62 ServiceNetMap: {get_param: ServiceNetMap}
63 DefaultPasswords: {get_param: DefaultPasswords}
64 RoleName: {get_param: RoleName}
65 RoleParameters: {get_param: RoleParameters}
66 CinderBackupBackend: {get_param: CinderBackupBackend}
67 CinderBackupRbdPoolName: {get_param: CinderBackupRbdPoolName}
68 CephClientUserName: {get_param: CephClientUserName}
72 description: Role data for the Cinder Backup role.
74 service_name: {get_attr: [CinderBackupBase, role_data, service_name]}
77 - get_attr: [CinderBackupBase, role_data, config_settings]
78 - tripleo::profile::pacemaker::cinder::backup_bundle::cinder_backup_docker_image: &cinder_backup_image
81 - [ {get_param: DockerNamespace}, {get_param: DockerCinderBackupImage} ]
82 cinder::backup::manage_service: false
83 cinder::backup::enabled: false
85 service_config_settings: {get_attr: [CinderBackupBase, role_data, service_config_settings]}
86 # BEGIN DOCKER SETTINGS
89 puppet_tags: cinder_config,file,concat,file_line
90 step_config: {get_attr: [CinderBackupBase, role_data, step_config]}
94 - [ {get_param: DockerNamespace}, {get_param: DockerCinderConfigImage} ]
96 /var/lib/kolla/config_files/cinder_backup.json:
97 command: /usr/bin/cinder-backup --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf
99 - path: /var/lib/cinder
102 - path: /var/log/cinder
107 cinder_backup_init_logs:
109 image: *cinder_backup_image
113 - /var/log/containers/cinder:/var/log/cinder
114 command: ['/bin/bash', '-c', 'chown -R cinder:cinder /var/log/cinder']
116 cinder_backup_init_bundle:
128 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 5}' > /etc/puppet/hieradata/docker.json"
129 - "FACTER_uuid=docker puppet apply --tags file_line,concat,augeas,TAGS --debug -v -e 'CONFIG'"
131 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::constraint::location'
132 CONFIG: 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::cinder::backup_bundle'
133 image: *cinder_backup_image
135 - /etc/hosts:/etc/hosts:ro
136 - /etc/localtime:/etc/localtime:ro
137 - /etc/puppet:/tmp/puppet-etc:ro
138 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
139 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
140 - /dev/shm:/dev/shm:rw
142 - name: create persistent directories
148 - /var/log/containers/cinder
150 - name: Stop and disable cinder_backup service
152 service: name=openstack-cinder-backup state=stopped enabled=no