Skip to content
Snippets Groups Projects
Commit 4ce7087f authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

storage.pp changed with standared CEPH calls

parent 57bae380
No related branches found
No related tags found
2 merge requests!8Development,!7Storage ceph
class iaas::role::storage (
$cluster_vlan = undef,
$cluster_ipaddress = undef,
$cluster_netmask = undef,
$osd_disk = undef,
$osd_partition = undef,
$osd_uuid = undef,
# $cluster_vlan = undef,
# $cluster_ipaddress = undef,
# $cluster_netmask = undef,
# $osd_disk = undef,
# $osd_partition = undef,
# $osd_uuid = undef,
) {
# Base
class { 'iaas::profile::base': } ->
# Ceph cluster network
network_config { "eth0.${cluster_vlan}":
ensure => 'present',
family => 'inet',
method => 'static',
ipaddress => $cluster_ipaddress,
netmask => $cluster_netmask,
onboot => 'true',
} ->
exec { "ifup_eth0.${cluster_vlan}":
command => "ifup eth0.${cluster_vlan}",
} ->
# # Ceph cluster network
# network_config { "eth0.${cluster_vlan}":
# ensure => 'present',
# family => 'inet',
# method => 'static',
# ipaddress => $cluster_ipaddress,
# netmask => $cluster_netmask,
# onboot => 'true',
# } ->
# exec { "ifup_eth0.${cluster_vlan}":
# command => "ifup eth0.${cluster_vlan}",
# } ->
# Ceph
class { 'ceph::profile::base': } ->
......@@ -29,28 +29,30 @@ class iaas::role::storage (
class { 'ceph::keys': } ->
exec { "ceph-osd-sgdisk-${osd_partition}": # Trick to use a partition for an OSD
command => "sgdisk --change-name='${osd_partition}:ceph data' --partition-guid=${osd_partition}:${osd_uuid} --typecode=${osd_partition}:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- ${osd_disk} && partprobe",
unless => "/bin/true # comment to satisfy puppet syntax requirements
set -ex
ceph-disk list 2> /dev/null | grep ' *${osd_disk}${osd_partition}.*ceph data'
",
logoutput => true,
} ->
# exec { "ceph-osd-sgdisk-${osd_partition}": # Trick to use a partition for an OSD
# command => "sgdisk --change-name='${osd_partition}:ceph data' --partition-guid=${osd_partition}:${osd_uuid} --typecode=${osd_partition}:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- ${osd_disk} && partprobe",
# unless => "/bin/true # comment to satisfy puppet syntax requirements
# set -ex
# ceph-disk list 2> /dev/null | grep ' *${osd_disk}${osd_partition}.*ceph data'
# ",
# logoutput => true,
# } ->
#
class { 'ceph::profile::osd': } ->
# class { 'ceph::profile::osd': } ->
class { 'ceph::osds': } #->
# Openstack pools
ceph::pool { 'images':
pg_num => 128,
}
ceph::pool { 'volumes':
pg_num => 128,
}
ceph::pool { 'vms':
pg_num => 128,
}
ceph::pool { 'backups':
pg_num => 128,
}
# ceph::pool { 'images':
# pg_num => 128,
# }
# ceph::pool { 'volumes':
# pg_num => 128,
# }
# ceph::pool { 'vms':
# pg_num => 128,
# }
# ceph::pool { 'backups':
# pg_num => 128,
# }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment