1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
|
Description: Trixie support
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2025-05-27
Index: puppet-module-ceph/manifests/mds.pp
===================================================================
--- puppet-module-ceph.orig/manifests/mds.pp
+++ puppet-module-ceph/manifests/mds.pp
@@ -42,7 +42,7 @@
# Optional. Default is running.
#
# [*mds_id*] The ID of the MDS instance.
-# Optional. Default is $::hostname
+# Optional. Default is $facts['networking']['hostname']
#
# [*keyring*] The location of the keyring used by MDSs
# Optional. Same default as ceph.
@@ -58,7 +58,7 @@ class ceph::mds (
$mds_data = undef,
$mds_enable = true,
$mds_ensure = 'running',
- $mds_id = $::hostname,
+ $mds_id = $facts['networking']['hostname'],
$keyring = undef,
$cluster = 'ceph',
) inherits ceph::params {
Index: puppet-module-ceph/manifests/mirror.pp
===================================================================
--- puppet-module-ceph.orig/manifests/mirror.pp
+++ puppet-module-ceph/manifests/mirror.pp
@@ -50,8 +50,8 @@ define ceph::mirror (
#Xenial reports 'debian' as the service provider
#'systemd' should cover supported RHEL type systems
- if( ( $::service_provider == 'systemd' ) or
- ( $::operatingsystemrelease == '16.04' ) )
+ if( ( $facts['service_provider'] == 'systemd' ) or
+ ( $facts['os']['release']['full'] == '16.04' ) )
{
Service{
name => $service_name,
Index: puppet-module-ceph/manifests/mon.pp
===================================================================
--- puppet-module-ceph.orig/manifests/mon.pp
+++ puppet-module-ceph/manifests/mon.pp
@@ -85,11 +85,11 @@ define ceph::mon (
$mon_service = "ceph-mon-${id}"
# For Ubuntu Trusty system
- if $::service_provider == 'upstart' {
+ if $facts['service_provider'] == 'upstart' {
$init = 'upstart'
Service {
name => 'ceph-mon',
- provider => $::service_provider,
+ provider => $facts['service_provider'],
start => "start ceph-mon id=${id}",
stop => "stop ceph-mon id=${id}",
status => "status ceph-mon id=${id}",
Index: puppet-module-ceph/manifests/osd.pp
===================================================================
--- puppet-module-ceph.orig/manifests/osd.pp
+++ puppet-module-ceph/manifests/osd.pp
@@ -186,7 +186,7 @@ ceph-volume lvm list ${data}
timeout => $exec_timeout,
tag => 'prepare',
}
- if (str2bool($::selinux) == true) {
+ if (str2bool($facts['selinux']) == true) {
ensure_packages($ceph::params::pkg_policycoreutils, {'ensure' => 'present'})
exec { "fcontext_${name}":
command => "/bin/true # comment to satisfy puppet syntax requirements
Index: puppet-module-ceph/manifests/params.pp
===================================================================
--- puppet-module-ceph.orig/manifests/params.pp
+++ puppet-module-ceph/manifests/params.pp
@@ -49,7 +49,7 @@ class ceph::params (
) {
$pkg_mds = 'ceph-mds'
- case $::osfamily {
+ case $facts['os']['family'] {
'Debian': {
$pkg_radosgw = 'radosgw'
$user_radosgw = 'www-data'
@@ -61,7 +61,7 @@ class ceph::params (
$pkg_radosgw = 'ceph-radosgw'
$user_radosgw = 'apache'
$pkg_fastcgi = 'mod_fastcgi'
- if (Integer.new($::os['release']['major']) > 7) {
+ if (Integer.new($facts['os']['release']['major']) > 7) {
$pkg_policycoreutils = 'policycoreutils-python-utils'
} else {
$pkg_policycoreutils = 'policycoreutils-python'
@@ -69,7 +69,7 @@ class ceph::params (
}
default: {
- fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
+ fail("Unsupported osfamily: ${::facts['os']['family']} operatingsystem: ${::facts['os']['distro']['name']}, \
module ${module_name} only supports osfamily Debian or RedHat")
}
}
Index: puppet-module-ceph/manifests/profile/mgr.pp
===================================================================
--- puppet-module-ceph.orig/manifests/profile/mgr.pp
+++ puppet-module-ceph/manifests/profile/mgr.pp
@@ -22,7 +22,7 @@
class ceph::profile::mgr {
require ceph::profile::base
- ceph::mgr { $::hostname:
+ ceph::mgr { $facts['networking']['hostname']:
authentication_type => $ceph::profile::params::authentication_type,
key => $ceph::profile::params::mgr_key,
inject_key => true,
Index: puppet-module-ceph/manifests/profile/mon.pp
===================================================================
--- puppet-module-ceph.orig/manifests/profile/mon.pp
+++ puppet-module-ceph/manifests/profile/mon.pp
@@ -23,7 +23,7 @@
class ceph::profile::mon {
require ceph::profile::base
- ceph::mon { $::hostname:
+ ceph::mon { $facts['networking']['hostname']:
authentication_type => $ceph::profile::params::authentication_type,
key => $ceph::profile::params::mon_key,
keyring => $ceph::profile::params::mon_keyring,
Index: puppet-module-ceph/manifests/repo.pp
===================================================================
--- puppet-module-ceph.orig/manifests/repo.pp
+++ puppet-module-ceph/manifests/repo.pp
@@ -70,7 +70,7 @@ class ceph::repo (
$enable_sig = $ceph::params::enable_sig,
$ceph_mirror = undef,
) inherits ceph::params {
- case $::osfamily {
+ case $facts['os']['family'] {
'Debian': {
include apt
@@ -89,7 +89,7 @@ class ceph::repo (
apt::source { 'ceph':
ensure => $ensure,
location => $ceph_mirror_real,
- release => $::lsbdistcodename,
+ release => $facts['os']['distro']['codename'],
tag => 'ceph',
}
@@ -104,7 +104,7 @@ class ceph::repo (
apt::source { 'ceph-fastcgi':
ensure => $ensure,
location => "http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-${::lsbdistcodename}-${::hardwaremodel}-basic/ref/master",
- release => $::lsbdistcodename,
+ release => $facts['os']['distro']['codename'],
require => Apt::Key['ceph-gitbuilder'],
}
@@ -120,7 +120,7 @@ class ceph::repo (
# If you want to deploy Ceph using packages provided by CentOS SIG
# https://wiki.centos.org/SpecialInterestGroup/Storage/
if $enable_sig {
- if $::operatingsystem != 'CentOS' {
+ if $facts['os']['name'] != 'CentOS' {
warning("CentOS SIG repository is only supported on CentOS operating system, \
not on ${::operatingsystem}, which can lead to packaging issues.")
}
@@ -144,8 +144,8 @@ not on ${::operatingsystem}, which can l
Yumrepo['ceph-luminous-sig'] -> Yumrepo['ceph-storage-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))
- or ($::operatingsystem == 'Fedora' and (versioncmp($::operatingsystemmajrelease, '19') < 0))) {
+ if ((($facts['os']['name'] == 'RedHat' or $facts['os']['name'] == 'CentOS') and (versioncmp($facts['os']['distro']['major'], '7') < 0))
+ or ($facts['os']['name'] and (versioncmp($facts['os']['distro']['major'], '19') < 0))) {
$el = '6'
} else {
$el = '7'
@@ -158,7 +158,7 @@ not on ${::operatingsystem}, which can l
}
- if ($::operatingsystem != 'Fedora') {
+ if ($facts['os']['name'] != 'Fedora') {
yumrepo { 'ext-ceph':
# puppet versions prior to 3.5 do not support ensure, use enabled instead
enabled => $enabled,
@@ -206,7 +206,7 @@ not on ${::operatingsystem}, which can l
}
}
- if $enable_epel and ($::operatingsystem != 'Fedora') {
+ if $enable_epel and ($facts['os']['name'] != 'Fedora') {
yumrepo { "ext-epel-${el}":
# puppet versions prior to 3.5 do not support ensure, use enabled instead
enabled => $enabled,
@@ -226,7 +226,7 @@ not on ${::operatingsystem}, which can l
}
default: {
- fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
+ fail("Unsupported osfamily: ${::facts['os']['family']} operatingsystem: ${::facts['os']['distro']['name']}, \
module ${module_name} only supports osfamily Debian and RedHat")
}
}
Index: puppet-module-ceph/manifests/rgw.pp
===================================================================
--- puppet-module-ceph.orig/manifests/rgw.pp
+++ puppet-module-ceph/manifests/rgw.pp
@@ -80,13 +80,13 @@ define ceph::rgw (
$user = $ceph::params::user_radosgw,
$keyring_path = "/etc/ceph/ceph.client.${name}.keyring",
$log_file = '/var/log/ceph/radosgw.log',
- $rgw_dns_name = $::fqdn,
+ $rgw_dns_name = $facts['networking']['fqdn'],
$rgw_socket_path = $ceph::params::rgw_socket_path,
$rgw_print_continue = false,
$rgw_port = undef,
$frontend_type = 'civetweb',
$rgw_frontends = 'civetweb port=7480',
- $rgw_swift_url = "http://${::fqdn}:7480",
+ $rgw_swift_url = "http://${::networking['fqdn']}:7480",
$syslog = undef,
) {
@@ -102,7 +102,7 @@ define ceph::rgw (
}
ceph_config {
- "client.${name}/host": value => $::hostname;
+ "client.${name}/host": value => $facts['networking']['hostname'];
"client.${name}/keyring": value => $keyring_path;
"client.${name}/log_file": value => $log_file;
"client.${name}/user": value => $user;
@@ -170,7 +170,7 @@ define ceph::rgw (
# service definition
# if Ubuntu does not use systemd
- if $::service_provider == 'upstart' {
+ if $facts['service_provider'] == 'upstart' {
if $rgw_enable {
file { "${rgw_data}/done":
ensure => present,
@@ -183,7 +183,7 @@ define ceph::rgw (
start => "start radosgw id=${name}",
stop => "stop radosgw id=${name}",
status => "status radosgw id=${name}",
- provider => $::service_provider,
+ provider => $facts['service_provider'],
}
# Everything else that is supported by puppet-ceph should run systemd.
} else {
Index: puppet-module-ceph/manifests/rgw/apache_proxy_fcgi.pp
===================================================================
--- puppet-module-ceph.orig/manifests/rgw/apache_proxy_fcgi.pp
+++ puppet-module-ceph/manifests/rgw/apache_proxy_fcgi.pp
@@ -67,7 +67,7 @@
define ceph::rgw::apache_proxy_fcgi (
$admin_email = 'root@localhost',
$docroot = '/var/www',
- $rgw_dns_name = $::fqdn,
+ $rgw_dns_name = $facts['networking']['fqdn'],
$rgw_port = '80',
$rewrite_rule = '.* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]',
$setenv = 'proxy-nokeepalive 1',
Index: puppet-module-ceph/manifests/rgw/keystone.pp
===================================================================
--- puppet-module-ceph.orig/manifests/rgw/keystone.pp
+++ puppet-module-ceph/manifests/rgw/keystone.pp
@@ -84,8 +84,8 @@ define ceph::rgw::keystone (
}
# FIXME(ykarel) Cleanup once https://tracker.ceph.com/issues/24228 is fixed for luminous
- if ($::os['name'] == 'Fedora') or
- ($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
+ if ($facts['os']['name'] == 'Fedora') or
+ ($facts['os']['family'] == 'RedHat' and Integer.new($facts['os']['release']['major']) > 7) {
ceph_config {
"client.${name}/rgw_ldap_secret": value => '';
}
Index: puppet-module-ceph/manifests/profile/params.pp
===================================================================
--- puppet-module-ceph.orig/manifests/profile/params.pp
+++ puppet-module-ceph/manifests/profile/params.pp
@@ -241,8 +241,6 @@ class ceph::profile::params (
$rbd_default_features = undef,
) {
- validate_legacy(Hash, 'validate_hash', $client_keys)
-
if $authentication_type == 'cephx' and empty($client_keys) {
fail("client_keys must be provided when using authentication_type = 'cephx'")
}
|