Skip to content

Commit b91c917

Browse files
committed
Addressing top-scope facts
1 parent fa5472f commit b91c917

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
# ```puppet
245245
# include apache::params
246246
# class { 'apache':
247-
# mod_libs => merge($::apache::params::mod_libs, {
247+
# mod_libs => merge($apache::params::mod_libs, {
248248
# 'wsgi' => 'mod_wsgi_python3.so',
249249
# })
250250
# }
@@ -255,7 +255,7 @@
255255
# ```puppet
256256
# include apache::params
257257
# class { 'apache':
258-
# mod_packages => merge($::apache::params::mod_packages, {
258+
# mod_packages => merge($apache::params::mod_packages, {
259259
# 'auth_kerb' => 'httpd24-mod_auth_kerb',
260260
# })
261261
# }

spec/acceptance/vhost_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class { 'apache':
1010
default_ssl_vhost => false,
1111
service_ensure => stopped,
1212
}
13-
if ($facts['os']['family'] == 'Suse' and $::operatingsystemrelease < '15') {
13+
if ($facts['os']['family'] == 'Suse' and $facts['os']['release']['major'] < '15') {
1414
exec { '/usr/bin/gensslcert':
1515
require => Class['apache'],
1616
}
17-
} elsif ($facts['os']['family'] == 'Suse' and $::operatingsystemrelease >= '15') {
17+
} elsif ($facts['os']['family'] == 'Suse' and $facts['os']['release']['major'] >= '15') {
1818
# In SLES 15, if not given a name, gensslcert defaults the name to be the hostname
1919
exec { '/usr/bin/gensslcert -n default':
2020
require => Class['apache'],

spec/classes/mod/auth_kerb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<<-MANIFEST
4747
include apache::params
4848
class { 'apache':
49-
mod_packages => merge($::apache::params::mod_packages, {
49+
mod_packages => merge($apache::params::mod_packages, {
5050
'auth_kerb' => 'httpd24-mod_auth_kerb',
5151
})
5252
}

spec/classes/mod/auth_openidc_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<<-MANIFEST
5656
include apache::params
5757
class { 'apache':
58-
mod_packages => merge($::apache::params::mod_packages, {
58+
mod_packages => merge($apache::params::mod_packages, {
5959
'auth_openidc' => 'httpd24-mod_auth_openidc',
6060
})
6161
}

spec/classes/mod/wsgi_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@
136136
<<-MANIFEST
137137
include apache::params
138138
class { 'apache':
139-
mod_packages => merge($::apache::params::mod_packages, {
139+
mod_packages => merge($apache::params::mod_packages, {
140140
'wsgi' => 'python3-mod_wsgi',
141141
}),
142-
mod_libs => merge($::apache::params::mod_libs, {
142+
mod_libs => merge($apache::params::mod_libs, {
143143
'wsgi' => 'mod_wsgi_python3.so',
144144
})
145145
}

0 commit comments

Comments
 (0)