Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efe86b2
commit 2660190
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
$default_servers = "default!" | ||
if $ntp_servers == undef { | ||
if !$ntp_servers { | ||
$ntp_servers = $default_servers | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class foobunk ($foo) { | ||
notify {"Foo is $foo":} | ||
} | ||
|
||
class {'foobunk': | ||
foo => "declared in the declaration", | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node default { | ||
$::myvar = "Hi There" | ||
include myclass | ||
} | ||
|
||
class myclass { | ||
$myvar = "You shouldn't see this" | ||
notify { test: message => $::myvar } | ||
} |