Re: [Puppet Users] Trouble with file in module 'source => "puppet://...'"

2013-05-21 Thread Charly Mathieu
Ah yes ! Thank you, that makes sense actually, I didn't realized it before. Thank to both of you, have a nice day :) Le mardi 21 mai 2013 18:00:53 UTC+2, Ramin K a écrit : > > On 5/21/2013 8:55 AM, Charly Mathieu wrote: > > Hello, > > > > I'm trying to write my first module, but I have a probl

Re: [Puppet Users] avoiding duplicate package definitions with stdlib's "ensure_packages"

2013-05-21 Thread David Schmitt
On Tue, 21 May 2013 13:27:28 -0400, Jonathan Proulx wrote: > One of the most frustrating things about puppet is duplicate definitions of > packages, > > The "ensure_packages" function from stdlib seems very much like the correct > way to handle this: > > newfunction(:ensure_packages, :type => :s

Re: [Puppet Users] Re: PuppetDB: SSL problems

2013-05-21 Thread kl . puppetuser
Opened bug 20838: http://projects.puppetlabs.com/issues/20838 Thanks, kl -- 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.

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-21 Thread Pete Brown
On 22 May 2013 00:41, Tom Poulton wrote: > So I get the move to systemd (whatever that is) if that's what Fedora > uses, but why rename the "service", that means I have to add a special case > in my puppet module just for Fedora to set the name of the service resource > to "puppetagent"? Unless i

Re: [Puppet Users] Problem creating user with Puppet

2013-05-21 Thread Jeff Zellner
>From the docs for `home`: "The home directory of the user. The directory must be created separately and is not currently checked for existence." `managehome` doesn't ensure the creation of the home directory, I believe it just checks permissions. Cheers! -Jeff On Tue, May 21, 2013 at 6:22 PM,

Re: [Puppet Users] Problem creating user with Puppet

2013-05-21 Thread Denmat
Hi, That should work. Can you provide a bit more info? Versions of puppet and Ubuntu. Can you also provide the output from your run with --debug? Make sure the user is removed before you run again. Cheers Den On 21/05/2013, at 22:39, dusan.dorde...@clavistechnology.com wrote: > Hi, > > I a

[Puppet Users] Re: avoiding duplicate package definitions with stdlib's "ensure_packages"

2013-05-21 Thread jcbollinger
On Tuesday, May 21, 2013 12:27:28 PM UTC-5, Jonathan Proulx wrote: > > One of the most frustrating things about puppet is duplicate definitions > of packages, > > The "ensure_packages" function from stdlib seems very much like the > correct way to handle this: > > newfunction(:ensure_packages,

Re: [Puppet Users] avoiding duplicate package definitions with stdlib's "ensure_packages"

2013-05-21 Thread Joe Topjian
Wow - I never knew about ensure_packages. I'm not sure if I overlooked it or if it's relatively new, but either way, I agree that it should be more widely used. I run into the same issue that you described when using third-party modules. I try to avoid this in my own modules by only managing packa

[Puppet Users] avoiding duplicate package definitions with stdlib's "ensure_packages"

2013-05-21 Thread Jonathan Proulx
One of the most frustrating things about puppet is duplicate definitions of packages, The "ensure_packages" function from stdlib seems very much like the correct way to handle this: newfunction(:ensure_packages, :type => :statement, :doc => <<-EOS Takes a list of packages and only installs them i

[Puppet Users] puppet dahsboard class counter

2013-05-21 Thread lucy . netcetera
Hi List, I have running installation of the puppet-dashboard (a really nice tool) and import my classes and group according to my need with the following small bash lines. # add classes into dashboard for name in `ls /var/lib/puppet/manifests/classes/ | sed s/\.pp$//g -` do rake -f /usr/

[Puppet Users] puppet 3.1.1-1 ignores runinterval (?)

2013-05-21 Thread Sebastian Kösters
Hi, i recently updated from puppet 2.x to puppet 3.1.1-1 (centos 6) and noticed, that my puppet runs heavily increased. My config: [...] runinterval = 1200 report = true splay = true splaylimit = 300 [...] but instead of running every 1200 seconds it runs every few minutes. M

Re: [Puppet Users] Trouble with file in module 'source => "puppet://...'"

2013-05-21 Thread Ramin K
On 5/21/2013 8:55 AM, Charly Mathieu wrote: Hello, I'm trying to write my first module, but I have a problem with a conf file I want to be managed with puppet. It's an apache2 vhost file, so the name is "www.example.com", my ressource is like : file { 'a2site' : ensure => present, p

Re: [Puppet Users] Trouble with file in module 'source => "puppet://...'"

2013-05-21 Thread Matthew Burgess
Hi Charly, I think you're just missing a 3rd '/' in your source, i.e. it should be: puppet:///modules/websitemodule/${conf_file}/etc/apache2/sites-available/ www.example.com" Here, 'puppet://' is the protocol and the next '/' is for the root of the puppet file server. Regards, Matt. On Tue,

[Puppet Users] Trouble with file in module 'source => "puppet://...'"

2013-05-21 Thread Charly Mathieu
Hello, I'm trying to write my first module, but I have a problem with a conf file I want to be managed with puppet. It's an apache2 vhost file, so the name is "www.example.com", my ressource is like : file { 'a2site' : > ensure => present, > path => '/etc/apache2/sites-available/www.example.com

Re: [Puppet Users] Re: PuppetDB: SSL problems

2013-05-21 Thread Ken Barber
I'm glad you found a solution :-). I think this is a bug though. Would you mind if you raised a ticket for this in our redmine tracker with the details of your error and solution? At least if we can record it for the purpose of errata, it might help someone else - or we might come to a proper solu

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-21 Thread Tom Poulton
So I get the move to systemd (whatever that is) if that's what Fedora uses, but why rename the "service", that means I have to add a special case in my puppet module just for Fedora to set the name of the service resource to "puppetagent"? Unless it's a change they're going to roll out to all their

[Puppet Users] Re: Delete directory contents if this is older then ..

2013-05-21 Thread przemol
On Tuesday, May 21, 2013 11:52:22 AM UTC+1, Paul Tötterman wrote: > > Hi, > > Is there any other puppet recommended way of doing that ? >> > > http://docs.puppetlabs.com/references/latest/type.html#tidy > > Cheers, > Paul > Thanks Paul - this is what I was looking for :-) Cheers P. -- You r

[Puppet Users] Puppet - rbuf_fill timeout error periodically on puppet client runs

2013-05-21 Thread phundisk
Occasionally I am seeing this error below on puppet client runs from several different clients. The clients and the server in this environment are rather old and this started to happen more after I used to nagios module which uses stored configs. Does anyone know where this slowness might be

[Puppet Users] Problem creating user with Puppet

2013-05-21 Thread dusan . dordevic
Hi, I am trying to create user on Ubuntu using this code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", shell => "/bin/bash", managehome => true, groups => 'cl

[Puppet Users] Re: Delete directory contents if this is older then ..

2013-05-21 Thread Paul Tötterman
Hi, Is there any other puppet recommended way of doing that ? > http://docs.puppetlabs.com/references/latest/type.html#tidy Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

[Puppet Users] Delete directory contents if this is older then ..

2013-05-21 Thread przemol
Hello, I would like to clean up some directories (linux) and remove some old contents which is older than e.g. 7 days. One way is to setup cron job (of course using puppet ...) which clears these directories. Is there any other puppet recommended way of doing that ? Regards -- You received th

Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

2013-05-21 Thread David Schmitt
On 19.05.2013 14:18, Mateusz Fiołka wrote: I'm not sure if it is related to the services. It rather looks like puppet related to me. I'm having a similar problem on a newly created vps. When I do puppet apply first time I get the message: Error: Could not set 'present' on ensure: invalid byte se

[Puppet Users] Re: removing hosts from puppet-monitor (example42)

2013-05-21 Thread Alessandro Franceschi
Hi Andreas, to remove a node you can run: puppet node deactivate on the PuppetMaster. To be sure to have quicker answers about Example42 modules, please use: https://groups.google.com/forum/?fromgroups#!forum/example42-puppet-modules Ciao Alessandro On Sunday, April 28, 2013 1:34:12 PM UTC+2, A

Re: [Puppet Users] example42 puppet-squid

2013-05-21 Thread Alessandro Franceschi
I confirm. That Squid module is very old and is part of the "old generation" of Example42 Puppet modules, it was done before the release of Puppet 2.6 and doesn't support parameters (that's why you see errors when trying to pass parameters to it). As author of the Example42 module I suggest to u

Re: [Puppet Users] Puppet, git & security

2013-05-21 Thread Alex Harvey
On Friday, May 17, 2013 12:35:24 AM UTC+10, Martin Langhoff wrote: > > On Wed, May 15, 2013 at 2:44 AM, Stephen Gran > > wrote: > > Your push server can run git update and then rsync to the masters. > > Why rsync if you have git? > Martin, John, thanks for your feedback - it's very helpful.