Last active
September 25, 2015 18:42
-
-
Save lutter/a59a7d1d0848d15758bb 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
application lamp ( | |
$parameter = 'default', | |
){ | |
$names = [ 'one', 'two' 'three' ] | |
$names.each |name| { | |
site::apache { $name: | |
export => Http[$name], | |
} | |
} | |
## An example of that capability resource | |
# http {'three': | |
# host => "el1.vm", | |
# ip => "172.16.89.222", | |
# port => 80, | |
# } | |
$http_members = $names.map |name| { Http[$name] } | |
site::lb { $name: | |
balancermembers => $http_members, | |
require => $http_members, | |
} | |
site::pql { $name: | |
user => 'ryan', | |
password => 'pass', | |
export => Sql['foo'], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment