[Puppet Users] Re: client won't use remote file bucket

2010-11-09 Thread luke.bigum
Roman, Not that I know of. I'm still aware it doesn't work in my site, but I'm content with local file bucketing until I have the time to look at this again. -Luke On Nov 9, 3:47 am, Roman roman@googlemail.com wrote: Hi James. Could you tell if you found a resolution to this problem? I

[Puppet Users] selectors in type defaults

2010-11-09 Thread Arnau Bria
Hi all, I'd like to define a selecto when defining user type default: User { ensure = present, provider= useradd, managehome = $name ? { /^at/ = true, default = false,

Re: [Puppet Users] selectors in type defaults

2010-11-09 Thread Bruce Richardson
On Tue, Nov 09, 2010 at 10:46:07AM +0100, Arnau Bria wrote: Hi all, I'd like to define a selecto when defining user type default: User { ensure = present, provider= useradd, managehome = $name ? {

Re: [Puppet Users] selectors in type defaults

2010-11-09 Thread Arnau Bria
On Tue, 9 Nov 2010 10:36:12 + Bruce Richardson wrote: Hi Bruce, [...] You could do this using a define. I thought so. A resource default isn't some kind of macro that is invoked whenever an instance of the resource is evaluated; the code of the defaults declaration is evaluated in

Re: [Puppet Users] Re: selectors in type defaults

2010-11-09 Thread Arnau Bria
On Tue, 9 Nov 2010 06:24:21 -0800 (PST) jcbollinger jcbollinger wrote: I'm not sure you've fully appreciated Bruce's remarks and advice. No, Yes, I did. I was playing at test instance, and had some options when wanted to create home for certain users: 1.-) modify our local script that

[Puppet Users] Query facter 'facts' from webapp

2010-11-09 Thread Pieter Baele
Hi, I would like to query the puppetmaster (or the puppet nodes...) for some facts and display/use these in an external web application (written django) using the certificates from Puppet. What's the correct (nice) way to do this? REST? Can I find some code examples for this? Met vriendelijke

Re: [Puppet Users] Query facter 'facts' from webapp

2010-11-09 Thread Matt Wallace
On Tuesday 09 Nov 2010 15:06:28 Pieter Baele wrote: Hi, I would like to query the puppetmaster (or the puppet nodes...) for some facts and display/use these in an external web application (written django) using the certificates from Puppet. What's the correct (nice) way to do this? REST?

Re: [Puppet Users] Query facter 'facts' from webapp

2010-11-09 Thread Stefan Goethals
On Tue, Nov 9, 2010 at 3:06 PM, Pieter Baele pieter.ba...@gmail.com wrote: Hi, I would like to query the puppetmaster (or the puppet nodes...) for some facts and display/use these in an external web application (written django) using the certificates from Puppet. What's the correct (nice)

[Puppet Users] Puppet-dashboard does not show last 30 puppet runs.

2010-11-09 Thread Jeremy Carroll
The list is totally blank. I see no errors in production.log. Does anybody know of a way I can troubleshoot this problem? Here is a screenshot of the issue. http://imgur.com/Lt2fn.png Thanks! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: selectors in type defaults

