Skip to content

Instantly share code, notes, and snippets.

@ottomata
Created September 1, 2020 20:23
Show Gist options
  • Save ottomata/82f7075922ff4080433972a003c342b1 to your computer and use it in GitHub Desktop.
Save ottomata/82f7075922ff4080433972a003c342b1 to your computer and use it in GitHub Desktop.
# 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