1 heat_template_version: ocata
4 OpenStack Cinder Volume service configured with Puppet
7 CinderEnableNfsBackend:
9 description: Whether to enable or not the NFS backend for Cinder
11 CinderEnableIscsiBackend:
13 description: Whether to enable or not the Iscsi backend for Cinder
15 CinderEnableRbdBackend:
17 description: Whether to enable or not the Rbd backend for Cinder
21 description: The iSCSI helper to use with cinder.
23 CinderLVMLoopDeviceSize:
25 description: The size of the loopback file used by the cinder LVM driver.
27 CinderNfsMountOptions:
30 Mount options for NFS mounts used by Cinder NFS backend. Effective
31 when CinderEnableNfsBackend is true.
36 NFS servers used by Cinder NFS backend. Effective when
37 CinderEnableNfsBackend is true.
38 type: comma_delimited_list
47 description: Mapping of service_name -> network name. Typically set
48 via parameter_defaults in the resource registry. This
49 mapping overrides those in ServiceNetMapDefaults.
56 description: Mapping of service endpoint -> protocol. Typically set
57 via parameter_defaults in the resource registry.
59 MonitoringSubscriptionCinderVolume:
60 default: 'overcloud-cinder-volume'
62 CinderVolumeLoggingSource:
65 tag: openstack.cinder.volume
66 path: /var/log/cinder/cinder-volume.log
71 type: ./cinder-base.yaml
73 ServiceNetMap: {get_param: ServiceNetMap}
74 DefaultPasswords: {get_param: DefaultPasswords}
75 EndpointMap: {get_param: EndpointMap}
79 description: Role data for the Cinder Volume role.
81 service_name: cinder_volume
82 monitoring_subscription: {get_param: MonitoringSubscriptionCinderVolume}
83 logging_source: {get_param: CinderVolumeLoggingSource}
88 - get_attr: [CinderBase, role_data, config_settings]
89 - tripleo::profile::base::cinder::volume::cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
90 tripleo::profile::base::cinder::volume::cinder_enable_nfs_backend: {get_param: CinderEnableNfsBackend}
91 tripleo::profile::base::cinder::volume::cinder_enable_rbd_backend: {get_param: CinderEnableRbdBackend}
92 tripleo::profile::base::cinder::volume::nfs::cinder_nfs_mount_options: {get_param: CinderNfsMountOptions}
93 tripleo::profile::base::cinder::volume::nfs::cinder_nfs_servers:
97 SERVERS: {get_param: CinderNfsServers}
98 tripleo::profile::base::cinder::volume::iscsi::cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize}
99 tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_helper: {get_param: CinderISCSIHelper}
100 tripleo::profile::base::cinder::volume::rbd::cinder_rbd_pool_name: {get_param: CinderRbdPoolName}
101 tripleo::profile::base::cinder::volume::rbd::cinder_rbd_user_name: {get_param: CephClientUserName}
102 tripleo.cinder_volume.firewall_rules:
103 '120 iscsi initiator':
105 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
106 # for the given network; replacement examples (eg. for internal_api):
108 # internal_api_uri -> [IP]
109 # internal_api_subnet - > IP/CIDR
110 tripleo::profile::base::cinder::volume::iscsi::cinder_iscsi_address: {get_param: [ServiceNetMap, CinderIscsiNetwork]}
112 include ::tripleo::profile::base::cinder::volume
114 - name: Stop cinder_volume service
116 service: name=openstack-cinder-volume state=stopped
117 - name: Sync cinder_volume DB
119 command: cinder-manage db sync
120 - name: Start cinder_volume service
122 service: name=openstack-cinder-volume state=started