hello,
----- "Peter Meier" <[email protected]> wrote:
> $vhosts_dir = $operatingsystem ? {
> centos => "$apache::centos::config_dir/vhosts.d",
> gentoo => "$apache::gentoo::config_dir/vhosts.d",
> debian => "$apache::debian::config_dir/vhosts.d",
> ubuntu => "$apache::ubuntu::config_dir/vhosts.d",
> openbsd => "$apache::openbsd::config_dir/vhosts.d",
> default => '/etc/apache2/vhosts.d',
> }
>
or you can use extlookup[1] to build these maps, and it all just becomes:
$vhosts_dir = extlookup("vhost_dir")
and you can reuse that data source anywhere u need it
http://www.devco.net/archives/2009/08/31/complex_data_and_puppet.php
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.