[Puppet Users] Re: Recipes release management : separate test and prod

2010-07-06 Thread Jean-Baptiste BARTH
Thanks for all your advices, will be very very useful. Just one thing about versionning : I personnally put into git everything I can. The sysadmins at my new job don't have this habit, this is just a fact. So it's obvious I'll spend some afternoons to teach them git, svn or any vcs, but sometimes

[Puppet Users] more on classes and external files

2010-07-06 Thread christopher floess
Hi, quick question: I have been following the thread: "Splitting classes into separate files" and decided to to some refactoring based on that. I have the following file structure for a module modules/packages/manifests/init.pp modules/packages/manifests/classes/redis.pp ~/puppet_config$ cat

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Also, none of the other files created by puppet types are set to be > readable only by root. I think this might be a bug in puppet. > Surprised no one has noticed it before. http://projects.puppetlabs.com/issues/3299 cheers pete -BEGIN PGP SIGN

[Puppet Users] %% in templates

2010-07-06 Thread Tim
Hiya, I've recently updated my svn server so that it checks the syntax of .erb files, on commit, along with .pp files. While doing this, I ran across a small but niggling issue and wanted to see if I was just doing something wrong or if it was a bug. In my sudoers template file, I have a number

[Puppet Users] Sun Java module for RedHat

2010-07-06 Thread SyRenity
Hi. I googled for this thoroughly but couldn't find any module that actually worked. Is there any good puppet module or manifest for installing Sun JDK? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email

[Puppet Users] Re: Network settings control module

2010-07-06 Thread SyRenity
I need to switch machines from DHCP to static IP, any good module for this? Regards. On Jul 6, 12:45 am, SyRenity wrote: > Hi. > > Can someone recommend a good module for network control? > > Regards. -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] Sun Java module for RedHat

2010-07-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi > I googled for this thoroughly but couldn't find any module that > actually worked. > > Is there any good puppet module or manifest for installing Sun JDK? we usually re-package SunJDK with jpackage and put it in our own repo, then it is simply

[Puppet Users] "Mounts without paths are not usable"

2010-07-06 Thread elementai
Good day to you. I've updated my puppetmaster and clients to 0.25.x and also updated file serving paths to include "/modules/". I also use foreman to monitor puppetd reports, after update there are sporadically emerging errors : "Failed to retrieve current state of resource: Mounts without paths a

[Puppet Users] Re: Sun Java module for RedHat

2010-07-06 Thread SyRenity
Hi. > > we usually re-package SunJDK with jpackage and put it in our own repo, > then it is simply a matter of package installation. this makes also > updating etc. a lot easier. > Is there any good HOWTO you can recommend, or spec files you can share? Regards. -- You received this message bec

Re: [Puppet Users] Re: Network settings control module

2010-07-06 Thread Ashley Penney
We would need a lot more information to be helpful - what OS are you using, or what distribution if Linux, and how do you want to control the ip's for machines - variables, a database, ldap? On Tue, Jul 6, 2010 at 4:01 AM, SyRenity wrote: > I need to switch machines from DHCP to static IP, any g

Re: [Puppet Users] more on classes and external files

2010-07-06 Thread Michael Gliwinski
On Tuesday 06 Jul 2010 08:42:55 christopher floess wrote: > Hi, quick question: > > I have been following the thread: "Splitting classes into separate > files" and decided to to some refactoring based on that. I have the > following file structure for a module > > modules/packages/manifests/init.

[Puppet Users] Re: Network settings control module

2010-07-06 Thread SyRenity
> We would need a lot more information to be helpful - what OS are you using, > or what distribution if Linux, and how do you want to control the ip's for > machines - variables, a database, ldap? CentOS 5.5, variables for now. I'm using foreman, so storing these values in DB comes with it. Rega

Re: [Puppet Users] Sun Java module for RedHat

2010-07-06 Thread Rob McBroom
On Jul 6, 2010, at 3:59 AM, SyRenity wrote: > I googled for this thoroughly but couldn't find any module that > actually worked. > > Is there any good puppet module or manifest for installing Sun JDK? I don’t know what OS you’re on, but under RHEL5, I just installed this like any other package.

[Puppet Users] Using variables in regex

