AW: [Puppet Users] Collecting ressources for different hosts

2011-11-22 Thread Bernd Adamowicz
I've never used the file resource along with stored configurations. But the first thing I would do is to dig into the database the configurations are stored. Something like this: [root@myhost ~]# mysql -u puppet -p Enter password: mysql> use puppet mysql> select title,host_id from resources whe

Re: [Puppet Users] PE 2.0 and open source puppet

2011-11-22 Thread Nigel Kersten
On Tue, Nov 22, 2011 at 5:53 PM, T.J. Yang wrote: > Is there a feature comparsion between the two ? > http://puppetlabs.com/puppet/compare/ > for example, I like the "Live Management" in PE 2.0 dashboard. > Will this feature avaiable in open source dashboard one ? > > No, this is only in PE, n

Re: [Puppet Users] PE 2.0 server and regular stock puppet client

2011-11-22 Thread Nigel Kersten
On Tue, Nov 22, 2011 at 5:49 PM, T.J. Yang wrote: > On Tuesday, November 22, 2011 10:41:54 AM UTC-6, Nigel Kersten wrote: > >> >> 2. How do I prepare an expected puppet+mcollective agents on Ubuntu ? >>> >> >> You should use the PE agent install on Ubuntu 10.0.4 >> > > My bad, I failed to unders

[Puppet Users] PE 2.0 and open source puppet

2011-11-22 Thread T.J. Yang
Is there a feature comparsion between the two ? for example, I like the "Live Management" in PE 2.0 dashboard. Will this feature avaiable in open source dashboard one ? tj -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discu

Re: [Puppet Users] PE 2.0 server and regular stock puppet client

2011-11-22 Thread T.J. Yang
On Tuesday, November 22, 2011 10:41:54 AM UTC-6, Nigel Kersten wrote: > > > > On Tue, Nov 22, 2011 at 5:08 AM, T.J. Yang wrote: > >> Hi, All >> >> I am having puppet client side error message when building a 10 nodes PE >> 2.0 demo site to experience the new dashboard features. >> The only p

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
and then, indeed, maybe the provider could take a helper hint about how to go about detecting the presence of a package, kind of like Service takes hints about how to detect a service is running or not... Then maybe: detect_with_file => "C:\\Program Files\\Splunk\\bin\\splunk.exe" Thanks, Mohamed

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
I think the documentation about package providers should include something about this... Right now a provider has these features: holdableinstall_options installable purgeable uninstallable upgradeable versionable Maybe something like: detectable Meaning the provider can

[Puppet Users] query about github-puppet-modules [e.g. evolvingweb/puppet-glusterfs]

2011-11-22 Thread venu
I am a new user to puppet & github. Have a generic question regarding using puppet-modules downloaded from github. I am trying modules regarding managing glusterfs client & server from evolvingweb/puppet-glusterfs. May I know if there are any specific steps to be performed to include your module i

Re: [Puppet Users] declare and include classes

2011-11-22 Thread Nan Liu
On Tue, Nov 22, 2011 at 11:31 AM, Arnau Bria wrote: > Hi all, > > after moving to parametrized classes, I've started to declare them > instead of including. > > Now, I'm trying to understand the differences (internal) between > declare and include, and, reading > http://docs.puppetlabs.com/guides/

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Jacob Helwig
On 2011-11-22 07:10 , Mohamed Lrhazi wrote: > I noticed that is if I uninstall an MSI that was installed by Puppet, > Puppet does not notice. > > Looking at the source I see it might be checking for a state file to > know whether a package is installed or not: > C:\ProgramData\PuppetLabs\puppet\va

[Puppet Users] declare and include classes

2011-11-22 Thread Arnau Bria
Hi all, after moving to parametrized classes, I've started to declare them instead of including. Now, I'm trying to understand the differences (internal) between declare and include, and, reading http://docs.puppetlabs.com/guides/parameterized_classes.html again, I found some sentence which confu

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-22 Thread Alexander Fortin
On 11/22/11 7:37 PM, Aaron Grewell wrote: Curly braces perhaps? content => file("/home/${realuser}/puppet/files/smb.conf"), Tried both with ${realuser} and with ${::realuser}, no luck. -- Alexander Fortin http://about.me/alexanderfortin/ -- You received this message because you are subscribe

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-22 Thread Aaron Grewell
Curly braces perhaps? content => file("/home/${realuser}/puppet/files/smb.conf"), On Tue, Nov 22, 2011 at 10:15 AM, Alexander Fortin wrote: > On 11/21/11 9:28 PM, jcbollinger wrote: >> >> What if you spell it like so: >> >> mysersource { "/etc/$::myvariable": ensure =>  present } >> >> ? > > This

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-22 Thread Alexander Fortin
On 11/21/11 9:28 PM, jcbollinger wrote: What if you spell it like so: mysersource { "/etc/$::myvariable": ensure => present } ? This is the actual code now: file { "/etc/samba/smb.conf": ensure => "present", content => file("/home/$::realuser/puppet/files/smb.conf"), require =>

[Puppet Users] Issue with RPM dependency issue

2011-11-22 Thread TisMe
I am running into an issue with perl-DBD-MySQL dependency with mysql in CentOS 5.7. I am trying to remove the mysql client and replace it with with percona version of the mysql client. It will not let me remove the mysql client because of that dependency. I have already defined perl-DBD-MySQL in

[Puppet Users] Collecting ressources for different hosts

2011-11-22 Thread Jens
Hello everyone, I'm trying collect firewall rules from my nodes, so I can automatically deploy them to my firewalls The problem here is, that my nodes are behind different firewalls, so I need to collect the rules independently for each host. I tried an approach like this: Define a command.

Re: [Puppet Users] PE 2.0 server and regular stock puppet client

2011-11-22 Thread Nigel Kersten
On Tue, Nov 22, 2011 at 5:08 AM, T.J. Yang wrote: > Hi, All > > I am having puppet client side error message when building a 10 nodes PE > 2.0 demo site to experience the new dashboard features. > The only puppet(+mcollective) client works is that one come with PE 2.0 > installation on Ubuntu 10

AW: [Puppet Users] Different cron behaviour?

2011-11-22 Thread Bernd Adamowicz
That made it. Thanks! Bernd > -Ursprüngliche Nachricht- > Von: puppet-users@googlegroups.com [mailto:puppet- > us...@googlegroups.com] Im Auftrag von Christopher Wood > Gesendet: Dienstag, 22. November 2011 16:01 > An: puppet-users@googlegroups.com > Betreff: Re: [Puppet Users] Different

[Puppet Users] Puppet with CAcert certificate

2011-11-22 Thread Zico
Hi, My puppet master can't bind ( ldap ) with my central server which has CACert assigned certificate. Are there any problem with Puppet with CACert? Or, how can I make that certificate trusted in my Puppet master? Any kind of help or hint appreciated. -- Best, Zico -- You received this messa

[Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
I noticed that is if I uninstall an MSI that was installed by Puppet, Puppet does not notice. Looking at the source I see it might be checking for a state file to know whether a package is installed or not: C:\ProgramData\PuppetLabs\puppet\var\db\package\msi\SplunkForwarder.yml So one has to reme

Re: [Puppet Users] Different cron behaviour?

2011-11-22 Thread Christopher Wood
On Tue, Nov 22, 2011 at 03:48:31PM +0100, Bernd Adamowicz wrote: > Is there anything special about the cron resource? I have a configuration > like this: > > cron { sync-stored-config: > command => "/some/command.sh", > user => "icinga", > hour => "*", > minute => "15,45", > }

[Puppet Users] Different cron behaviour?

2011-11-22 Thread Bernd Adamowicz
Is there anything special about the cron resource? I have a configuration like this: cron { sync-stored-config: command => "/some/command.sh", user => "icinga", hour => "*", minute => "15,45", } But the 'minute' field produces this error: 8955 Nov 22 14:30:11 bob puppet-agen

[Puppet Users] PE 2.0 server and regular stock puppet client

2011-11-22 Thread T.J. Yang
Hi, All I am having puppet client side error message when building a 10 nodes PE 2.0 demo site to experience the new dashboard features. The only puppet(+mcollective) client works is that one come with PE 2.0 installation on Ubuntu 10.04. For other OSs I am getting following error message.

RE: [Puppet Users] list of all nodes in your manifests

2011-11-22 Thread C R Ritson
I have a home-brewed script that seems to me to answer this part of the request. Not ruby, though... > The issue was to detect the nodes that hadn't checked in but were >defined in the manifest. I don't try to parse the manifest in any way. Instead, I compare a list of the signed certific

Re: [Puppet-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-22 Thread david-dasz
Hi Trevor, In the case of a default node, regexp nodes or an external node classifier, there *is* no well-defined "list of potential nodes" any more. Having said that, a solution might be to use the puppet compiler's internals to parse the site.pp and friends "manually" and access the AST resulti