Skip to content

Commit a1d20a7

Browse files
committed
Use facts hash
1 parent f6398fb commit a1d20a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifests/params.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@
171171
}
172172

173173
'Debian': {
174-
if $::operatingsystem == 'Debian' or
175-
($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) {
174+
if $facts['os']['name'] == 'Debian' or
175+
($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '20.04') >= 0) {
176176
$provider = 'mariadb'
177177
} else {
178178
$provider = 'mysql'

manifests/server/config.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
#Debian: Creating world readable directories before installing.
37-
case $::osfamily {
37+
case $facts['os']['family'] {
3838
'Debian': {
3939
if $managed_dirs {
4040
$managed_dirs.each | $entry | {

0 commit comments

Comments
 (0)