[Puppet Users] How to create / update resources at puppetmaster without restarting puppetmaster

2012-02-01 Thread Waqar Aziz
Guys, I am trying to add new resources to puppetmaster i am following steps below 1. Creating a testclass.pp in "manifests/services" directory 2. Trying to apply newly created class to the node using ruby script ie testmanifest.rb As a result of above steps i am getting error below "err: Could

Re: [Puppet Users] Search which the agent on which a specified module is been installed

2012-02-01 Thread Ohad Levy
On Wed, Feb 1, 2012 at 7:01 AM, sateesh wrote: > Hi, > > Can we get the list of IPs from server where the specified module is > installed. There is a search functionality in the Chef to do this. Is > there any way in puppet? If you are using Foreman[1], you could utilize its search functionality

[Puppet Users] Re: Extracting Documentation from custom types.

2012-02-01 Thread vertigo
As simple as that. I'd tried the puppet describe - but had not set RUBYLIB... Perfect - Thanks for that! On Feb 2, 12:13 pm, Cody Herriges wrote: > So your probably looking for 'puppet describe'.  Just make sure you have the > type/provider's lib directory in your RUBYLIB path and run the comma

Re: [Puppet Users] Re: Is puppet right for us?

2012-02-01 Thread Jeff McCune
On Tue, Jan 31, 2012 at 9:08 PM, sateesh wrote: > Thanks Jeff for your response. > > But I hope the URL's that you provided require Amazon account. But I > need to do this in a provate cloud. I need to install the Openstack on > newly created VM in our Private cloud. In chef we have a command with

Re: [Puppet Users] Re: Chef knife equivalent in puppet

2012-02-01 Thread John Warburton
On 2 February 2012 12:28, Nick Fagerlund wrote: > This is done: > > http://docs.puppetlabs.com/pe/2.0/console_classes_groups.html#rake-api > http://docs.puppetlabs.com/dashboard/manual/1.2/rake_api.html > > Thanks Nick - that's great John -- You received this message because you are subscribed

Re: [Puppet Users] Extracting Documentation from custom types.

2012-02-01 Thread Cody Herriges
So your probably looking for 'puppet describe'. Just make sure you have the type/provider's lib directory in your RUBYLIB path and run the command. So if the custom type/provider is already installed it should just work. Here is an example of one I was hacking on several months back. RUBYLIB

Re: [Puppet Users] Chef knife equivalent in puppet

2012-02-01 Thread Cody Herriges
Sateesh, I think Nan's response isn't fully answering your question since it isn't clear how you are executing Chef. Reading your question I foresee that you are actually in fact running Chef Solo, knife is configured with an ssh key that is capable to logging into a specific machine, uploadin

[Puppet Users] Re: puppet questions

2012-02-01 Thread Dustin Little
Thanks Gary and Nan for the information. I find puppet/mcollective/ factor trio intriguing and I think I'll try to make it work in my scenario. On Feb 1, 7:06 pm, Nan Liu wrote: > On Wed, Feb 1, 2012 at 4:40 PM, Dustin Little wrote: > > Hoping to get some insight from the community. Can puppet/m

Re: [Puppet Users] puppet questions

2012-02-01 Thread Dan White
On Feb 1, 2012, at 8:06 PM, Nan Liu wrote: > On Wed, Feb 1, 2012 at 4:40 PM, Dustin Little wrote: >> Hoping to get some insight from the community. Can puppet/mcollective/ >> facter collect/store facts about hosts that are not actually running >> puppet? I see that custom facts can be gathered v

[Puppet Users] Re: Chef knife equivalent in puppet

2012-02-01 Thread Nick Fagerlund
This is done: http://docs.puppetlabs.com/pe/2.0/console_classes_groups.html#rake-api http://docs.puppetlabs.com/dashboard/manual/1.2/rake_api.html On Feb 1, 4:40 pm, John Warburton wrote: > On 2 February 2012 11:16, Nick Fagerlund wrote: > > > Like this? > > >http://docs.puppetlabs.com/pe/2.0/co

[Puppet Users] Extracting Documentation from custom types.

2012-02-01 Thread vertigo
Hi All. We have written an extensive custom type (with provider) for an internal product that I would like to document using the @doc class instance variable and calls to desc in the type. For the life of me, I cannot work out (or find an example) of how to extract said documentation. Do you use

Re: [Puppet Users] Search which the agent on which a specified module is been installed

2012-02-01 Thread Nigel Kersten
If you're happy with just knowing which machines will be told to install that class/module, this information is available in your existing node definitions and/or external node classifier too. Note this is different from knowing which machines have actually had that class/module applied, as some m

Re: [Puppet Users] puppet questions

2012-02-01 Thread Nan Liu
On Wed, Feb 1, 2012 at 4:40 PM, Dustin Little wrote: > Hoping to get some insight from the community. Can puppet/mcollective/ > facter collect/store facts about hosts that are not actually running > puppet? I see that custom facts can be gathered via shell scripts. > Might this be used to build ho

Re: [Puppet Users] Catalog Service

2012-02-01 Thread Nigel Kersten
On Tue, Jan 31, 2012 at 10:53 AM, blomquisg wrote: > A while back I stumbled on > http://projects.puppetlabs.com/projects/puppet/wiki/CatalogServiceArchitecture > . > > What's the status of the Catalog Service Architecture? I couldn't > find references to it on this list > It's rather out of da

Re: [Puppet Users] puppet questions

2012-02-01 Thread Gary Larizza
So, You can run Facter independently of Puppet, yes. You can have Facter export a file to YAML by doing `facter --yaml > file.yaml` and then use that file with MCollective (MCollective would use that YAML file full of fact data to respond to queries that are filtered according to fact information

Re: [Puppet Users] Search which the agent on which a specified module is been installed

2012-02-01 Thread Gary Larizza
Sateesh, You can use MCollective to get this bit of information if you do something like an mco find and limit it based on the class that's been applied to the machine with the -C argument. That should return a list of nodes who have that class applied to it. If you had a function in Puppet that

Re: [Puppet Users] Re: Chef knife equivalent in puppet

2012-02-01 Thread John Warburton
On 2 February 2012 11:16, Nick Fagerlund wrote: > Like this? > > http://docs.puppetlabs.com/pe/2.0/console_classes_groups.html#rake-api > > It needs a few more tasks added, and then I'll C&P it to the dashboard > manual too. > > Very nice. Thanks! John -- You received this message because you a

[Puppet Users] Re: Chef knife equivalent in puppet

2012-02-01 Thread Nick Fagerlund
Like this? http://docs.puppetlabs.com/pe/2.0/console_classes_groups.html#rake-api It needs a few more tasks added, and then I'll C&P it to the dashboard manual too. On Feb 1, 2:46 pm, John Warburton wrote: > On 2 February 2012 09:25, Nan Liu wrote: > > >  Using the rake task is reasonably stra

Re: [Puppet Users] Automatically Files and Directory Sync

2012-02-01 Thread Nan Liu
On Tue, Jan 31, 2012 at 2:07 PM, Cesarbr wrote: > I just installed "learn puppet" VM in my desktop, I 'm very interested > in know more about how often and how Puppet knows when a file or > directory is changed?  I changed an example file located at /var/opt/ > lib/pe-puppet/lib/puppet/type/file_l

Re: [Puppet Users] Chef knife equivalent in puppet

2012-02-01 Thread John Warburton
On 2 February 2012 09:25, Nan Liu wrote: > Using the rake task is reasonably straightforward. I'm not finding an > authoritative documentation, but you can use this page as starting > Nan, this has been bugging me for a while - I've raised this as an issue - http://projects.puppetlabs.com/issue

[Puppet Users] Re: Conditional copy of file

2012-02-01 Thread Ryan Bowlby
Wrap the file resource in an if that checks if $conf_file is defined. I would also recommend replacing the case statement with a parametrized class with the default for $conf_file being undef. Also, if you were okay with having a default blank file present then you could just replace your current

Re: [Puppet Users] Chef knife equivalent in puppet

2012-02-01 Thread Nan Liu
On Wed, Feb 1, 2012 at 10:34 AM, Kenneth Lo wrote: > I'm interested to know more regarding your comment. In my environment > we've decided to use dashboard for ENC and "the one true source" for > customization (parameters, node configuration etc). > > Where is the place to check on tutorial and do

[Puppet Users] puppet questions

2012-02-01 Thread Dustin Little
Hoping to get some insight from the community. Can puppet/mcollective/ facter collect/store facts about hosts that are not actually running puppet? I see that custom facts can be gathered via shell scripts. Might this be used to build host resources and obtain facts? Also how well do puppet/mcollec

[Puppet Users] Catalog Service

2012-02-01 Thread blomquisg
A while back I stumbled on http://projects.puppetlabs.com/projects/puppet/wiki/CatalogServiceArchitecture. What's the status of the Catalog Service Architecture? I couldn't find references to it on this list I ask because I've been working on part of the Aeolus Project (www.aeolusproject.org) f

[Puppet Users] Re: Is puppet right for us?

2012-02-01 Thread sateesh
Thanks Jeff for your response. But I hope the URL's that you provided require Amazon account. But I need to do this in a provate cloud. I need to install the Openstack on newly created VM in our Private cloud. In chef we have a command with knife where we can provide the IP address of our newly cr

[Puppet Users] Search which the agent on which a specified module is been installed

2012-02-01 Thread sateesh
Hi, Can we get the list of IPs from server where the specified module is installed. There is a search functionality in the Chef to do this. Is there any way in puppet? Thanks in advance, Sateesh B. -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

[Puppet Users] Conditional copy of file

2012-02-01 Thread kashif
Hi It may have been answered earlier but I could not find anywhere. My requirement is that I want to copy a file from server to agent in few conditions but don't want to touch file in rest of the condition class example { case $hostname { node1 : {$conf_file

[Puppet Users] Puppet no longer reading puppet.conf

2012-02-01 Thread Brian
I've set up a new puppet 2.7.9 machine with the master running on Apache with Passenger. Things have been going well and I'm slowly developing manifests. I've also set up puppet dashboard on the master to act as an ENC. Since the batch functionality for dashboard is lacking, I used a custom face ba

Re: [Puppet Users] Chef knife equivalent in puppet

2012-02-01 Thread Ronald Cotoni
This may do what you want: http://docs.puppetlabs.com/mcollective/ Not entirely sure as I have not used it yet. On Tue, Jan 31, 2012 at 4:49 AM, sateesh wrote: > Hi, > > Is there any tool like chef knife in puppet. > > My requirement is, I need to install a specified module on a plane > ubuntu

[Puppet Users] Re: Puppet can't start service (dropbox) but init.d command works manually

2012-02-01 Thread Richard K. Miller
Felix & Ryan: Good thought to try a clean environment. I tried "bash -- no-profile" and then ran the CLI command again, but it still worked. My perusal of the script itself didn't seem to show any environment variable dependencies. Felix, yes, puppet is correctly deducing that the service is stoppe

[Puppet Users] Search which the agent on which a specified module is been installed

2012-02-01 Thread sateesh
Hi, Can we get the list of IPs from server where the specified module is installed. There is a search functionality in the Chef to do this. Is there any way in puppet? Thanks in advance, Sateesh B. -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

[Puppet Users] Re: Chef knife equivalent in puppet

2012-02-01 Thread sateesh
Thanks Nan for your response. So, can't we install the required module on a plain ubuntu machine using puppet? Only procedure is to install the Puppet client on the plain ubuntu machine and make it as a agent for the server and include the node code in the server. Am I right? or is there any other

[Puppet Users] How to specify the modules dependencies

2012-02-01 Thread sateesh
Hi, I have following code in site.pp node default{ include abc include mno include xyz } when I trying to apply the modules are installed in parallel. I need to run the mno, only after completing the abc, and xyz only after completing mno. But I have noticed that the statements in the modu

[Puppet Users] Automatically Files and Directory Sync

2012-02-01 Thread Cesarbr
hi All - I just installed "learn puppet" VM in my desktop, I 'm very interested in know more about how often and how Puppet knows when a file or directory is changed? I changed an example file located at /var/opt/ lib/pe-puppet/lib/puppet/type/file_line.rb for testing purposes and all of my chang

Re: [Puppet Users] hasstatus return code

2012-02-01 Thread Gary Larizza
On Wed, Feb 1, 2012 at 11:54 AM, Hugo Deprez wrote: > Thank you I'll try that then. > > Yes I want puppet to use status command otherwise it will do something > like ps -ef | grep $service_name > As this is iptables I'll have no match. > You can also use the pattern parameter to specific a speci

Re: [Puppet Users] MCollective Cost?

2012-02-01 Thread R.I.Pienaar
- Original Message - > Someone told me yesterday that collective wasn't free, New to me. Has > something changed in the past month, or are they looking at the > commercial version? The web site must be somewhat confusing if a new > user thinks it costs, but it doesn't. > mcollective is

Re: [Puppet Users] MCollective Cost?

2012-02-01 Thread Gary Larizza
On Wed, Feb 1, 2012 at 12:41 PM, Douglas Garstang wrote: > Someone told me yesterday that collective wasn't free, New to me. Has > something changed in the past month, or are they looking at the > commercial version? The web site must be somewhat confusing if a new > user thinks it costs, but it d

[Puppet Users] MCollective Cost?

2012-02-01 Thread Douglas Garstang
Someone told me yesterday that collective wasn't free, New to me. Has something changed in the past month, or are they looking at the commercial version? The web site must be somewhat confusing if a new user thinks it costs, but it doesn't. Doug -- You received this message because you are subsc

Re: [Puppet Users] hasstatus return code

2012-02-01 Thread Hugo Deprez
Thank you I'll try that then. Yes I want puppet to use status command otherwise it will do something like ps -ef | grep $service_name As this is iptables I'll have no match. Regards On 1 February 2012 17:16, Gary Larizza wrote: > > > On Wed, Feb 1, 2012 at 10:41 AM, Hugo Deprez wrote: > >> Dea

Re: [Puppet Users] hasstatus return code

2012-02-01 Thread Gary Larizza
On Wed, Feb 1, 2012 at 10:41 AM, Hugo Deprez wrote: > Dear community, > > I use puppet to deploy iptables on every server. > This is working fine. > > In the manifest I defined an iptables service which leads to my init > script. > The thing is each time I run puppet I got : notice: > /Stage[main

[Puppet Users] hasstatus return code

2012-02-01 Thread Hugo Deprez
Dear community, I use puppet to deploy iptables on every server. This is working fine. In the manifest I defined an iptables service which leads to my init script. The thing is each time I run puppet I got : notice: /Stage[main]/Iptables/Service[netfilter]/ensure: ensure changed 'stopped' to 'run

Re: [Puppet Users] Chef knife equivalent in puppet

2012-02-01 Thread Kenneth Lo
Hi Nan: I'm interested to know more regarding your comment. In my environment we've decided to use dashboard for ENC and "the one true source" for customization (parameters, node configuration etc). Where is the place to check on tutorial and documentation your suggestion? I have no real prior k

[Puppet Users] Re: constraint checking

2012-02-01 Thread jcbollinger
On Jan 26, 1:22 pm, Jo Rhett wrote: > On Jan 26, 2012, at 6:19 AM, jcbollinger wrote: > > > For the most part, I think this reflects the difficulty of the > > underlying problem more than any inadequacy of Puppet.  If multiple > > independent subsystems place different demands on the same resour