Skip to content

Instantly share code, notes, and snippets.

@lutter
Last active September 25, 2015 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lutter/a59a7d1d0848d15758bb to your computer and use it in GitHub Desktop.
Save lutter/a59a7d1d0848d15758bb to your computer and use it in GitHub Desktop.
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