-
-
Save kcollasarundell/6986504 to your computer and use it in GitHub Desktop.
explaination of ; vs , in puppet for 3JTAAG918
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
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