[Puppet Users] Re: Has anyone tried Puppet under Ruby 1.9?

2009-05-06 Thread neerolyte

> josb has provided a 1.9 compatibility patch, but we stupidly have not
> merged it in yet.
>
> It'll be in 0.25, though.

Where can we find this patch?

Or alternatively is 0.25 coming out fairly soon?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---



[Puppet Users] logging to a file

2009-05-11 Thread neerolyte

Is it possible to completely disable logging to syslog and only log to
a file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---



[Puppet Users] Re: logging to a file

2009-05-11 Thread neerolyte

On May 12, 3:41 pm, James Turnbull  wrote:
> Have a look at 
> thehttp://reductivelabs.com/trac/puppet/wiki/ConfigurationReferencepage
> and the various log options.

I've looked there.

I've got sensible values set for all of the log related config.

The closest I could find to an answer was:
masterlog -- Where puppetmasterd logs. This is generally not used,
since syslog is the default log destination.

I can't find any mention of how to change the log destination though.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---



[Puppet Users] Re: logging to a file

2009-05-12 Thread neerolyte

Luke Kanies wrote:
> The only way to do it is to set the logdest for puppetmasterd on
> startup, but I believe that has been broken in some versions because
> it's used so rarely.

Ok after a lot of playing I finally found out that not all options
that work at the cli work in the config, logdest is one.

My solution for now is to wrap '--logdest /path/to/my/log' in my
init.d script, but I believe this should be treated as a bug. Should I
post it to the bug tracker?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---



[Puppet Users] loops in .pp files?

2009-05-14 Thread neerolyte

I'm struggling to figure out how to do this as I just don't know what
to search for...

What we have: e1 - e9 (e1 being dev, e9 being prod, middle
environments being test machines of various degrees).

All environments have a fixed set of websites, call them eX-website1,
eX-website2, etc...

On some physical boxes we are forced to run multiple environments to
save money so what I need in Apache's vhosts folder is something like
this:

for each envs as $env {
file { "e${env}-website1":
...
}
...
}

but I don't know how to do this... any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---



[Puppet Users] Re: loops in .pp files?

2009-05-18 Thread neerolyte

It works, thanks.

Benoit Decherf wrote:
> Create a definition that create the environments :
>
> define prepare_env() {
>
> $env = $name
>
> file { "e${env}-website1":
> ...
> }
> ...
>
> }
>
>
> And in a class, call it with the array "envs":
>
> class main_class {
>
> prepare_env{$envs: }
>
> }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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
-~--~~~~--~~--~--~---