Hi guys,

For a project I'm working on for my studies we need to create a demo setup 
of a small enterprise environment. The linux-part of this is now managed by 
puppet. However, I'm running into something I can't exactly figure to how 
to fix. I've read the docs a few times but I can't find a clear indication 
on how to solve this and what would be the recommended way, Google left me 
out in the cold too.

What I basically need is flow control for my installation. In the current 
state I want to create an nginx-module that handles a few things. My main 
issue is that I want this parameterized. Depending on a parameter fed to 
that module I want to change the packages installed and additional classes 
being called upon.

I'd like to be able to do something like this:
nginx(type=default), install nginx, call nginx::conf
nginx(type=ruby), install nginx-extras, call nginx::conf, call 
nginx::conf::passenger
nginx(type=php), install nginx, php5-fpm, call nginx::conf, call 
nginx::conf::php

And so forth. I'd rather not split this up into different modules, imho 
that's ugly but I can't figure out how to do it this way in puppet either. 
Can anyone point me in the right direction?

Kind regards,

-- 
Daenney

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/7sMpz4YucOEJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to