[Puppet Users] Re: Resolving duplicated resources

2013-08-06 Thread Adam Cohen
Thanks for the great response John, you've cleared up my confusion. I guess for now, I'll just have to live with a parse-order-dependency in my manifest, until I can get the time to fix the modules in question. At least I know now that it can't be solved cleanly without modifying the actual mo

Re: [Puppet Users] How to manage third-party module?

2013-08-06 Thread Feifei Jia
Thanks for the reply, Brian. I have looked into librarian-puppet, a good tool, just like ruby bundler. Will give it a try. And I'm also interested in your alternative way to organise your module. Could you explain more on that? What the modules directory structure look like? Just like the foll

[Puppet Users] Re: Newbie: Could not retrieve catalog from remote server: Error 400 on SERVER

2013-08-06 Thread Dan M
In a simplified form, the issue occurs when "include" statement appears in the script. For instance, below script executes just fine without . It still runs on the Master node (with warnings) with but fails on Agent node: /biz/puppet/hieradata/devbranch/site.pp: node default { include apache

[Puppet Users] Installing Puppet Agent on Solaris without root privileges

2013-08-06 Thread Ken Weiss
Can anyone point me to a procedure to install only the Puppet Agent on a Solaris 10 system for which I do not have root access? Everything I have found online involves using pkgadd and/or pkgutil, both of which require root privileges to run. --Ken -- You received this message because you ar

[Puppet Users] Re: Undefined method 'closed?' for nil:NilClass

2013-08-06 Thread Stuart Cracraft
Yep -- thumbs up on this answer. Simple and sweet. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this

[Puppet Users] Puppet first run timing out

2013-08-06 Thread Cesar Covarrubias
I'm working on deploying Puppet to our environment and after reinstalling some nodes, I run Puppet for the first time. It appears to be updating some Puppet specific files (see below), and then times out with the error: "Error: /File[/var/lib/puppet/lib/facter/ip6tables_version.rb]/ensure: c

[Puppet Users] Re: Newbie: Could not retrieve catalog from remote server: Error 400 on SERVER

2013-08-06 Thread Dan M
There is no line 13 :) Please, see the output below: [me@ip-10-0-8-10 ~]$ cat /biz/puppet/modules/profile/manifests/web_server.pp class profile::web_server { class { "apache": } } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscri

[Puppet Users] Re: Newbie: Could not retrieve catalog from remote server: Error 400 on SERVER

2013-08-06 Thread Pablo Carranza
What's on line 13, col 10 of /biz/puppet/modules/profile/manifests/web_server.pp? -Pablo On Tuesday, August 6, 2013 1:58:56 PM UTC-5, Dan M wrote: > > Hi > > I am setting up first sandbox environment with Puppet and facing > (probably) config issue. > Any help is highly appreciated. > > Setup

[Puppet Users] Newbie: Could not retrieve catalog from remote server: Error 400 on SERVER

2013-08-06 Thread Dan M
Hi I am setting up first sandbox environment with Puppet and facing (probably) config issue. Any help is highly appreciated. Setup covers two boxes: - OS: RedHatEnterpriseServer 6.4 - Master node (ip-10-0-8-10) and Agent node (ip-10-0-8-11) - Puppet version: 3.2.3 Two standard modul

[Puppet Users] puppetlabs/vcsrepo git submodule update without exec

2013-08-06 Thread stafford . ritchie
Hi all, Looking for a better way to update a git submodule using the puppetlabs/vcsrepo module. Using a git repo for puppet files in /etc/puppetlabs/puppet, and a submodule in /etc/puppetlabs/puppet/files/appconf. The following works to update the submodule, but using exec seems like a kludge

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-06 Thread puppetlist
On Tue, Aug 06, 2013 at 06:20:09AM -0700, jcbollinger wrote: > > Because there is a difference between unmanaged resources and resources > that are managed 'absent'. Only resources that are actually declared for > the target node are managed, whether declared directly or via collection of > vi

[Puppet Users] Re: Add a public ssh key form node A to authorized keys on node B