2010-07-06 Thread Christian Casar
Well, how do I use the content of a variable in regex? $username = "user1" file { "userdata.tar.bz2": source => "puppet://$server/modules/$module/ userdata.tar.bz2", ensure => $users ? { /$username/ => absent,

[Puppet Users] ssh authorized key problem in AIX

2010-07-06 Thread M.F.Haris
hi guys, I am having an unusual behaviour in puppet with AIX (client node) while copying ssh key from puppet-server to client. here is what i am trying to do; $username = "xyz" $group = "system" $home = "/home" $sshDir = ".ssh" $pub_key = "id_rsa.pub.xyz" 1. creating all users virtually in on

Re: [Puppet Users] Re: Sun Java module for RedHat

2010-07-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi >> we usually re-package SunJDK with jpackage and put it in our own repo, >> then it is simply a matter of package installation. this makes also >> updating etc. a lot easier. >> > > Is there any good HOWTO you can recommend, or spec files you can

[Puppet Users] Re: ssh authorized key problem in AIX

2010-07-06 Thread Andrew Forgue
Haris, On Jul 6, 7:19 am, "M.F.Haris" wrote: > $sourcepath = $operatingsystem ? { >         AIX => "/etc/puppet/modules/userkeys/files/$pub_key.$username", >         default => "puppet:///SLES/$pub_key.${username}", >     } Here, on the AIX path you tell it to copy the id_dsa.pub /from a local f

[Puppet Users] Re: External Node Problem in Puppet Dashboard

2010-07-06 Thread Jochen Maes
You are probably using an older version of ruby. on line 69 remove the opts in the to_yaml declaration (-> configuration.to_yaml()) On Jun 24, 5:25 pm, "Thomas A. McGonagle" wrote: > Hello Fellows, >  I am running into an odd bug trying to setup External Nodes with > Puppet Dashboard. I have a pr

Re: [Puppet Users] Sun Java module for RedHat

2010-07-06 Thread Reid Vandewiele
On Tue, Jul 6, 2010 at 1:15 AM, Peter Meier wrote: > Hi > >> I googled for this thoroughly but couldn't find any module that >> actually worked. >> >> Is there any good puppet module or manifest for installing Sun JDK? > > we usually re-package SunJDK with jpackage and put it in our own repo, > th

Re: [Puppet Users] Recipes release management : separate test and prod

2010-07-06 Thread Nan Liu
On Mon, Jul 5, 2010 at 9:56 PM, christopher floess wrote: > > We work on this by keeping the puppet configuration in Subversion. We >> then >> have a Makefile at the top level which runs a puppet syntax check on any >> modified file before a commit. >> >> > Uh, would you mind divulging to someon

Re: [Puppet Users] %% in templates

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 12:52 AM, Tim wrote: > > I realise that one solution here is to just not check the syntax of > the template with erb (as it works absolutely fine with a single %).. > However, it feels a little bit broken or (quite possibly) I'm missing > something obvious so would be good t

Re: [Puppet Users] Re: Network settings control module

2010-07-06 Thread Ashley Penney
I use this for rhel/foreman: init.pp class network { tag("bootstrap") file { "ifcfg-eth0": path => "/etc/sysconfig/network-scripts/ifcfg-eth0", owner => root, group => root,

Re: [Puppet Users] more on classes and external files

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 12:42 AM, christopher floess wrote: > Hi, quick question: > > I have been following the thread: "Splitting classes into separate files" > and decided to to some refactoring based on that. I have the following file > structure for a module Great, thanks for taking the time t

Re: [Puppet Users] Using variables in regex

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 6:40 AM, Christian Casar wrote: > Well, how do I use the content of a variable in regex? ... > But things like /$variable/ or /\$variable/ or /#{variable}/ just > don't work. > Is it even possible in version 0.25.4? I couldn't get this to work either. I get the same behavi

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Douglas Garstang
On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> Also, none of the other files created by puppet types are set to be >> readable only by root. I think this might be a bug in puppet. >> Surprised no one has noticed it before. > > http://proj

Re: [Puppet Users] Using variables in regex

2010-07-06 Thread Patrick Mohr
On Jul 6, 2010, at 6:40 AM, Christian Casar wrote: > Well, how do I use the content of a variable in regex? > > $username = "user1" > file { "userdata.tar.bz2": >source => "puppet://$server/modules/$module/ > userdata.tar.bz2", >ensure => $users ? { >

Re: [Puppet Users] Using variables in regex

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 10:40 AM, Patrick Mohr wrote: >> >> Is it even possible in version 0.25.4? > > Try changing #{variable} to ${variable} I tried this, it doesn't work. Here's my test: # Regular Expression Test $who = "jeff" $party = "jeff, john, bill, carrie" $match = $party? { /"${jef

Re: [Puppet Users] Nagios Types

2010-07-06 Thread James Turnbull
Douglas Garstang wrote: > On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >>> Also, none of the other files created by puppet types are set to be >>> readable only by root. I think this might be a bug in puppet. >>> Surprised no one has no

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Douglas Garstang
On Tue, Jul 6, 2010 at 11:03 AM, James Turnbull wrote: > Douglas Garstang wrote: >> On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> Also, none of the other files created by puppet types are set to be readable only by root. I

[Puppet Users] stand alone and module collections

2010-07-06 Thread TonyR
hi, are module collecitons (camptocamp, completeconfig, example42) compatible with a standalone puppet environment. i am looking to have 20+ servers running puppet ( not puppetd ) on demand and would like to use some of the pre-written modules. if so, does any one have any quick tips/ helpful i

[Puppet Users] Global woes

2010-07-06 Thread Jeff
Hello puppeteers, We are in the process of upgrading to 0.25.4 and I've discovered an issue. I have a global class called global that looks like this: class globals { $java = "/usr/bin/java" $javac = "/usr/bin/javac" $java_home = "/usr/java/jdk1.5.0_15" $dynamo_home

Re: [Puppet Users] Global woes

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 11:52 AM, Jeff wrote: > Hello puppeteers, > > We are in the process of upgrading to 0.25.4 and I've discovered an > issue. I have a global class called global that looks like this: > > class globals { > >  $java          = "/usr/bin/java" >  $javac         = "/usr/bin/javac"

Re: [Puppet Users] stand alone and module collections

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 11:43 AM, TonyR wrote: > > hi, > > are module collecitons (camptocamp, completeconfig, example42) > compatible with a standalone puppet environment.  i am looking to have > 20+ servers running puppet ( not puppetd ) on demand and would like to > use some of the pre-written m

[Puppet Users] Re: File-based Distribution, Module Function Logic and Per Setting (Augeas); Which method do you think is best for the env i help to support and why?

2010-07-06 Thread TonyR
Jeff, Thanks for the response. puppet:///modules/modulename/path/to/file.txt source URI's.got it. is that part of puppet best practices? T. On Jul 5, 4:39 pm, Jeff McCune wrote: > On Mon, Jul 5, 2010 at 10:29 AM, TonyR wrote: > > I think I've answered one of my questions. > > > Based on

Re: [Puppet Users] Re: File-based Distribution, Module Function Logic and Per Setting (Augeas); Which method do you think is best for the env i help to support and why?

2010-07-06 Thread Jeff McCune
On Tue, Jul 6, 2010 at 12:25 PM, TonyR wrote: > Jeff, > > Thanks for the response. My pleasure. > puppet:///modules/modulename/path/to/file.txt source URI's.    got > it.  is that part of puppet best practices? Yeah, it's documented at: http://docs.reductivelabs.com/guides/modules.html The per

[Puppet Users] Re: Global woes

2010-07-06 Thread Jeff
On Jul 6, 3:09 pm, Jeff McCune wrote: > On Tue, Jul 6, 2010 at 11:52 AM, Jeff wrote: > > Hello puppeteers, > > > We are in the process of upgrading to 0.25.4 and I've discovered an > > issue. I have a global class called global that looks like this: > > > class globals { > > >  $java          = "

Re: [Puppet Users] Recipes release management : separate test and prod

2010-07-06 Thread James Turnbull
Dan Carley wrote: > > - In addition to custom types, providers and facts, flapping back and > forth between environments. It's also not possible to have separate > fileservers for additional paths between environments. But it's probably > not something that will affect you at this stage. > Dan

[Puppet Users] Re: stand alone and module collections

2010-07-06 Thread TonyR
puppet --configprint module i will be using that one. ty i've loaded camptocamp monit module in my /srv/puppet/modules directory. I know i've got to run puppet --modulepath /srv/puppet/modules but i am unsure with what other options. t. On Jul 6, 3:13 pm, Jeff McCune wrote: > On Tue, Jul 6

[Puppet Users] Re: stand alone and module collections

2010-07-06 Thread TonyR
I think i will use something similar to: sudo puppet -v --modulepath /srv/puppet/modules/ /etc/puppet/manifests/ site.pp I am not certain what goes in the site.pp for the camp2camp monit module. t. On Jul 6, 4:26 pm, TonyR wrote: > puppet --configprint module > > i will be using that one. ty >

[Puppet Users] Gepetto - the #puppet bot

2010-07-06 Thread James Turnbull
Hi all We've made some changes to the IRC bot so he now recognizes URLS from the Puppet Labs Docs site: http://docs.puppetlabs.com You can query them much like you can query Redmine information. Specify ref: and the reference URL you'd like to retrieve or guide: and the guide page you'd like, f