Re: [Puppet Users] Chef knife equivalent in puppet

2012-01-31 Thread Nan Liu
On Tue, Jan 31, 2012 at 7:49 AM, sateesh wrote: > Is there any tool like chef knife in puppet. > > My requirement is, I need to install a specified module on a plane > ubuntu machine with a single line command as chef has with knife. In > chef knife we will specify the IP, username, password, and

Re: [Puppet Users] constraint checking

2012-01-31 Thread Jo Rhett
> On 01/26/2012 08:14 PM, Jo Rhett wrote: >> One thing about a well-written piece of generic code is that it can be used >> in many environments. A lot of my modules do things like "do I have an >> external interface or am I behind the firewall?" and do different things >> based on those answers

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

2012-01-31 Thread Ryan Bowlby
I second checking for required environment variables. Attempt to run in a shell that hasn't sourced your .bash_profile and related login- time config files. Also, try it with an exec with "/bin/bash -x /etc/ init.d/dropbox start" to further troubleshoot. On Jan 30, 3:05 pm, "Richard K. Miller" w

Re: [Puppet Users] Puppetdoc is not playing nice

2012-01-31 Thread Brice Figureau
On 31/01/12 19:29, Dan White wrote: > Puppet 2.6.12 on Red Hat 5.7 > > Some background is necessary to set up the question: > I have a class - toggledservices - where I have grouped service control. > class toggledservices::disabled covers all the stuff I want turned off by > default (for hardeni

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

2012-01-31 Thread Jeff McCune
On Tue, Jan 31, 2012 at 4:58 AM, sateesh wrote: > > Is there anything like chef knife in puppet. I want to install the > specific module on the plain ubuntu machine using puppet scripts. Puppet Cloud Provisioner [1] and [2] also can provision a plain ubuntu machine for you in the cloud. [1] http

[Puppet Users] Puppetdoc is not playing nice

2012-01-31 Thread Dan White
Puppet 2.6.12 on Red Hat 5.7 Some background is necessary to set up the question: I have a class - toggledservices - where I have grouped service control. class toggledservices::disabled covers all the stuff I want turned off by default (for hardening requirements) and individual services I want

Re: [Puppet Users] Re: Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
I can't completely answer your question unless you point to the section you're asking about. (Possibly reply to my earlier post, quoting what I posted, and insert your question right after the puzzling part.) I'll try anyway. "mail::mount" is a define specified in the "mail" module. See: http:/

[Puppet Users] Re: Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Olivier
This is a great example, but I need one more detail. Is "mail" a class or a module? Thank you -- 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, sen

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

2012-01-31 Thread Aaron Grewell
> However, if I run the above command manually, it works fine and > returns 0: > > root@webhost:~# /etc/init.d/dropbox start ; echo $? > Starting dropbox... > 0 > > Any ideas why puppet can't start the dropbox daemon? I had the same problem when running ssh-keygen via an exec. It ran fine from

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

2012-01-31 Thread Daniel Pittman
https://github.com/puppetlabs/puppet-module-tool We are working to integrate that better with the rest of the product, so it ships by default, but the external version will work for now. On Tue, Jan 31, 2012 at 04:58, sateesh wrote: > > Is there anything like chef knife in puppet. I want to inst

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

2012-01-31 Thread Nan Liu
On Mon, Jan 30, 2012 at 6:05 PM, Richard K. Miller wrote: > I'm using Dropbox's command-line daemon on one of our machines and > want to use Puppet to keep it running. The dropbox service is already > installed and allows me to successfully execute /etc/init.d/dropbox > [start/stop/restart/service

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

2012-01-31 Thread Felix Frank
Hi, On 01/31/2012 12:05 AM, Richard K. Miller wrote: > I get the following syslog error when this runs: > (/Stage[main]/Dropbox::Service/Service[dropbox]/ensure) change from > stopped to running failed: Could not start Service[dropbox]: Execution > of '/etc/init.d/dropbox start' returned 1: at /e

[Puppet Users] Chef knife equivalent in puppet

2012-01-31 Thread sateesh
Hi, Is there any tool like chef knife in puppet. My requirement is, I need to install a specified module on a plane ubuntu machine with a single line command as chef has with knife. In chef knife we will specify the IP, username, password, and the recipe to install on a plane new ubuntu machine.

[Puppet Users] Command to run the pp file on server to execute on client

2012-01-31 Thread sateesh
Hi, I have installed the Puppet and configured the Client / server set up. I have noticed that when I place any code in site.pp on server machine, that is executed in regular intervals of time and runs the script on client. Is there any command that takes the Client IP as parameter and executes t

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

2012-01-31 Thread sateesh
Is there anything like chef knife in puppet. I want to install the specific module on the plain ubuntu machine using puppet scripts. Thanks in advance, Sateesh B. On Dec 9 2011, 10:22 am, Brian Gupta wrote: > I would consider the following a small list of pros and cons for the three > tools: >

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

2012-01-31 Thread Richard K. Miller
I'm using Dropbox's command-line daemon on one of our machines and want to use Puppet to keep it running. The dropbox service is already installed and allows me to successfully execute /etc/init.d/dropbox [start/stop/restart/service]. Here's my code: class dropbox::service { service { "dropbox":

Re: [Puppet Users] Re: yum.puppetlabs.com and downloads.puppetlabs.com unreachable

2012-01-31 Thread Michael Stahnke
On Tue, Jan 31, 2012 at 5:50 AM, Erwin wrote: > It's still impossible for me to reach (yum|downloads).puppetlabs.com. > When I do a traceroute, it stops at hop 'static.theplanet.com'. > On another network, I can see the next hop is > 'li341-126.members.linode.com'. I ca reach linode.com, but I can

[Puppet Users] Re: Cross-module dependencies

2012-01-31 Thread jcbollinger
On Jan 31, 3:01 am, Felix Frank wrote: > Hi, > > On 01/30/2012 10:28 PM, Nick wrote: > > > It did sound similar, yes - but unless I misunderstand it, not identical.   > > For > > example, I don't understand how Constraints would avoid the problems with > > unifying resources that Nan mentioned.

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
On Tue, Jan 31, 2012 at 04:52:31PM +0100, Felix Frank wrote: > On 01/31/2012 04:46 PM, Christopher Wood wrote: > > This sounds like you want a define rather than a class. > > Possibly, but not yet determined ;-) > > > gross, horrible > > How so? It's not a bad example. If you dislike the data re

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Felix Frank
On 01/31/2012 04:46 PM, Christopher Wood wrote: > This sounds like you want a define rather than a class. Possibly, but not yet determined ;-) > gross, horrible How so? It's not a bad example. If you dislike the data redundancy, I suggest: define mail::mount($mount_base="/mail") { include nf

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Felix Frank
Hi, On 01/31/2012 04:39 PM, Olivier wrote: > My problem is that I need to call the class multiple times in the > site.pp file but with different parameters. this is not possible. It doesn't really make sense either. Classes in puppet are unlike classes in other languages like C# or Java that you

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
This sounds like you want a define rather than a class. http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types I end up with something like this (gross, horrible, works, nfs client installation not shown): define mail::mount ($mountpoint, $source) { include nfs::client

[Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Olivier
Hello I get the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate definition: Class[paramclassexample] is already defined in file /etc/puppetlabs/puppet/manifests/site.pp at line 152; cannot redefine at /etc/puppetlabs/puppet/manifests/site.pp:155

[Puppet Users] Re: Mining hash field out of the /etc/shadow shadow file

2012-01-31 Thread Olivier
Hello Thank you for the help and this is what I ended up doing. OLivier -- 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-

[Puppet Users] Re: yum.puppetlabs.com and downloads.puppetlabs.com unreachable

2012-01-31 Thread Erwin
It's still impossible for me to reach (yum|downloads).puppetlabs.com. When I do a traceroute, it stops at hop 'static.theplanet.com'. On another network, I can see the next hop is 'li341-126.members.linode.com'. I ca reach linode.com, but I can't reach the host 'li341-126.members.linode.com'. So th

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-31 Thread Nick
On 31/01/12 09:01, Felix Frank wrote: > Ah, so you'd have the agent verify if all assertions (which need to > appear as first-class citizens in the catalog) hold true, and otherwise > fail the catalog? > > That strikes me as very elegant indeed. > > How will situations be handled where assertions

[Puppet Users] Re: intermodule dependency

2012-01-31 Thread Jos Houtman
> That's one of many reasons to not do that.  Specifically, one should > employ class inheritance only when it involves overriding resource > properties of the parent class. We have a history of using class inheritence to override variables in template's or add extra functionality the base class

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-31 Thread Felix Frank
Hi, On 01/30/2012 10:28 PM, Nick wrote: > It did sound similar, yes - but unless I misunderstand it, not identical. For > example, I don't understand how Constraints would avoid the problems with > unifying resources that Nan mentioned. as far as I understand, there is no need to merge anything.

[Puppet Users] Re: intermodule dependency

2012-01-31 Thread Jos Houtman
> In general, I try and think of module dependencies and organization as > a matter of composition.  Discrete modules themselves should avoid > establishing relationships with other modules.  A module should, > however, be diligent about managing the internal relationships of the > classes and res

[Puppet Users] Re: SLES11: facter without arguments produces Error: uninitialized constant Facter::IPAddress

2012-01-31 Thread Sven Sporer
Ah, thanks Ken for the input. To my surprise, I found out that SLES11 has facter-1.5.2 and puppet 0.24.8 rpms installed, so after removing them, everything works as expected. Sven On Jan 30, 7:06 pm, Ken Barber wrote: > This smells like you have a second copy of facter or some other facts > some