2010-11-09 Thread jcbollinger
On Nov 9, 4:53 am, Arnau Bria arnaub...@pic.es wrote: I have a script that translates nis users into puppet users (we don't want nis services in our nodes, but use autofs for its homes... long history) So all users already have their homes if autofs is started. But I'd like to change some

[Puppet Users] Re: How can I reload environment variable file using puppet?

2010-11-09 Thread jcbollinger
On Nov 8, 4:48 pm, Tim C tcolli...@gmail.com wrote: Thanks for you help. Does that mean that there is no way to do it from inside of a puppet module? It means that there is no way at all to do it from inside Puppet that will affect the current execution of Puppet itself. Puppet does a lot

Re: [Puppet Users] Restarting services

2010-11-09 Thread Rob McBroom
On Nov 5, 2010, at 4:20 PM, byron appelt wrote: Is it possible to use a Service resource, but not have puppet start or start the service? I want to declare service resources so that I can easily make sure that puppet will restart them when packages are upgraded, etc., but I do not want puppet

Re: [Puppet Users] Query facter 'facts' from webapp

2010-11-09 Thread Ohad Levy
You could query foreman to get the facts via rest, see : http://theforeman.org/projects/foreman/wiki/API Ohad On Tue, Nov 9, 2010 at 4:06 PM, Pieter Baele pieter.ba...@gmail.com wrote: Hi, I would like to query the puppetmaster (or the puppet nodes...) for some facts and display/use these

RE: [Puppet Users] Re: multiple package installation at same location

2010-11-09 Thread Matthew Black
An alternative is to have puppet push out the contents of the RPM instead of trying to install from RPM. The problem with RPM is its not designed to have two different packages owning the same files, but there are ways around it. You would need to install the RPM via the RPM command with --force

[Puppet Users] Re: multiple package installation at same location

2010-11-09 Thread Bakul
I know that would be better option but it's not possible to do it at this point (due to some non-technical issue). Is there anyway this can be handled in puppet. Thanks. On Nov 5, 8:26 am, jcbollinger john.bollin...@stjude.org wrote: On Nov 4, 3:28 pm, Bakul bakul.ghug...@gmail.com wrote:

[Puppet Users] Could not create PID file: /var/lib/puppet/run/puppetd.pid

2010-11-09 Thread James Lee
Hi experts! I am running Puppet 0.25.5 on CentOS, and I have two machines, one running as master one as client. My master machine seems alright but my client machine keeps on getting this message: Could not run: Could not create PID file: /var/lib/puppet/run/puppetd.pid I'm new to this and I'm

Re: [Puppet Users] Re: How can I reload environment variable file using puppet?

2010-11-09 Thread James Bailey
On 8 November 2010 22:48, Tim C tcolli...@gmail.com wrote: Thanks for you help. Does that mean that there is no way to do it from inside of a puppet module? Please forgive I am new to Puppet but the question seem to be does Puppet respond to standard process signals so for example if puppet

Re: [Puppet Users] Restarting services

2010-11-09 Thread Patrick
On Nov 9, 2010, at 6:06 AM, Rob McBroom wrote: On Nov 5, 2010, at 4:20 PM, byron appelt wrote: Is it possible to use a Service resource, but not have puppet start or start the service? I want to declare service resources so that I can easily make sure that puppet will restart them when

[Puppet Users] Realizing wrong ssh key for the wrong user

2010-11-09 Thread Tobias Lott
Hey Everyone I've defined my users in a class called 'user::virtual' and the included user::server1 class to realize the users for a nodegroup. Problem is puppet is trying to realize all keys for all the user. f.e. user peto gets key peto, tobi0 and tobi1 and user tobi gets peto, tobi0 and tobi1

Re: [Puppet Users] Puppet-dashboard does not show last 30 puppet runs.

2010-11-09 Thread Igal Koshevoy
On Tue, Nov 9, 2010 at 6:36 AM, Jeremy Carroll phobos...@gmail.com wrote: The list is totally blank. I see no errors in production.log. Does anybody know of a way I can troubleshoot this problem? Here is a screenshot of the issue. http://imgur.com/Lt2fn.png Thanks! This undesirable behavior

Re: [Puppet Users] Realizing wrong ssh key for the wrong user

2010-11-09 Thread Tony G.
Tobias, On Tue, Nov 9, 2010 at 1:11 PM, Tobias Lott tl...@ebel-syste.ms wrote: Hey Everyone I've defined my users in a class called 'user::virtual' and the included user::server1 class to realize the users for a nodegroup. Problem is puppet is trying to realize all keys for all the user.

Re: [Puppet Users] Realizing wrong ssh key for the wrong user

2010-11-09 Thread Tobias Lott
Tobias, On Tue, Nov 9, 2010 at 1:11 PM, Tobias Lott tl...@ebel-syste.ms wrote: Hey Everyone I've defined my users in a class called 'user::virtual' and the included user::server1 class to realize the users for a nodegroup. Problem is puppet is trying to realize all keys for all the user.

[Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Kent
Patrick, thanks for the speedy reply once again. I'm using RHEL5 and Puppet 2.6.1, Passenger 2.2.7, Rack 1.1.0. From what I've read in this group and in Puppet Labs docs/wikis, Debian/Ubuntu users do seem to have an easier time generally than CentOS/Red Hat :-\ Can I pass my command-line

Re: [Puppet Users] Query facter 'facts' from webapp

2010-11-09 Thread James Turnbull
Pieter Baele wrote: Hi, I would like to query the puppetmaster (or the puppet nodes...) for some facts and display/use these in an external web application (written django) using the certificates from Puppet. What's the correct (nice) way to do this? REST? Can I find some code examples

Re: [Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Jeremy Carroll
I am having the same issue, and am running about the same stack. CentOS 5.5 facter (1.5.8) fastthread (1.0.7) passenger (2.2.15) puppet (2.6.2) puppet-module (0.3.0) rack (1.1.0) rake (0.8.7) stomp (1.1.6) On Tue, Nov 9, 2010 at 2:50 PM, Kent kentmshu...@gmail.com wrote: Patrick, thanks for

Re: [Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Patrick
On Nov 9, 2010, at 12:50 PM, Kent wrote: Patrick, thanks for the speedy reply once again. I'm using RHEL5 and Puppet 2.6.1, Passenger 2.2.7, Rack 1.1.0. From what I've read in this group and in Puppet Labs docs/wikis, Debian/Ubuntu users do seem to have an easier time generally than

Re: [Puppet Users] Lenny and lenny-backports

2010-11-09 Thread Zach Leslie
Hi Walter, How are you managing your sources file? If you are simply managing the sources.list with a file resource, you can notify an exec that would run the apt-get update when a change is detected, such as: file { /etc/apt/sources.list: source = puppet:///modules/source.list, notify =

Re: [Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Jeremy Carroll
I have these same options in my config.ru as well. --- # a config.ru, for use with every rack-compatible webserver. # SSL needs to be handled outside this, though. # if puppet is not in your RUBYLIB: # $:.unshift('/opt/puppet/lib') $0 = master # if you want debugging: # ARGV --debug ARGV

[Puppet Users] Re: Problem using the logadm pattern

2010-11-09 Thread John Warburton
I got a reply from Adam (windowsref...@gmail.com) that is a good enough workaround until I can sit down and understand the type From: windows refund windowsref...@gmail.com To: John Warburton jwarbur...@gmail.com Hello John, I just worked around it by commenting out the problematic line in

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Zach Leslie
Hi Ed, You are correct that the environment will not get imported into puppet. When you restart the puppet daemon, you are missing your custom fact because daemon will run as its own process with its own environment, so just exporting the variable will only effect your current running environment

Re: [Puppet Users] Could not create PID file: /var/lib/puppet/run/puppetd.pid

2010-11-09 Thread Zach Leslie
Hi James, Could you give a little more information about your issue? How did you install the packages? How are you attempting to start the services? Your PID location appears to be nonstandard, so I would be curious if you have anything in your puppet.conf specifying an alternate pidfile. The

[Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Kent
I have the same config.ru as well (taken from the Puppet 2.6.1 source I believe). Mainly at this point I want to have to puppetmaster to log verbose output so I can maybe diagnose this catalog compilation issue. Using webrick you can set extra options for puppetmasterd with

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread eds . mailing . list . account
ok - that makes sense, but why does facter have a feature http://docs.puppetlabs.com/guides/faq.html#can-i-access-environmental-variables-with-facter where you can expose environmental variables as facts if puppet will not recognize the facts? Is the issue because of the old version of

Re: [Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 3:05 PM, Kent kentmshu...@gmail.com wrote: I have the same config.ru as well (taken from the Puppet 2.6.1 source I believe). Mainly at this point I want to have to puppetmaster to log verbose output so I can maybe diagnose this catalog compilation issue. Using webrick

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 3:45 PM, eds.mailing.list.acco...@gmail.com wrote: ok - that makes sense, but why does facter have a feature http://docs.puppetlabs.com/guides/faq.html#can-i-access-environmental-variables-with-facter where you can expose environmental variables as facts if puppet will

Re: [Puppet Users] Default ownership for static files

2010-11-09 Thread Markus Falb
On 08.11.10 20:01, Patrick wrote: On Nov 8, 2010, at 9:36 AM, Markus Falb wrote: ... I try in other words: A file on puppetmaster belongs to user x with uid y and it is created on the client with uid y whatever user this translates to. Is this intended ? I'm pretty sure it was

[Puppet Users] Re: Lenny and lenny-backports

2010-11-09 Thread bobics
I get around this issue by installing Puppet as a gem. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Puppet Users] Re: agent needs to make two runs before master compiles new catalog

2010-11-09 Thread Patrick
On Nov 9, 2010, at 3:05 PM, Kent wrote: I have the same config.ru as well (taken from the Puppet 2.6.1 source I believe). Mainly at this point I want to have to puppetmaster to log verbose output so I can maybe diagnose this catalog compilation issue. Using webrick you can set extra

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
The purpose behind setting up the fact this way is that I thought it would be an easy way to populate servers with extra metadata without having to drop a file and then a fact with some shell code on every server. For example, we have a number of servers that simply cannot be identified as being

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Patrick
On Nov 9, 2010, at 6:01 PM, Edward Bailey wrote: The purpose behind setting up the fact this way is that I thought it would be an easy way to populate servers with extra metadata without having to drop a file and then a fact with some shell code on every server. For example, we have a

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 6:01 PM, Edward Bailey eds.mailing.list.acco...@gmail.com wrote: The purpose behind setting up the fact this way is that I thought it would be an easy way to populate servers with extra metadata without having to drop a file and then a fact with some shell code on every

Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
server means the hardware that the puppet client manages On Tue, Nov 9, 2010 at 9:06 PM, Patrick kc7...@gmail.com wrote: On Nov 9, 2010, at 6:01 PM, Edward Bailey wrote: The purpose behind setting up the fact this way is that I thought it would be an easy way to populate servers with extra

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Edward Bailey
Sure I can update the wiki - I hope I can save some else time the next time this come up. I like your suggestion, but I cant quite visualize how I could write a fact that will parse any files in /etc/fact.s and create separate facts from the output. Would I use some sort of loop or will facter

Re: Re: [Puppet Users] question about custom facts and environmental variables

2010-11-09 Thread Nigel Kersten
On Tue, Nov 9, 2010 at 8:40 PM, Edward Bailey eds.mailing.list.acco...@gmail.com wrote: Sure I can update the wiki - I hope I can save some else time the next time this come up. I like your suggestion, but I cant quite visualize how I could write a fact that will parse any files in