Created
August 5, 2014 15:14
-
-
Save dalen/57b37b80a9ba1879b78c to your computer and use it in GitHub Desktop.
This file contains 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
# using parenthesis hash style | |
class foo ( | |
$servername = $::fqdn, | |
$port = 80, | |
$ssl = false, | |
$extra_opts={}, | |
) { | |
apache::vhost { $servername: ($extra_opts + { | |
port => $port, | |
ssl => $ssl, | |
}) | |
} | |
} | |
# using * => | |
class foo ( | |
$servername = $::fqdn, | |
$port = 80, | |
$ssl = false, | |
$extra_opts={}, | |
) { | |
apache::vhost { $servername: | |
port => $port, | |
ssl => $ssl, | |
* => $extra_opts, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment