Skip to content

Instantly share code, notes, and snippets.

@kcollasarundell
Last active December 25, 2015 13:49
Show Gist options
  • Save kcollasarundell/6986504 to your computer and use it in GitHub Desktop.
Save kcollasarundell/6986504 to your computer and use it in GitHub Desktop.
explaination of ; vs , in puppet for 3JTAAG918
So 3JT asked about the use of ; in https://forge.puppetlabs.com/nodes/php/0.6.1
it all comes down to making multiple resource declarations in a single block vs multiple blocks
With multiple declarations ; indicates the end of a resource
This
class {
'php::cli':
ensure => $php_version;
'php::apache':
ensure => $php_version;
'php::dev':
ensure => $php_version;
'php::pear':
ensure => $php_version;
'php::extension::apc':
ensure => $php_version;
}
is equivalent to
class {'php::cli':
ensure => $php_version,
}
class {'php::apache':
ensure => $php_version,
}
and etc but i can't be bothered adding the others.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment