Will S. G.
unread,Apr 11, 2012, 8:25:19 PM4/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi,
I'm using one of the git projects for my Apache configuration. I'm now playing with Puppet environments, and I need to define a few parameters based on the environment. For example, I have params.pp:
$user = $operatingsystem ? {
/RedHat|CentOS/ => 'apache',
/Debian|Ubuntu/ => 'www-data',
}
I'd like to be able to define the $user based on each environment. For example, apache is for production, and nobody is for dev. Is it possible to use a if/else statement to do this? If so, any examples I can use to understand how?