Skip to content

Instantly share code, notes, and snippets.

@codec
Created May 23, 2012 12:34
Show Gist options
  • Save codec/2775025 to your computer and use it in GitHub Desktop.
Save codec/2775025 to your computer and use it in GitHub Desktop.
class dhcp ($foo) {
notice {"foo is ${foo}":}
}
class dhcp::pool ($bar=$dhcp::foo) {
notice {"bar is ${bar}":}
notice {inline_template('has_variable is <%= has_variable?("dhcp::foo") %>'):}
}
class { 'dhcp':
foo => 'klassfoo'
}
class { 'dhcp::pool': }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment