Created
September 1, 2020 20:23
-
-
Save ottomata/82f7075922ff4080433972a003c342b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Declare a class called test_class that takes a $content parameter. | |
class test_class( | |
$content | |
) { | |
file { "/tmp/f1.txt": | |
content => $content | |
} | |
} | |
# 'include' the test_class with content defined as "YOOHOOOO" | |
class { 'test_class': | |
content => "YOOHOOOO" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment