Emilien Macchi f668a735b5 Add support for Manila policy.json
Change-Id: Idcd042913e33c65641aa0a1874811fe9f2efb793
2018-01-11 16:59:11 -08:00

43 lines
1.4 KiB
Puppet

# == Class: manila::params
#
# Parameters for puppet-manila
#
class manila::params {
include ::openstacklib::defaults
$client_package = 'python-manilaclient'
$db_sync_command = 'manila-manage db sync'
$lio_package_name = 'targetcli'
$group = 'manila'
case $::osfamily {
'Debian': {
$package_name = 'manila-common'
$api_package = 'manila-api'
$api_service = 'manila-api'
$scheduler_package = 'manila-scheduler'
$scheduler_service = 'manila-scheduler'
$share_package = 'manila-share'
$share_service = 'manila-share'
$gluster_client_package_name = 'glusterfs-client'
$gluster_package_name = 'glusterfs-common'
}
'RedHat': {
$package_name = 'openstack-manila'
$api_package = false
$api_service = 'openstack-manila-api'
$scheduler_package = false
$scheduler_service = 'openstack-manila-scheduler'
$share_package = 'openstack-manila-share'
$share_service = 'openstack-manila-share'
$gluster_client_package_name = 'glusterfs-fuse'
$gluster_package_name = 'glusterfs'
}
default: {
fail("unsupported osfamily ${::osfamily}, currently Debian and Redhat are the only supported platforms")
}
}
}