[Puppet Users] Resource chaining not working

2013-07-11 Thread Daniel Siechniewicz
Hi, I have a seemingly simple situation, it can't really get simpler than that when it comes to resource chaining: node 'redis' { class { 'os::repo::misc': } class { 'redis': } Class['os::repo::misc'] -> Class['redis'] } This doesn't work: Info: Applying configuration version '1373529981

[Puppet Users] "Looping" around a custom fact list

2013-07-11 Thread ollies...@googlemail.com
Hello, We have a custom fact to show all kernels installed which appends a count. i.e. installed_kernel0 => 2.6.18-274.3.1.el5 installed_kernel1 => 2.6.18-308.16.1.el5 installed_kernel2 => 2.6.18-194.11.4.el5 What I want Puppet to do is to "loop" through this list of potential kernels and ins

[Puppet Users] Re: "Looping" around a custom fact list

2013-07-11 Thread Paul Tötterman
> What I want Puppet to do is to "loop" through this list of potential > kernels and install a specific driver package for all possibilities. > Is this even possible without a custom provider ? > I doubt it, unless you also export a installed_kernel_count => 3 fact. Cheers, Paul -- You rece

Re: [Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-11 Thread Paul Tötterman
> > I just responded to you ask.puppetlabs.com post, but I'll duplicate the > reply here. Thank you Peter, much appreciated. You wouldn't happen to know of a resource that collects puppet & osx wisdom? Cheers, Paul -- You received this message because you are subscribed to the Google Grou

[Puppet Users] Re: "Looping" around a custom fact list

2013-07-11 Thread ollies...@googlemail.com
On Thursday, July 11, 2013 10:17:47 AM UTC+1, Paul Tötterman wrote: > > > What I want Puppet to do is to "loop" through this list of potential >> kernels and install a specific driver package for all possibilities. >> Is this even possible without a custom provider ? >> > > I doubt it, unless yo

[Puppet Users] Re: One resource immediately after another

2013-07-11 Thread Nevorotin Vadim
Unfortunatelly, you can't do ifdown and ifup at the same time, because ifdown must be executed before changing interfaces file (with old interface settings), and ifup - after. If ifdown executed after changing interfaces file, then pre-down and post-down commands from old version willn't be exe

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-11 Thread Jon Ward
Hi, I had just copied the files over manually and placed them in the respective directories, I've now also installed the deb packages "mcollective-puppet-agent" on the agent nodes and "mcollective-puppet-common" on the client nodes from the Puppetlabs repo although this didn't make a differenc

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-11 Thread R.I.Pienaar
- Original Message - > From: "Jon Ward" > To: puppet-users@googlegroups.com > Sent: Thursday, July 11, 2013 10:37:00 AM > Subject: Re: [Puppet Users] MCollective Puppet plugin - runall not working > > Hi, > > I had just copied the files over manually and placed them in the respective >

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-11 Thread Jon Ward
Ah, sorry the node I was testing was disabled, and the ones that were enabled were missing some of the $libdir/ directories (I had copied them up manually and Puppet had wiped them out without my realising.) I'm getting an error now, but at least the nodes are being discovered: # mco puppet -v

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-11 Thread R.I.Pienaar
- Original Message - > From: "Jon Ward" > To: puppet-users@googlegroups.com > Sent: Thursday, July 11, 2013 10:59:11 AM > Subject: Re: [Puppet Users] MCollective Puppet plugin - runall not working > > Ah, sorry the node I was testing was disabled, and the ones that were > enabled were m

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-11 Thread Jon Ward
Ah that's working perfectly now, thanks so much for your time. Yep, I will update my Puppet scripts to install the deb packages going forward. Jon On Thursday, July 11, 2013 11:01:33 AM UTC+1, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Jon Ward" > > > To: puppet...@go

Re: [Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-11 Thread Peter Bukowinski
On Jul 11, 2013, at 5:19 AM, Paul Tötterman wrote: >> I just responded to you ask.puppetlabs.com post, but I'll duplicate the >> reply here. > > Thank you Peter, much appreciated. > > You wouldn't happen to know of a resource that collects puppet & osx wisdom? > > Cheers, > Paul Other than

[Puppet Users] Re: "Looping" around a custom fact list

2013-07-11 Thread jcbollinger
On Thursday, July 11, 2013 4:21:18 AM UTC-5, olli...@googlemail.com wrote: > > > > On Thursday, July 11, 2013 10:17:47 AM UTC+1, Paul Tötterman wrote: >> >> >> What I want Puppet to do is to "loop" through this list of potential >>> kernels and install a specific driver package for all possibili

[Puppet Users] Re: Resource chaining not working

2013-07-11 Thread jcbollinger
On Thursday, July 11, 2013 3:23:46 AM UTC-5, Daniel Siechniewicz wrote: > > Hi, > > I have a seemingly simple situation, it can't really get simpler than that > when it comes to resource chaining: > > node 'redis' { > class { 'os::repo::misc': } > class { 'redis': } > Class['os::repo::misc

[Puppet Users] Import class module?

2013-07-11 Thread Rafael Tomelin
hi people, I have my puppet installed, with structure forward: manifests nodes/ site.pp init.pp classes/ modules test manifests init.pp class_test.pp files service.conf templates template.erb templates files I would like to know how to import the class module test (class_test.pp)? I want to m

[Puppet Users] Re: Easy way to debug code

2013-07-11 Thread jcbollinger
On Thursday, July 11, 2013 12:35:55 AM UTC-5, Michael Dodwell wrote: > > Hi, > > Trying to write a generic function to deal with either arrays or strings. > Here's a cutdown version of what I'm writing highlighting the problem I > have. > > All i'm trying to do is take 'server1.testing.com' fro

[Puppet Users] Re: puppetlabs-ntp template discussion

2013-07-11 Thread jcbollinger
On Wednesday, July 10, 2013 12:57:32 PM UTC-5, Ashley Penney wrote: > > Hi guys, > > As I mentioned in a previous email I've refactored ntp and released a > 1.0.0 release candidate. There's one outstanding "flaw" remaining that's > bothering me and I wanted to solicit opinions on the list. We

[Puppet Users] Re: Automating Change Ticket Creation following module deployment

2013-07-11 Thread jcbollinger
On Wednesday, July 10, 2013 4:53:25 PM UTC-5, Worker Bee wrote: > > Hi Everyone; > > This is a way-out there question but, I wanted to see if anyone has any > advise to offer. > > > We have an API to our Change Management System. Presently, I have a perl > script that creates a record in the c

Re: [Puppet Users] Re: puppetlabs-ntp template discussion

2013-07-11 Thread Ashley Penney
On Thu, Jul 11, 2013 at 10:41 AM, jcbollinger wrote: > > Currently, users have the alternative of specifying their own custom > template instead of one of those packaged with the module. If the proposed > change would remove that option, then it would be a significant step > backward. > > If, how

[Puppet Users] Automating Change Ticket Creation following module deployment

2013-07-11 Thread Jared Curtis
Check out puppets reporting options. http://docs.puppetlabs.com/guides/reporting.html You will probably need to rewrite your Perl script as a reporting module for the best results. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscri

[Puppet Users] apache restart fails

2013-07-11 Thread Robertov
Hi all, Today, one of our webservers received a minor apache configuration but apache2 was not properly restarted. There was no configuration issue, as I could start apache2 directly. Also, the update was tested, and rolled out to other servers without problems. Perhaps puppet did not wait long

[Puppet Users] Yum.puppetlabs.com: Fedora 19

2013-07-11 Thread Justin Brown
Does anyone know when yum.puppetlabs.com will have a Fedora 19 repository? Fedora 19 has upgraded to Ruby 2.0. Based on Puppet Feature #18494, it looks like Puppet 3.2 is compatible. However, the RPM metadata for the Fedora 18 RPMs won't allow the packages to cleanly install. Thanks, Justin --

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread RichTea
On 10 July 2013 23:33, Jason Slagle wrote: > If you use hiera and puppet 3, specifying servers is as easy as putting > ntp::servers in hiera. > > Jason I have been reading through the module but not tested it, how does this work then I dont see any call to Hiera? -- Ritchie <--Time flies

[Puppet Users] End of Life Plan for Puppet 2.7.x

2013-07-11 Thread Michael Stahnke
The time has come for us to say good-bye to the Puppet 2.7 series. This means the security fixes, bug fixes, and features provided for Puppet 2.7 since its release in June 2011 will cease on October 1, 2013. We strongly encourage users who have not already upgraded to move forward to the Puppet 3

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread llowder
On Thursday, July 11, 2013 9:16:55 AM UTC-7, RichT wrote: > > > > > > On 10 July 2013 23:33, Jason Slagle >wrote: > >> If you use hiera and puppet 3, specifying servers is as easy as putting >> ntp::servers in hiera. >> >> Jason > > > > I have been reading through the module but not tested it,

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Kent R. Spillner
> http://www.nsa.gov/ia/_files/os/redhat/NSA_RHEL_5_GUIDE_v4.2.pdf > > In general, they recommend running a daemon only when absolutely necessary. Thanks for the reference! The security risk of ntpd listening by default is a good reason for wanting to run it out of cron. >> In general, that's

[Puppet Users] Delegation of responsability for SOME things

2013-07-11 Thread Philip Brown
Howdy folks, "we" the sysadmins at $DAYJOB, are liking puppet for our OS setups. Now we are interested in something that's going to make application deployment and config easier. Trouble is, we're a large shop. So we have a separate "application support" group, whom we dont particularly want to

[Puppet Users] 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-11 Thread Forrie
I'm having a perplexing problem with Puppet 3.2.2 (agent) on CentOS 6.3. There are two systems, recently built, that exhibit the same problem. I'm using the same, very basic and simple config I have on all of my systems (most of which are CentOS 5). This system has its own ruby and puppet

Re: [Puppet Users] 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-11 Thread kegstand
You should be running puppet version 2 clients with puppetmaster version 2. You should be running puppet version 3 clients with puppetmaster version 3. On Thu, Jul 11, 2013 at 11:41 AM, Forrie wrote: > I'm having a perplexing problem with Puppet 3.2.2 (agent) on CentOS > 6.3.There are two s

Re: [Puppet Users] 3.2.2 on CentOS 6.3, and "Did not receive certificate"

2013-07-11 Thread Forrie
The CentOS systems I built are 3.2.2 and the master is 3.2.2. the older clients are working fine - they are being upgraded, once I solve this issue. On Thursday, July 11, 2013 2:44:58 PM UTC-4, Dan wrote: > > You should be running puppet version 2 clients with puppetmaster version 2. > You sh

Re: [Puppet Users] End of Life Plan for Puppet 2.7.x

2013-07-11 Thread Worker Bee
I just want to verify that I am correct Puppet Agent 3.x is NOT compatible with 2.7 Puppet Masters? I am currently on 2.6 agents and need to upgrade these ASAP but, I do think we can go to 3.0 agents until we upgrade the masters? Thanks Bee On Thu, Jul 11, 2013 at 12:28 PM, Michael Stahnke

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Dan White
Excellent. I will see what I can do to contribute a run-it-by-cron option to the module, since I already do that. As far as the large time differences, there are multiple references "out there" to a line at the top of ntp.conf as follows: tinker panic 0 This tells the system to accept any o

Re: [Puppet Users] End of Life Plan for Puppet 2.7.x

2013-07-11 Thread Trevor Vaughan
Yes, this is correct. On Thu, Jul 11, 2013 at 3:21 PM, Worker Bee wrote: > I just want to verify that I am correct Puppet Agent 3.x is NOT > compatible with 2.7 Puppet Masters? > > I am currently on 2.6 agents and need to upgrade these ASAP but, I do > think we can go to 3.0 agents until we

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:28, Dan White wrote: > Excellent. I will see what I can do to contribute a run-it-by-cron option > to the module, since I already do that. > > As far as the large time differences, there are multiple references "out > there" to a line at the top of ntp.conf as follows: > > tin

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Ashley Penney
On Thu, Jul 11, 2013 at 3:49 PM, Matthew Burgess < matthew.2.burg...@gmail.com> wrote: > On 11 July 2013 20:28, Dan White wrote: > >> Excellent. I will see what I can do to contribute a run-it-by-cron >> option to the module, since I already do that. >> >> As far as the large time differences, t

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Kent R. Spillner
> As far as the large time differences, there are multiple references "out > there" to a > line at the top of ntp.conf as follows: > > tinker panic 0 > > This tells the system to accept any offset that is handed to it. By "large time differences" I meant between different servers on the network

[Puppet Users] Re: Yum.puppetlabs.com: Fedora 19

2013-07-11 Thread jbrown
Upon further examination, the Fedora 18 repository is mostly compatible with Fedora 19. The only incompatibility is that the Fedora Packaging team has changed how Ruby requirements are specified in RPM spec files. Instead of ruby(abi), it is ruby(release). I have written a dummy spec file that

[Puppet Users] undefined method each for #

2013-07-11 Thread Greg Chavez
I run puppet 3.2.2 on about 500 RedHat 5/6 systems. I have about 15 Ubuntu servers that run OpenStack; today I added the stdlib module to take advantage of the file_line type in a new module I had written AND I upgraded the puppet clients from 2.7 to match the other RedHat clients. This automatic

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:59, Ashley Penney wrote: > > In the new code we set panic based on $is_virtual by default, so it sets > panic to false for virtual and true for physical. > Indeed you do; I guess next time I take part in a discussion I should look at *all* the code involved, and not just skim

[Puppet Users] Re: undefined method each for #

2013-07-11 Thread Greg Chavez
Removing ruby1.9.1 fixed the problem. On Thu, Jul 11, 2013 at 5:22 PM, Greg Chavez wrote: > I run puppet 3.2.2 on about 500 RedHat 5/6 systems. I have about 15 > Ubuntu servers that run OpenStack; today I added the stdlib module to > take advantage of the file_line type in a new module I had wri

[Puppet Users] Re: "Looping" around a custom fact list

2013-07-11 Thread jcbollinger
On Thursday, July 11, 2013 8:41:03 AM UTC-5,I wrote: > > > $kernel_fact_stem = 'installed_kernel' > $kernel_list = inline_template("<%= > (0...@installed_kernel_count.to_i).collect{|n| @kernel_fact_stem + > n.to_s}.join(',') %>") > > Sorry, I think I've buggered that up a bit. It should be

[Puppet Users] Function fqdn_rand - how can I use it outside of Puppet ?

2013-07-11 Thread Dan White
I have a temporary need to be able to duplicate this function outside of Puppet. How do I strip out the important stuff and make a stand-alone ruby script out of it ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to co

[Puppet Users] Windows Specific Facts

2013-07-11 Thread Rob Reynolds
Hello all, We are evaluating https://projects.puppetlabs.com/issues/8322 and https://projects.puppetlabs.com/issues/7643. It seems to reason that some of these facts are going to be Windows specific. In Facter we want to call these out specifically with a prefix similar to how is done on OSX (wit

Re: [Puppet Users] Puppet code review - suggestions and options

2013-07-11 Thread David Schmitt
On 09.07.2013 17:32, Matt Woodson wrote: The go to git code review seems to be gerrit. I would love to hear experiences from others that are specifically using gerrit with puppet for reviewing puppet code. I'd really like to hear your workflow and how gerrit fits into it. After instlaling a te

Re: [Puppet Users] dashboard groups

2013-07-11 Thread David Schmitt
On 10.07.2013 12:32, Peter Berghold wrote: Is there a global variable (or variables) that get set when a group gets defined in dashboard? What I'm trying to do is in a template have a conditional such that if a host is in one group do "this" and if not in that group do "that". Usually that is

Re: [Puppet Users] Delegation of responsability for SOME things

2013-07-11 Thread Nikola Petrov
Why don't you use some other tool for application deployment? This will make your life a lot easier! In my experience puppet is not the best option for application deployment because it uses "pull" based changes. In some usecases this is just not possible and a push based solution is far better. T