2013-08-06 Thread Klavs Klavsen
What I did, was to simply write my own fact, that reads the "id_rsa.pub" file - and then in the manifest, I simply check if that fact is != "" - and if so - do @@ssh_authorized_key.. with the public key - and collect that where I want it. I have several webservers - which all need to have a key

[Puppet Users] Re: useradd Duplicate declaration: Group

2013-08-06 Thread jcbollinger
On Tuesday, August 6, 2013 1:30:37 AM UTC-5, Andreas Dvorak wrote: > > Hello, > > I have written a module to add user and it does work with one user. But if > I use two user puppet tells me: > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Duplicate declaration:

Re: [Puppet Users] crapload of files to check permissions and ownership

2013-08-06 Thread jcbollinger
On Monday, August 5, 2013 9:55:48 AM UTC-5, root wrote: > > Yes, I do intend to list all the files and their expected mode and > ownership, I just want to figure out the nicest, most succinct way to do > that. > > Wildcards and recursive listings will do me no good -- these files are > scatt

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-06 Thread jcbollinger
On Monday, August 5, 2013 3:33:11 PM UTC-5, John Santana wrote: > > On Mon, Aug 05, 2013 at 04:22:41PM -0400, Gabriel Filion wrote: > > > > you need to export the resource with ensure => absent and run puppet on > > the host, then on the nagios server so that everything runs fine. > > Dozens

[Puppet Users] Re: wrong path to modules files

2013-08-06 Thread Andreas Dvorak
> > Hi, it was my own mistake. I had a syntax error and because of this is did not fetsch the lastest catalog version. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from i

[Puppet Users] Re: facter string value comparison to integer

2013-08-06 Thread Rahul Khengare
hi hyde, You don't need to convert facter string into integer before comparing to integer value, puppet internally take care of it. I just checked it on open source puppet version - 2.7.12 and puppet enterprise version - 2.7. On Monday, August 5, 2013 8:38:09 PM UTC+5:30, hyde wrote: > It

[Puppet Users] Re: wrong path to modules files

2013-08-06 Thread Andreas Dvorak
I forgot to mention the module is runing on the puppet master. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post

[Puppet Users] wrong path to modules files

2013-08-06 Thread Andreas Dvorak
Hello, I have my manifests and modules in git in /etc/puppet/git and changed the paths in puppet.conf but it does not find the file /etc/puppet/git/modules/git_puppet_update/files/update.sh. Error: Could not find command '/etc/puppet/modules/git_puppet_update/files/update.sh' Error: /Stage[ma

Re: [Puppet Users] useradd Duplicate declaration: Group

2013-08-06 Thread Andreas Dvorak
Hi Sergey, thank you but that did not help. I got the error message: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Group[addgroup_badm] is already declared in file /etc/puppet/git/modules/useradd/manifests/init.pp at line 12; cannot redeclare

Re: [Puppet Users] useradd Duplicate declaration: Group

2013-08-06 Thread Sergey Arlashin
Hello, try group { "addgroup_$group": name => $group, git => $gid } -- Best regards, Sergey Arlashin On Aug 6, 2013, at 10:30 AM, Andreas Dvorak wrote: > Hello, > > I have written a module to add user and it does work with one user. But if I > use two user puppet tells me: >

Re: [Puppet Users] How to manage third-party module?

2013-08-06 Thread Brian Lalor
On Aug 6, 2013, at 5:27 AM, Feifei Jia wrote: > This is very inconvenient, obviously. So how do you guys manage third-party > modules, except using git submodule? Thanks. I use librarian-puppet https://github.com/rodjek/librarian-puppet for one of my projects. It's basically a dependency mana

[Puppet Users] How to manage third-party module?

2013-08-06 Thread Feifei Jia
Hi there, Like most of us, I put my Puppet module code to git repos. I'd like to know, how to deal with third-party module w/ git? For instance, to use Puppet Labs Standard Libary, I put "stdlib" along with my own modules. Every time I want to update "stdlib", I have to remove stdlib directory