We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6398fb commit a1d20a7Copy full SHA for a1d20a7
manifests/params.pp
@@ -171,8 +171,8 @@
171
}
172
173
'Debian': {
174
- if $::operatingsystem == 'Debian' or
175
- ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) {
+ if $facts['os']['name'] == 'Debian' or
+ ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '20.04') >= 0) {
176
$provider = 'mariadb'
177
} else {
178
$provider = 'mysql'
manifests/server/config.pp
@@ -34,7 +34,7 @@
34
35
36
#Debian: Creating world readable directories before installing.
37
- case $::osfamily {
+ case $facts['os']['family'] {
38
39
if $managed_dirs {
40
$managed_dirs.each | $entry | {
0 commit comments