[Puppet Users] Re: Namespace tools?

2011-02-17 Thread Kevin Beckford
try puppet resource --types each type can be enumerated -- 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..

Re: [Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I always expected to be able to access the values by path. Having to recall a hash from a log is pretty much unrealistic without tools to help you map the hash to the file at a later date. I.e. Puppet supplied log parsers/data map store tools, etc..

[Puppet Users] logoutput=>on_failure doesn't work as expected

2011-02-17 Thread Bryan
I'm using puppet 0.25.1. I've got a simple resource: exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh": logoutput => on_failure, } and I don't want it to log every time it's successfully run: $ sudo tail -F /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: (//my_

Re: [Puppet Users] Distributing user configs from a central host?

2011-02-17 Thread Robin Lee Powell
On Thu, Feb 17, 2011 at 09:30:33AM -0800, Daniel Pittman wrote: > You could use the resource description tool, in a generate call in the > appropriate resource, to have puppet ruun the process of rebuilding the > appropriate manifest content on demand. (Probably needs a little scripting > wrapped

[Puppet Users] Re: Virtual Resources realization problems

2011-02-17 Thread jcbollinger
On Feb 17, 2:25 pm, Forrie wrote: > I have another related question.  What happens when a virtual resource > such as an NFS mount is not longer needed -- how do you prune that > from the systems that had it "realized"?   Can you "unrealize" them? First, let's get the conceptual framework right.

[Puppet Users] Virtual resources stopped working...

2011-02-17 Thread Steve Shipway
Since I moved our pre-prod puppet master to RHEL6, things have broken. This is how: We have two classes, 'users' (which defines all our users as virtual) and 'users::sys' which realises the systems-admin users. I then have (this is simplified to show the problem): node basenode { include use

[Puppet Users] Namespace tools?

2011-02-17 Thread Master Cho
Are there any tools/techniques for dumping/browsing all of the namespaces? -- 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-

Re: [Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Martin Langhoff
On Thu, Feb 17, 2011 at 3:55 PM, Nigel Kersten wrote: > ok. So it's unacceptable for you to refer to logs or reports to get > the checksum for a given replacement and then restore the file that It's really damn fiddly :-) As a git guts hacker, I appreciate that puppet stores things in a content

Re: [Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Joe McDonagh
On 02/17/2011 03:55 PM, Nigel Kersten wrote: On Thu, Feb 17, 2011 at 12:48 PM, Joe McDonagh wrote: I care a lot and had thought that the path would eventually be the main key for retrieving files, with the checksum being sort of like a revision, with some extra metadata when you interfaces wit

Re: [Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Nigel Kersten
On Thu, Feb 17, 2011 at 12:48 PM, Joe McDonagh wrote: > I care a lot and had thought that the path would eventually be the main key > for retrieving files, with the checksum being sort of like a revision, with > some extra metadata when you interfaces with the filebucket... ok. So it's unacceptab

Re: [Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Joe McDonagh
I care a lot and had thought that the path would eventually be the main key for retrieving files, with the checksum being sort of like a revision, with some extra metadata when you interfaces with the filebucket... On 02/17/2011 03:46 PM, Nigel Kersten wrote: https://projects.puppetlabs.com/i

[Puppet Users] Do people walk the filebucket tree searching by path?

2011-02-17 Thread Nigel Kersten
https://projects.puppetlabs.com/issues/6353 Our old behavior was that when files were backed up to a filebucket, we also wrote out the path information to the 'paths' file in the checksum directory. Do people actually use this functionality? Our sanctioned interface "puppet filebucket" only ever

[Puppet Users] Re: Virtual Resources realization problems

2011-02-17 Thread Forrie
Thank you! That worked. I was actually following an incorrect example whereby the definition itself was capitalized. What really irks me here is that the error message I was getting was irrelevant -- at least, in my opinion it needed to be more specific with syntactical errors. There must be s

Re: [Puppet Users] Puppet on a purely push basis no possible?

2011-02-17 Thread Russell Jackson
On 02/15/2011 05:37 PM, James Louis wrote: > in spite of this not actually being a "push" mechanism if it walks like > a duck. it would be nice if the documentation and previous discussions > on this were more clear or even better if it's not a "push" then the it > should be "redefined" within pupp

Re: [Puppet Users] Puppet on a purely push basis no possible?

2011-02-17 Thread James Louis
I see what you are saying. We are going with a plan to authorize an opening in the firewall for just the instance of the kick. As any changes to our production environment require a change request one would have to be created to allow the ports to be opened just for the kick. On Tue, Feb 15, 2011

[Puppet Users] Re: Virtual Resources realization problems

2011-02-17 Thread Forrie
Thank you! That worked. I was actually following an incorrect example whereby the definition itself was capitalized. What really irks me here is that the error message I was getting was irrelevant -- at least, in my opinion it needed to be more specific with syntactical errors. There must be s

Re: [Puppet Users] Distributing user configs from a central host?

2011-02-17 Thread Daniel Pittman
You could use the resource description tool, in a generate call in the appropriate resource, to have puppet ruun the process of rebuilding the appropriate manifest content on demand. (Probably needs a little scripting wrapped around it to get the content in the right format.) For the file content

Re: [Puppet Users] Re: trouble with retrieving information from current source

2011-02-17 Thread rredeno2
That worked! I wish I would've just done that earlier. Ok, so for each operating system that I have, I just need a new subdirectory? That's easy enough, and I think that I can figure out how to make it recognize the different operating systems. This also makes me feel better that I apparent

[Puppet Users] Re: Virtual Resources realization problems

2011-02-17 Thread jcbollinger
Heed Felix's advice. In particular, do not captialize class, definition, or resource type names when you *declare* a resource, including a virtual one. Do capitalize where you *realize* a virtual resource. Also, On Feb 16, 5:12 pm, Forrie wrote: > class dce { >   define nfsmount(options} { >

Re: [Puppet Users] Re: trouble with retrieving information from current source

2011-02-17 Thread Felix Frank
On 02/17/2011 04:54 PM, rredeno2 wrote: > The exact file extension is /modules/pam/files/CentOS/login (or $ssh), > and both the login and sshd files are there . I was considering > changing CentOS to Ubuntu to see if this made a difference, but in the > pam module's init.pp file, it has the $opera

Re: [Puppet Users] Parameterized class syntax...

2011-02-17 Thread Peter Berghold
On Thu, Feb 17, 2011 at 4:22 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > > > What version is your puppetmaster? > > the latest stable version. -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- You received this message because you are subscribed to the Google

Re: [Puppet Users] Re: trouble with retrieving information from current source

2011-02-17 Thread rredeno2
The exact file extension is /modules/pam/files/CentOS/login (or $ssh), and both the login and sshd files are there . I was considering changing CentOS to Ubuntu to see if this made a difference, but in the pam module's init.pp file, it has the $operatingsystem variable where I believe the CentO

Re: [Puppet Users] Distributing user configs from a central host?

2011-02-17 Thread Joe McDonagh
You can use content => file("/etc/passwd") for example to serve out the content from the master's etc passwd. On 02/17/2011 09:37 AM, Robin Lee Powell wrote: I have a central server, that happens to be the puppetmaster, that has various users on it. I would like to copy out their information (

[Puppet Users] Re: Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread jcbollinger
On Feb 17, 8:05 am, Daniel Piddock wrote: I was going to suggest some of the things you report already trying: > * Flattened the ssh module to remove the class level requires. I find that better form in this case because I can't imagine a reason to include/require just ssh::install, and ssh::c

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 14:05, Daniel Piddock wrote: > On 17/02/11 12:09, Daniel Piddock wrote: >> I managed to solve the problem by installing the openssh-server package >> manually so the init script was present. I have other modules with a >> very similar structure and they weren't throwing up these errors.

Re: [Puppet Users] Re: trouble with retrieving information from current source

2011-02-17 Thread Felix Frank
On 02/17/2011 03:45 PM, rredeno2 wrote: > What component do you think I'm missing? Oops, sorry - I didn't look careful enough yesterday. So you have a modules/pam/files/Ubuntu/login file? Does the puppetmaster log any problems of its own during the client run? Regards, Felix -- You received t

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Nigel Kersten
On Thu, Feb 17, 2011 at 4:09 AM, Daniel Piddock wrote: > On 17/02/11 11:45, Felix Frank wrote: >>> e.g.: file { 'something': require => Class['ssh'] } >>> class ssh gets processed but ssh::install and ssh::config might not be, >>> unless I put a depend on something deeper within it. Which defeats

[Puppet Users] Re: trouble with retrieving information from current source

2011-02-17 Thread rredeno2
What component do you think I'm missing? I checked the error again and this is what I've done: puppetmasterd --verbose --no-daemonize (when I run this command, it first says that it can't create a PID file, so I have to remove the old puppetmasterd.pid file, rerun the command, and then it runs.

[Puppet Users] Distributing user configs from a central host?

2011-02-17 Thread Robin Lee Powell
I have a central server, that happens to be the puppetmaster, that has various users on it. I would like to copy out their information (name, uid, password, .bashrc, etc) to all my other hosts, but I want to let the users change their stuff on that host, so I don't want to just stick it in puppet

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 12:09, Daniel Piddock wrote: > I managed to solve the problem by installing the openssh-server package > manually so the init script was present. I have other modules with a > very similar structure and they weren't throwing up these errors. Odd > glitch. Frustrating. I tried a few mor

[Puppet Users] Re: Making dependencies work with variable resource names

2011-02-17 Thread jcbollinger
On Feb 16, 11:50 am, Matthew Pounsett wrote: > On 2011/02/16, at 03:44, Felix Frank wrote: [...] > I tried that as well (noted in the original post).  That's what generated the > error that I included. > > Feb 11 17:18:40 puppet-bsd2 puppet-agent[68963]: Could not run Puppet > configuration cl

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Felix Frank
>> Then simply use it as >> pooled_user { >> "jim": key => "B3N..."; >> "joe": key => "B3N..."; >> "jack":key => "BsX..."; >> } > > However, this pieve of code isn't going to work because as my definition > would look like the following... > > ---

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Jan
On 02/17/2011 01:14 PM, Jan wrote: [...] > I'm sorry for such confusion I've been causing right from the start. So > I think that you've been right with your first thoughts because what I'm > trying to achieve is exactly what you've mentioned earlier: > > -> A one-to-many model which makes it po

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Jan
On 02/17/2011 12:13 PM, Felix Frank wrote: [...] >> When using the realize statement I don't know which naming attribute to >> use? The "key =>" contains a template or even the PEM encoded key of >> user "jim" but except it's resource name "jim@uniqe.email_for_$name" >> there is no naming attribu

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 11:45, Felix Frank wrote: >> e.g.: file { 'something': require => Class['ssh'] } >> class ssh gets processed but ssh::install and ssh::config might not be, >> unless I put a depend on something deeper within it. Which defeats the >> idea of organising into classes a bit. > Where have yo

Re: [Puppet Users] ldap.conf modification problem

2011-02-17 Thread Felix Frank
On 02/15/2011 11:49 PM, Jay N. wrote: > Hi Puppet Users, > > In my configuration, I modify in the "pre" stage the ldap.conf file > which is originally generic and useless. > > Then, in the main stage, I try to modify the ownership of files with > ldap users and groups and I have an error "Cannot

Re: [Puppet Users] ERB Templates :: defined?("var")

2011-02-17 Thread Felix Frank
On 02/15/2011 10:24 PM, CraftyTech wrote: > Hello All, > > I'm using puppet 0.25.5, and I'm having issues with an ERB template > and its syntax. Instead of declaring a var true or false, I'd like to > do something if the variable is defined, otherwise ignore. So here's > what I have in my

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Felix Frank
> e.g.: file { 'something': require => Class['ssh'] } > class ssh gets processed but ssh::install and ssh::config might not be, > unless I put a depend on something deeper within it. Which defeats the > idea of organising into classes a bit. Where have you gotten that idea from? Is this documented

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 08:52, Felix Frank wrote: > Hi, > > On 02/16/2011 05:35 PM, Daniel Piddock wrote: >> Hey all, >> >> I was installing puppet on a freshly installed node and the catalog >> fails to apply. It immediately bails out with: >> err: Could not run Puppet configuration client: Could not find ini

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Felix Frank
> No, I created this pool by using some simple resource definitions based > on the ssh_authorized_key function. It would be easier if you posted more of your code. >> You should have a define as follows: >> >> define pooled_user($realname="anonymous") { >> user { "$name": description => $realna

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Jan
Hi Felix, thanks for your response. On 02/17/2011 10:01 AM, Felix Frank wrote: [...] > The whole apprach isn't especially sound. Is your "user pool" realized > using virtual resources? No, I created this pool by using some simple resource definitions based on the ssh_authorized_key function.

Re: [Puppet Users] Parameterized class syntax...

2011-02-17 Thread Felix Frank
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type class at /etc/puppet/manifests/nodes/atldhost0.pp:13 on > node atldhost0.atl.sharkrivertech.com >

Re: [Puppet Users] Nested defined resources

2011-02-17 Thread Felix Frank
> The trained eye can probably see immediately why this doesn't work - it > tries to instantiate two copies of Python::Package[mock-0.6.0], each > with different $virtualenv parameters. > > I think I could make this particular process work if I could qualify the > Python::Package resource names, a

Re: [Puppet Users] Virtual Resources realization problems

2011-02-17 Thread Felix Frank
Hi, On 02/17/2011 12:12 AM, Forrie wrote: > I'm somewhat new to Puppet. I'm trying to establish some Virtual > Resources so I can realize them based on a TAG. > > The error I continue to get is: > > Feb 16 18:02:38 test-fms puppet-agent[8590]: Could not retrieve > catalog from remote server: E

Re: [Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-17 Thread Felix Frank
Hi, try this instead: On 02/16/2011 11:19 AM, Jan wrote: > Hi *, > > I would like to create a pool of ssh pubkeys. The major goal is to be > able to assign a single key to multiple users on a given node/system. > > Okay, lets say we have the users: foo and bar. In my manifest I've > created the

Re: [Puppet Users] Install a single pubkey on multiple system accounts located on the same node (duplicate definition error)

2011-02-17 Thread Jan
Hi *, On 02/16/2011 11:19 AM, Jan wrote: > I would like to create a pool of ssh pubkeys. The major goal is to be > able to assign a single key to multiple users on a given node/system. so here are some details on what I'm trying to do:

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Felix Frank
Hi, On 02/16/2011 05:35 PM, Daniel Piddock wrote: > Hey all, > > I was installing puppet on a freshly installed node and the catalog > fails to apply. It immediately bails out with: > err: Could not run Puppet configuration client: Could not find init > script for 'ssh' > > This is annoying and