Skip to content

Commit 41915a0

Browse files
Helen CampbellDavidS
Helen Campbell
authored andcommitted
Update to use the $facts hash
1 parent 576114a commit 41915a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/config.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
class ntp::config inherits ntp {
33

44
#The servers-netconfig file overrides NTP config on SLES 12, interfering with our configuration.
5-
if $::operatingsystem == 'SLES' and $::operatingsystemmajrelease == '12' {
5+
if $facts['operatingsystem'] == 'SLES' and $facts['operatingsystemmajrelease'] == '12' {
66
file { '/var/run/ntp/servers-netconfig':
77
ensure => 'absent'
88
}

manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class ntp::params {
2-
if str2bool($::is_virtual) {
2+
if str2bool($facts['is_virtual']) {
33
$tinker = true
44
$panic = 0
55
}

0 commit comments

Comments
 (0)