Add Luminous support for CentOS

Change-Id: Ic4d4219892d13d7a9c1b06c1fc19d512a3996032
parent c61c0184
---
######## Ceph
ceph::profile::params::release: 'jewel'
ceph::profile::params::release: 'luminous'
######## Ceph.conf
ceph::profile::params::fsid: '4b5c8c0a-ff60-454b-a1b4-9747aa737d19'
......
......@@ -31,7 +31,7 @@
# For OSD nodes it is recommended that you raise pid_max above the
# default value because you may hit the system max during
# recovery. The recommended value is the absolute max for pid_max: 4194303
# http://docs.ceph.com/docs/jewel/rados/troubleshooting/troubleshooting-osd/
# http://docs.ceph.com/docs/luminous/rados/troubleshooting/troubleshooting-osd/
#
class ceph::osds(
$args = {},
......
......@@ -37,7 +37,7 @@
# Optional. Defaults to False
#
# [*release*] The name of the Ceph release to install
# Optional. Default to 'jewel'.
# Optional. Default to 'luminous'.
#
class ceph::params (
......@@ -45,7 +45,7 @@ class ceph::params (
$packages = ['ceph'], # just provide the minimum per default
$rgw_socket_path = '/tmp/radosgw.sock',
$enable_sig = false,
$release = 'jewel',
$release = 'luminous',
) {
$pkg_mds = 'ceph-mds'
......
......@@ -155,7 +155,7 @@
# For OSD nodes it is recommended that you raise pid_max above the
# default value because you may hit the system max during
# recovery. The recommended value is the absolute max for pid_max: 4194303
# http://docs.ceph.com/docs/jewel/rados/troubleshooting/troubleshooting-osd/
# http://docs.ceph.com/docs/luminous/rados/troubleshooting/troubleshooting-osd/
#
# [*rgw_keystone_version*] The api version for keystone.
# Possible values 'v2.0', 'v3'
......
......@@ -34,7 +34,7 @@
# Optional. Defaults to 'present'.
#
# [*release*] The name of the Ceph release to install
# Optional. Default to 'jewel' in ceph::params.
# Optional. Default to 'luminous' in ceph::params.
#
# [*fastcgi*] Install Ceph fastcgi apache module for Ceph
# Optional. Defaults to 'false'
......@@ -129,15 +129,15 @@ not on ${::operatingsystem}, which can lead to packaging issues.")
} else {
$ceph_mirror_real = "https://buildlogs.centos.org/centos/7/storage/x86_64/ceph-${release}/"
}
yumrepo { 'ceph-jewel-sig':
yumrepo { 'ceph-luminous-sig':
enabled => '1',
baseurl => $ceph_mirror_real,
descr => 'Ceph Jewel SIG',
descr => 'Ceph Luminous SIG',
mirrorlist => 'absent',
gpgcheck => '0',
}
# Make sure we install the repo before any Package resource
Yumrepo['ceph-jewel-sig'] -> Package<| tag == 'ceph' |>
Yumrepo['ceph-luminous-sig'] -> Package<| tag == 'ceph' |>
} else {
# If you want to deploy Ceph using packages provided by ceph.com repositories.
if ((($::operatingsystem == 'RedHat' or $::operatingsystem == 'CentOS') and (versioncmp($::operatingsystemmajrelease, '7') < 0))
......
---
features:
- Added Luminous support for modules
\ No newline at end of file
......@@ -23,41 +23,31 @@ describe 'ceph mon osd' do
it 'should install one monitor and one OSD on /srv/data' do
pp = <<-EOS
if $::operatingsystem == 'CentOS' {
class { 'ceph::repo':
release => 'jewel',
enable_sig => true,
enable_epel => false,
ceph_mirror => $ceph_mirror,
}
class { 'ceph':
fsid => '82274746-9a2c-426b-8c51-107fb0d890c6',
mon_host => $::ipaddress,
authentication_type => 'none',
osd_pool_default_size => '1',
osd_pool_default_min_size => '1',
osd_max_object_namespace_len => '64',
osd_max_object_name_len => '256',
}
ceph_config {
'global/osd_journal_size': value => '100';
}
# NOTE(mnaser): At the moment, the storage SIG packages do not ship 12.X
# however UCA is shipping it at the moment. This conditional
# should be dropped once we switch CentOS to 12.X
if $::osfamily != 'RedHat' {
ceph::mgr { 'a':
authentication_type => 'none',
}
}
ceph::mon { 'a':
public_addr => $::ipaddress,
authentication_type => 'none',
}
ceph::osd { '/srv/data': }
class { 'ceph::repo':
enable_sig => true,
enable_epel => false,
ceph_mirror => $ceph_mirror,
}
class { 'ceph':
fsid => '82274746-9a2c-426b-8c51-107fb0d890c6',
mon_host => $::ipaddress,
authentication_type => 'none',
osd_pool_default_size => '1',
osd_pool_default_min_size => '1',
osd_max_object_namespace_len => '64',
osd_max_object_name_len => '256',
}
ceph_config {
'global/osd_journal_size': value => '100';
}
ceph::mgr { 'a':
authentication_type => 'none',
}
ceph::mon { 'a':
public_addr => $::ipaddress,
authentication_type => 'none',
}
ceph::osd { '/srv/data': }
EOS
apply_manifest(pp, :catch_failures => true)
......@@ -67,7 +57,7 @@ describe 'ceph mon osd' do
shell 'sleep 10' # we need to wait a bit until the OSD is up
shell 'ceph -s', { :acceptable_exit_codes => [0] } do |r|
expect(r.stdout).to match(/1 mons at/)
expect(r.stdout).to match(/mon: 1 daemons/)
expect(r.stderr).to be_empty
end
......
This diff is collapsed.
---
######## Ceph
ceph::profile::params::release: 'jewel'
ceph::profile::params::release: 'luminous'
######## Ceph.conf
ceph::profile::params::fsid: '4b5c8c0a-ff60-454b-a1b4-9747aa737d19'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment