Update Plugin for 7.0 version
Change-Id: Iac0963359ed4ca9220d073bf2c5f3740f036b767
This commit is contained in:
parent
a19c83d540
commit
0abe815789
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,50 @@
|
|||
# ScaleIO Puppet Manifest for Compute Nodes for Centos
|
||||
|
||||
class install_scaleio_compute::centos
|
||||
{
|
||||
$nova_service = 'openstack-nova-compute'
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
|
||||
|
||||
#install ScaleIO SDC package
|
||||
|
||||
exec { "install_sdc":
|
||||
command => "/bin/bash -c \"MDM_IP=$mdm_ip_1,$mdm_ip_2 yum install -y EMC-ScaleIO-sdc\"",
|
||||
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
||||
}
|
||||
|
||||
#Configure nova-compute
|
||||
ini_subsetting { 'nova-volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/nova/nova.conf',
|
||||
subsetting_separator => ',',
|
||||
section => 'libvirt',
|
||||
setting => 'volume_drivers',
|
||||
subsetting => 'scaleio=nova.virt.libvirt.scaleiolibvirtdriver.LibvirtScaleIOVolumeDriver',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
file { 'scaleiolibvirtdriver.py':
|
||||
path => '/usr/lib/python2.6/site-packages/nova/virt/libvirt/scaleiolibvirtdriver.py',
|
||||
source => 'puppet:///modules/install_scaleio_compute/scaleiolibvirtdriver.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/usr/share/nova/rootwrap/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_compute/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
service { $nova_service:
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
|
|
@ -2,49 +2,10 @@
|
|||
|
||||
class install_scaleio_compute
|
||||
{
|
||||
$nova_service = 'openstack-nova-compute'
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
|
||||
|
||||
#install ScaleIO SDC package
|
||||
|
||||
exec { "install_sdc":
|
||||
command => "/bin/bash -c \"MDM_IP=$mdm_ip_1,$mdm_ip_2 yum install -y EMC-ScaleIO-sdc\"",
|
||||
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
||||
}
|
||||
|
||||
#Configure nova-compute
|
||||
ini_subsetting { 'nova-volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/nova/nova.conf',
|
||||
subsetting_separator => ',',
|
||||
section => 'libvirt',
|
||||
setting => 'volume_drivers',
|
||||
subsetting => 'scaleio=nova.virt.libvirt.scaleiolibvirtdriver.LibvirtScaleIOVolumeDriver',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
file { 'scaleiolibvirtdriver.py':
|
||||
path => '/usr/lib/python2.6/site-packages/nova/virt/libvirt/scaleiolibvirtdriver.py',
|
||||
source => 'puppet:///modules/install_scaleio_compute/scaleiolibvirtdriver.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/usr/share/nova/rootwrap/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_compute/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
|
||||
service { $nova_service:
|
||||
ensure => 'running',
|
||||
if($::operatingsystem == 'Ubuntu') {
|
||||
include install_scaleio_compute::ubuntu
|
||||
}else {
|
||||
include install_scaleio_compute::centos
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
# ScaleIO Puppet Manifest for Compute Nodes Ubuntu
|
||||
|
||||
class install_scaleio_compute::ubuntu
|
||||
{
|
||||
$nova_service = 'nova-compute'
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
|
||||
#install ScaleIO SDC package
|
||||
|
||||
# file { 'emc-scaleio-sdc.deb':
|
||||
# path => '/tmp/emc-scaleio-sdc.deb',
|
||||
# source => 'puppet:///modules/install_scaleio_compute/emc.deb',
|
||||
# mode => '644',
|
||||
# owner => 'root',
|
||||
# group => 'root',
|
||||
# }->
|
||||
|
||||
#exec {"Install sdc":
|
||||
# command => "bash -c 'dpkg -i /tmp/emc-scaleio-sdc.deb'",
|
||||
# path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
#}->
|
||||
|
||||
package{'emc-scaleio-sdc':
|
||||
ensure => installed,
|
||||
}->
|
||||
exec {"Add MDM to drv-cfg":
|
||||
command => "bash -c 'echo mdm ${mdm_ip_1},${mdm_ip_2} >> /bin/emc/scaleio/drv_cfg.txt'",
|
||||
path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
}->
|
||||
|
||||
|
||||
exec {"Start SDC":
|
||||
command => "bash -c '/etc/init.d/scini restart'",
|
||||
path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
}->
|
||||
|
||||
|
||||
|
||||
#Configure nova-compute
|
||||
ini_subsetting { 'nova-volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/nova/nova.conf',
|
||||
subsetting_separator => ',',
|
||||
section => 'libvirt',
|
||||
setting => 'volume_drivers',
|
||||
subsetting => 'scaleio=nova.virt.libvirt.scaleiolibvirtdriver.LibvirtScaleIOVolumeDriver',
|
||||
notify => Service[$nova_service],
|
||||
}->
|
||||
|
||||
if(hiera('fuel_version') == '6.1') {
|
||||
file { 'scaleiolibvirtdriver.py':
|
||||
path => '/usr/lib/python2.7/dist-packages/nova/virt/libvirt/scaleiolibvirtdriver.py',
|
||||
source => 'puppet:///modules/install_scaleio_compute/6.1/scaleiolibvirtdriver.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
}else{
|
||||
file { 'driver.py':
|
||||
path => '/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py',
|
||||
source => 'puppet:///modules/install_scaleio_compute/7.0/driver.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
} ->
|
||||
file { 'volume.py':
|
||||
path => '/usr/lib/python2.7/dist-packages/nova/virt/libvirt/volume.py',
|
||||
source => 'puppet:///modules/install_scaleio_compute/7.0/volume.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
}->
|
||||
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/etc/nova/rootwrap.d/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_compute/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}~>
|
||||
|
||||
service { $nova_service:
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,104 @@
|
|||
class install_scaleio_controller::centos
|
||||
{
|
||||
$services = ['openstack-cinder-volume', 'openstack-cinder-api', 'openstack-cinder-scheduler', 'openstack-nova-scheduler']
|
||||
|
||||
$gw_ip = $plugin_settings['scaleio_GW']
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
$admin = $plugin_settings['scaleio_Admin']
|
||||
$password = $plugin_settings['scaleio_Password']
|
||||
$volume_type = "scaleio-thin"
|
||||
#1. Install SDC package
|
||||
exec { "install_sdc1":
|
||||
command => "/bin/bash -c \"MDM_IP=$mdm_ip_1,$mdm_ip_2 yum install -y EMC-ScaleIO-sdc\"",
|
||||
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
||||
} ->
|
||||
#2. Copy ScaleIO Files
|
||||
file { 'scaleio.py':
|
||||
path => '/usr/lib/python2.6/site-packages/cinder/volume/drivers/emc/scaleio.py',
|
||||
source => 'puppet:///modules/install_scaleio_controller/scaleio.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
} ->
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/usr/share/cinder/rootwrap/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_controller/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
before => File['cinder_scaleio.config'],
|
||||
}
|
||||
|
||||
# 3. Create config for ScaleIO
|
||||
$cinder_scaleio_config = "[scaleio]
|
||||
rest_server_ip=$gw_ip
|
||||
rest_server_username=$admin
|
||||
rest_server_password=$password
|
||||
protection_domain_name=${plugin_settings['protection_domain']}
|
||||
storage_pools=${plugin_settings['protection_domain']}:${plugin_settings['storage_pool_1']}
|
||||
storage_pool_name=${plugin_settings['storage_pool_1']}
|
||||
round_volume_capacity=True
|
||||
force_delete=True
|
||||
verify_server_certificate=False
|
||||
"
|
||||
|
||||
file { 'cinder_scaleio.config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder_scaleio.config',
|
||||
content => $cinder_scaleio_config,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
before => Ini_setting['cinder_conf_enabled_backeds'],
|
||||
} ->
|
||||
|
||||
# 4. To /etc/cinder/cinder.conf add
|
||||
ini_setting { 'cinder_conf_enabled_backeds':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'DEFAULT',
|
||||
setting => 'enabled_backends',
|
||||
value => 'ScaleIO',
|
||||
before => Ini_setting['cinder_conf_volume_driver'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_driver',
|
||||
value => 'cinder.volume.drivers.emc.scaleio.ScaleIODriver',
|
||||
before => Ini_setting['cinder_conf_scio_config'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_scio_config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'cinder_scaleio_config_file',
|
||||
value => '/etc/cinder/cinder_scaleio.config',
|
||||
before => Ini_setting['cinder_conf_volume_backend_name'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_backend_name':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_backend_name',
|
||||
value => 'ScaleIO',
|
||||
}~>
|
||||
service { $services:
|
||||
ensure => running,
|
||||
}->
|
||||
exec { "Create Cinder volume type \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-create ${volume_type}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
unless => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
} ->
|
||||
|
||||
exec { "Create Cinder volume type extra specs for \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-key ${volume_type} set sio:pd_name=${plugin_settings['protection_domain']} sio:provisioning=thin sio:sp_name=${plugin_settings['storage_pool_1']}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
onlyif => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
}
|
||||
|
||||
}
|
|
@ -1,104 +1,10 @@
|
|||
class install_scaleio_controller
|
||||
{
|
||||
$services = ['openstack-cinder-volume', 'openstack-cinder-api', 'openstack-cinder-scheduler', 'openstack-nova-scheduler']
|
||||
|
||||
$gw_ip = $plugin_settings['scaleio_GW']
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
$admin = $plugin_settings['scaleio_Admin']
|
||||
$password = $plugin_settings['scaleio_Password']
|
||||
$volume_type = "scaleio-thin"
|
||||
#1. Install SDC package
|
||||
exec { "install_sdc1":
|
||||
command => "/bin/bash -c \"MDM_IP=$mdm_ip_1,$mdm_ip_2 yum install -y EMC-ScaleIO-sdc\"",
|
||||
path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
|
||||
} ->
|
||||
#2. Copy ScaleIO Files
|
||||
file { 'scaleio.py':
|
||||
path => '/usr/lib/python2.6/site-packages/cinder/volume/drivers/emc/scaleio.py',
|
||||
source => 'puppet:///modules/install_scaleio_controller/scaleio.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
} ->
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/usr/share/cinder/rootwrap/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_controller/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
before => File['cinder_scaleio.config'],
|
||||
if($::operatingsystem == 'Ubuntu') {
|
||||
include install_scaleio_controller::ubuntu
|
||||
}else {
|
||||
include install_scaleio_controller::centos
|
||||
}
|
||||
|
||||
# 3. Create config for ScaleIO
|
||||
$cinder_scaleio_config = "[scaleio]
|
||||
rest_server_ip=$gw_ip
|
||||
rest_server_username=$admin
|
||||
rest_server_password=$password
|
||||
protection_domain_name=${plugin_settings['protection_domain']}
|
||||
storage_pools=${plugin_settings['protection_domain']}:${plugin_settings['storage_pool_1']}
|
||||
storage_pool_name=${plugin_settings['storage_pool_1']}
|
||||
round_volume_capacity=True
|
||||
force_delete=True
|
||||
verify_server_certificate=False
|
||||
"
|
||||
|
||||
file { 'cinder_scaleio.config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder_scaleio.config',
|
||||
content => $cinder_scaleio_config,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
before => Ini_setting['cinder_conf_enabled_backeds'],
|
||||
} ->
|
||||
|
||||
# 4. To /etc/cinder/cinder.conf add
|
||||
ini_setting { 'cinder_conf_enabled_backeds':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'DEFAULT',
|
||||
setting => 'enabled_backends',
|
||||
value => 'ScaleIO',
|
||||
before => Ini_setting['cinder_conf_volume_driver'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_driver',
|
||||
value => 'cinder.volume.drivers.emc.scaleio.ScaleIODriver',
|
||||
before => Ini_setting['cinder_conf_scio_config'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_scio_config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'cinder_scaleio_config_file',
|
||||
value => '/etc/cinder/cinder_scaleio.config',
|
||||
before => Ini_setting['cinder_conf_volume_backend_name'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_backend_name':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_backend_name',
|
||||
value => 'ScaleIO',
|
||||
}~>
|
||||
service { $services:
|
||||
ensure => running,
|
||||
}->
|
||||
exec { "Create Cinder volume type \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-create ${volume_type}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
unless => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
} ->
|
||||
|
||||
exec { "Create Cinder volume type extra specs for \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-key ${volume_type} set sio:pd_name=${plugin_settings['protection_domain']} sio:provisioning=thin sio:sp_name=${plugin_settings['storage_pool_1']}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
onlyif => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,141 @@
|
|||
class install_scaleio_controller::ubuntu
|
||||
{
|
||||
$services = ['cinder-volume', 'cinder-api', 'cinder-scheduler', 'nova-scheduler']
|
||||
|
||||
$gw_ip = $plugin_settings['scaleio_GW']
|
||||
$mdm_ip_1 = $plugin_settings['scaleio_mdm1']
|
||||
$mdm_ip_2 = $plugin_settings['scaleio_mdm2']
|
||||
$admin = $plugin_settings['scaleio_Admin']
|
||||
$password = $plugin_settings['scaleio_Password']
|
||||
$volume_type = "scaleio-thin"
|
||||
#1. Install SDC package
|
||||
#file { 'emc-scaleio-sdc.deb':
|
||||
# path => '/tmp/emc-scaleio-sdc.deb',
|
||||
# source => 'puppet:///modules/install_scaleio_controller/emc.deb',
|
||||
# mode => '644',
|
||||
# owner => 'root',
|
||||
# group => 'root',
|
||||
# }->
|
||||
|
||||
# exec {"Install sdc":
|
||||
# command => "bash -c 'dpkg -i /tmp/emc-scaleio-sdc.deb'",
|
||||
# path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
# }->
|
||||
|
||||
package {'emc-scaleio-sdc':
|
||||
ensure => installed ,
|
||||
}->
|
||||
exec {"Add MDM to drv-cfg":
|
||||
command => "bash -c 'echo mdm ${mdm_ip_1} >>/bin/emc/scaleio/drv_cfg.txt'",
|
||||
path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
|
||||
}->
|
||||
|
||||
|
||||
exec {"Start SDC":
|
||||
command => "bash -c '/etc/init.d/scini restart'",
|
||||
path => ['/usr/bin', '/bin','/usr/local/sbin','/usr/sbin','/sbin' ],
|
||||
|
||||
}->
|
||||
|
||||
#2. Copy ScaleIO Files
|
||||
if(hiera('fuel_version') == '6.1') {
|
||||
file { 'scaleio_6.py':
|
||||
path => '/usr/lib/python2.7/dist-packages/cinder/volume/drivers/emc/scaleio.py',
|
||||
source => 'puppet:///modules/install_scaleio_controller/6.1/scaleio.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
}
|
||||
|
||||
}else{
|
||||
file { 'scaleio_7.py':
|
||||
path => '/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py',
|
||||
source => 'puppet:///modules/install_scaleio_controller/7.0/scaleio.py',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
notify => Service[$nova_service],
|
||||
}
|
||||
} ->
|
||||
|
||||
file { 'scaleio.filters':
|
||||
path => '/etc/cinder/rootwrap.d/scaleio.filters',
|
||||
source => 'puppet:///modules/install_scaleio_controller/scaleio.filters',
|
||||
mode => '644',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
before => File['cinder_scaleio.config'],
|
||||
}
|
||||
|
||||
# 3. Create config for ScaleIO
|
||||
$cinder_scaleio_config = "[scaleio]
|
||||
rest_server_ip=$gw_ip
|
||||
rest_server_username=$admin
|
||||
rest_server_password=$password
|
||||
protection_domain_name=${plugin_settings['protection_domain']}
|
||||
storage_pools=${plugin_settings['protection_domain']}:${plugin_settings['storage_pool_1']}
|
||||
storage_pool_name=${plugin_settings['storage_pool_1']}
|
||||
round_volume_capacity=True
|
||||
force_delete=True
|
||||
verify_server_certificate=False
|
||||
"
|
||||
|
||||
file { 'cinder_scaleio.config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder_scaleio.config',
|
||||
content => $cinder_scaleio_config,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
before => Ini_setting['cinder_conf_enabled_backeds'],
|
||||
} ->
|
||||
|
||||
# 4. To /etc/cinder/cinder.conf add
|
||||
ini_setting { 'cinder_conf_enabled_backeds':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'DEFAULT',
|
||||
setting => 'enabled_backends',
|
||||
value => 'ScaleIO',
|
||||
before => Ini_setting['cinder_conf_volume_driver'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_driver':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_driver',
|
||||
value => 'cinder.volume.drivers.emc.scaleio.ScaleIODriver',
|
||||
before => Ini_setting['cinder_conf_scio_config'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_scio_config':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'cinder_scaleio_config_file',
|
||||
value => '/etc/cinder/cinder_scaleio.config',
|
||||
before => Ini_setting['cinder_conf_volume_backend_name'],
|
||||
} ->
|
||||
ini_setting { 'cinder_conf_volume_backend_name':
|
||||
ensure => present,
|
||||
path => '/etc/cinder/cinder.conf',
|
||||
section => 'ScaleIO',
|
||||
setting => 'volume_backend_name',
|
||||
value => 'ScaleIO',
|
||||
}~>
|
||||
service { $services:
|
||||
ensure => running,
|
||||
}->
|
||||
exec { "Create Cinder volume type \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-create ${volume_type}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
unless => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
} ->
|
||||
|
||||
exec { "Create Cinder volume type extra specs for \'${volume_type}\'":
|
||||
command => "bash -c 'source /root/openrc; cinder type-key ${volume_type} set sio:pd_name=${plugin_settings['protection_domain']} sio:provisioning=thin sio:sp_name=${plugin_settings['storage_pool_1']}'",
|
||||
path => ['/usr/bin', '/bin'],
|
||||
onlyif => "bash -c 'source /root/openrc; cinder type-list |grep -q \" ${volume_type} \"'",
|
||||
}
|
||||
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Class: remove_scaleio_repo
|
||||
#
|
||||
#
|
||||
class remove_scaleio_repo {
|
||||
# resources
|
||||
|
||||
$files = ['/etc/yum.repos.d/epel.repo','/etc/yum.repos.d/CentOS-Base.repo']
|
||||
|
||||
define remove_repo {
|
||||
file { $name:
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
|
||||
remove_repo { $files: }
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
$fuel_settings = parseyaml($astute_settings_yaml)
|
||||
class {'remove_scaleio_repo': }
|
|
@ -3,11 +3,11 @@ name: scaleio-cinder
|
|||
# Human-readable name for your plugin
|
||||
title: ScaleIO Cinder plugin
|
||||
# Plugin version
|
||||
version: '1.0.0'
|
||||
version: '1.5.0'
|
||||
# Description
|
||||
description: Enable EMC ScaleIO as the block storage backend
|
||||
# Required fuel version
|
||||
fuel_version: ['6.1']
|
||||
fuel_version: ['6.1','7.0']
|
||||
# Specify license of your plugin
|
||||
licenses: ['Apache License Version 2.0']
|
||||
# Specify author or company name
|
||||
|
@ -24,5 +24,16 @@ releases:
|
|||
mode: ['ha', 'multinode']
|
||||
deployment_scripts_path: deployment_scripts/
|
||||
repository_path: repositories/centos
|
||||
- os: ubuntu
|
||||
version: 2014.2.2-6.1
|
||||
mode: ['ha', 'multinode']
|
||||
deployment_scripts_path: deployment_scripts/
|
||||
repository_path: repositories/ubuntu
|
||||
- os: ubuntu
|
||||
version: 2015.1.0-7.0
|
||||
mode: ['ha', 'multinode']
|
||||
deployment_scripts_path: deployment_scripts/
|
||||
repository_path: repositories/ubuntu
|
||||
# Version of plugin package
|
||||
package_version: '2.0.0'
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,55 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
|
||||
<revision>1441268891</revision>
|
||||
<revision>1450754058</revision>
|
||||
<data type="filelists">
|
||||
<checksum type="sha256">401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93</checksum>
|
||||
<open-checksum type="sha256">bf9808b81cb2dbc54b4b8e35adc584ddcaa73bd81f7088d73bf7dbbada961310</open-checksum>
|
||||
<location href="repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<size>123</size>
|
||||
<open-size>125</open-size>
|
||||
<checksum type="sha256">1c08af82e8ad2d64539ab49b62c54e5e6c6a0f0756a943ba6c0f89d4ece5136c</checksum>
|
||||
<open-checksum type="sha256">35f31c37eeaf596efa22987d57d227a7bb369fc5d47ecd1d640b0c7f5835fa28</open-checksum>
|
||||
<location href="repodata/1c08af82e8ad2d64539ab49b62c54e5e6c6a0f0756a943ba6c0f89d4ece5136c-filelists.xml.gz"/>
|
||||
<timestamp>1450754059</timestamp>
|
||||
<size>378</size>
|
||||
<open-size>1003</open-size>
|
||||
</data>
|
||||
<data type="primary">
|
||||
<checksum type="sha256">dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9</checksum>
|
||||
<open-checksum type="sha256">e1e2ffd2fb1ee76f87b70750d00ca5677a252b397ab6c2389137a0c33e7b359f</open-checksum>
|
||||
<location href="repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<size>134</size>
|
||||
<open-size>167</open-size>
|
||||
<checksum type="sha256">3f2418a8019919b6eb1b825da000b90abb7a26ba1741e4f3b64fab9a4c76802e</checksum>
|
||||
<open-checksum type="sha256">96a50c0d1b14905953cc6c59710879768b723cb4d1ef1b6c65e101685ac72f65</open-checksum>
|
||||
<location href="repodata/3f2418a8019919b6eb1b825da000b90abb7a26ba1741e4f3b64fab9a4c76802e-primary.xml.gz"/>
|
||||
<timestamp>1450754059</timestamp>
|
||||
<size>1069</size>
|
||||
<open-size>3553</open-size>
|
||||
</data>
|
||||
<data type="primary_db">
|
||||
<checksum type="sha256">ad36b2b9cd3689c29dcf84226b0b4db80633c57d91f50997558ce7121056e331</checksum>
|
||||
<open-checksum type="sha256">960e2acb75b3414dd377efbe0277342d8a911139e8100357c83177a9351ddd6f</open-checksum>
|
||||
<location href="repodata/ad36b2b9cd3689c29dcf84226b0b4db80633c57d91f50997558ce7121056e331-primary.sqlite.bz2"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<checksum type="sha256">735377c76ec7cb64030af7e0fd56137693a250d78d9be9f46c80cd75ebda41a9</checksum>
|
||||
<open-checksum type="sha256">fb5dd5c72a77eb670c83b9bd3564787553525157a8eb55a6a5120590fc3582e4</open-checksum>
|
||||
<location href="repodata/735377c76ec7cb64030af7e0fd56137693a250d78d9be9f46c80cd75ebda41a9-primary.sqlite.bz2"/>
|
||||
<timestamp>1450754059.26</timestamp>
|
||||
<database_version>10</database_version>
|
||||
<size>1130</size>
|
||||
<open-size>21504</open-size>
|
||||
<size>3169</size>
|
||||
<open-size>24576</open-size>
|
||||
</data>
|
||||
<data type="other_db">
|
||||
<checksum type="sha256">d5630fb9d7f956c42ff3962f2e6e64824e5df7edff9e08adf423d4c353505d69</checksum>
|
||||
<open-checksum type="sha256">257af9e36ea0f10e4fc9e6053bf7f4cd9f0919b8857e93ec36b11b4ae8103440</open-checksum>
|
||||
<location href="repodata/d5630fb9d7f956c42ff3962f2e6e64824e5df7edff9e08adf423d4c353505d69-other.sqlite.bz2"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<checksum type="sha256">49e88ece5d5d1e36f7c3ce9f6e94e2bf7b0cf942f33cf114a0558a41e70be6d3</checksum>
|
||||
<open-checksum type="sha256">af551d95cb3e21338f3aef8538595842a3615537cf43e12000ec0b7ffbb6eaac</open-checksum>
|
||||
<location href="repodata/49e88ece5d5d1e36f7c3ce9f6e94e2bf7b0cf942f33cf114a0558a41e70be6d3-other.sqlite.bz2"/>
|
||||
<timestamp>1450754059.14</timestamp>
|
||||
<database_version>10</database_version>
|
||||
<size>570</size>
|
||||
<size>652</size>
|
||||
<open-size>6144</open-size>
|
||||
</data>
|
||||
<data type="other">
|
||||
<checksum type="sha256">6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670</checksum>
|
||||
<open-checksum type="sha256">e0ed5e0054194df036cf09c1a911e15bf2a4e7f26f2a788b6f47d53e80717ccc</open-checksum>
|
||||
<location href="repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<size>123</size>
|
||||
<open-size>121</open-size>
|
||||
<checksum type="sha256">a9f0c021ced8ac9ee2233b6f88f204e72db1bbe17103fbb048ad9fbb5e5095b1</checksum>
|
||||
<open-checksum type="sha256">2b428c4c2cd6e583c89d0613aaaf4de4fac1c6216e35fd43ca260915be748572</open-checksum>
|
||||
<location href="repodata/a9f0c021ced8ac9ee2233b6f88f204e72db1bbe17103fbb048ad9fbb5e5095b1-other.xml.gz"/>
|
||||
<timestamp>1450754059</timestamp>
|
||||
<size>249</size>
|
||||
<open-size>306</open-size>
|
||||
</data>
|
||||
<data type="filelists_db">
|
||||
<checksum type="sha256">2daa2f7a904d6ae04d81abc07d2ecb3bc3d8244a1e78afced2c94994f1b5f3ee</checksum>
|
||||
<open-checksum type="sha256">de1e4e1a56e70198865fdff487472070da92d535f5419bd25ff700caf5ceeb92</open-checksum>
|
||||
<location href="repodata/2daa2f7a904d6ae04d81abc07d2ecb3bc3d8244a1e78afced2c94994f1b5f3ee-filelists.sqlite.bz2"/>
|
||||
<timestamp>1441268891</timestamp>
|
||||
<checksum type="sha256">54d2af84584243256c5c31c0aaa1c99d826d5ec305f362b0842bc56ed0a31ac8</checksum>
|
||||
<open-checksum type="sha256">ae7b880e69c74359a00a090a2ebdf21dc7e27d73c495a9f15ecbf643d810b78e</open-checksum>
|
||||
<location href="repodata/54d2af84584243256c5c31c0aaa1c99d826d5ec305f362b0842bc56ed0a31ac8-filelists.sqlite.bz2"/>
|
||||
<timestamp>1450754059.17</timestamp>
|
||||
<database_version>10</database_version>
|
||||
<size>591</size>
|
||||
<size>1050</size>
|
||||
<open-size>7168</open-size>
|
||||
</data>
|
||||
</repomd>
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Origin: Magdy Salem, EMC; Adrian Moreno Martinez, EMC
|
||||
Label: scaleio-cinder
|
||||
Version: 1.0
|
Binary file not shown.
Loading…
Reference in New Issue