Re: [Puppet Users] schedule whole class and not only resources

2014-10-27 Thread Andreas Dvorak
Dear all, thank you for the responses. My class has serval different resources types. If there is no eays solution, it does not matter. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-27 Thread Andreas Dvorak
Hi Wil, thank you. The restart was missing. So easy but I did not think about that. 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 it, send an email to puppet-users+unsubs

Re: [Puppet Users] Adding then removing SW - best practices?

2014-10-27 Thread JonY
I get the rationale of an 'immutable system' but I don't have the privilege of replacing these. They are field-deployed in sensitive locations. On Sunday, October 26, 2014 6:11:56 PM UTC-7, Garrett Honeycutt wrote: > > On 10/26/14 5:18 AM, JonY wrote: > > Let's say that I'm deploying a steady

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-27 Thread L Wilson
try adding a servername param to your vhost config. ie from docs: apache::vhost { 'first.example.com non-ssl': servername => 'first.example.com', port => '80', docroot=> '/var/www/first',} On Friday, October 24, 2014 7:51:03 AM UTC-5, cwebber wrote: > > Maybe do something with

[Puppet Users] Re: Adding then removing SW - best practices?

2014-10-27 Thread Thomas Müller
Am Sonntag, 26. Oktober 2014 13:18:44 UTC+1 schrieb JonY: > > Let's say that I'm deploying a steady stream of identical hosts. Each has > some piece of SW on it that's managed by Puppet. I continue to (regularly) > add to and maintain this group over time. > > Day comes when this SW is no long

[Puppet Users] Re: schedule metaparameter

2014-10-27 Thread jcbollinger
On Friday, October 24, 2014 12:51:27 PM UTC-5, Mark Rosedale wrote: > > Hello, > > I'm looking to start to implement scheduling for certain resources within > puppet. My one question is this. > > If I have a schedule set on resource 'foo' does that prohibit that > resource from being updated i

[Puppet Users] Re: Puppet, inventory, and single sources of truth.

2014-10-27 Thread Brian Morris
I accomplish this through a way that may fit your needs. I use facters for it. Here is one for looking for Apache on Debian-based distro: Facter.add(:apache_exists) do confine :osfamily => "Debian" setcode do if Facter::Util::Resolution.exec("dpkg -l | grep apache2 | grep -v > apache2-util

[Puppet Users] How to manage a lab with puppet? (how does puppet scale?)

2014-10-27 Thread Nic Scott
I'm evaluating puppet to see if it can work in our environment and I have to admit the the learning cure with the puppet "terms" are giving me issues. I keep reading documentation into circles. I'm familiar with python, bash scripting, and use munki in my labs, but I'm stilling trying to unders

[Puppet Users] Re: Adding then removing SW - best practices?

2014-10-27 Thread Brian Morris
This could be done in a stateful fashion. Start with a facter like this: Facter.add(:apache_exists) do > > confine :osfamily => "Debian" > > setcode do > > if Facter::Util::Resolution.exec("dpkg -l | grep apache2 | grep -v >> apache2-utils | grep ^ii") > > "true" > > end > > end > > end > > ... a

Re: [Puppet Users] How to manage a lab with puppet? (how does puppet scale?)

2014-10-27 Thread Doug Forster
The idea is that you setup a class for each node function. If you have a bunch of nodes that need this one program create a class for it and add it to their profile. Some people actually use an External Node Classifier like Hiera, Puppet enterprise console, or forman. Some people find it helpful to

Re: [Puppet Users] Re: Adding then removing SW - best practices?

2014-10-27 Thread Trevor Vaughan
One day, long ago in 2008, there was a discussion on anti-classes: http://comments.gmane.org/gmane.comp.sysutils.puppet.user/5884. Yeah, they're still irritating, but I don't really know how else to do it. init.pp ( $enable => true ) ==> Main Class init.pp ( $enable => false ) ==> Anti Class Tre

[Puppet Users] Jenkins with puppet

2014-10-27 Thread Irfan Sayed
hello, i am using puppet master/client setup. as of now , it is working fine. now, i need to integrate the Jenkins with puppet. i am not getting clear picture of how this integration works i have gone through the wiki pages of this Jenkins plugin but not getting the flow can some one please help

[Puppet Users] Debugging which provider and which command it is using

2014-10-27 Thread huhm4n
When I'm installing some package using puppet, let's say package { "xxx": ensure => present, } How do I include if it is running yum install, or apt-get when I'm pushing this module on os level? I want to have output like, using yum install xx or something like that if it is

Re: [Puppet Users] Re: Adding then removing SW - best practices?

2014-10-27 Thread JonY
I've been using 'anti-classes' up to now.. hoping for a better way.. alas... On Monday, October 27, 2014 11:17:12 AM UTC-7, Trevor Vaughan wrote: > > One day, long ago in 2008, there was a discussion on anti-classes: > http://comments.gmane.org/gmane.comp.sysutils.puppet.user/5884. > > Yeah, the

[Puppet Users] Re: Puppi parameters in command line

2014-10-27 Thread NewUser5
> > > Can you post the content of your puppi define and the parameters you want > to override? > Override via the command line is strictly related to the puppi::project::* > define you use and the parameter you want to override on the cli. > For example, I would like to specify the tag release

Re: [Puppet Users] Re: schedule metaparameter

2014-10-27 Thread Ramin K
On 10/27/14 7:43 AM, jcbollinger wrote: On Friday, October 24, 2014 12:51:27 PM UTC-5, Mark Rosedale wrote: Hello, I'm looking to start to implement scheduling for certain resources within puppet. My one question is this. If I have a schedule set on resource 'foo' does that pr

[Puppet Users] Puppet directory environments mysteriously breaking -- help?

2014-10-27 Thread Victor Danilchenko
Hi all, I am running a puppetmaster setup on CentOS. We have out production environment working fine. However, I am trying to migrate from puppet 3.4, and from config environments to directory environments. I got my environments tree all set up in the puppet master, but when I activate my dire

[Puppet Users] Puppet Labs' Splunk module not purging ini_setting resources?

2014-10-27 Thread Paul Krizak
Hi, all. I'm having a hell of a time trying to figure out why the Puppet Labs' Splunk module (https://forge.puppetlabs.com/puppetlabs/splunk) seemingly refuses to work with the ini_setting purge functionality. Inside the module, it's got some code to purge content from the two managed INI file

Re: [Puppet Users] create a database

2014-10-27 Thread Felix Frank
Hi, has this been resolved? You may have better luck in a puphpet forum, otherwise. It's a rather different beast than Puppet proper. Regards, Felix On 10/02/2014 11:41 PM, Xavier Artot wrote: > Hi, > I'm new and I installed the config by default. > > But when want to create: > > [default] mys

[Puppet Users] Pro Git 2nd Edition out

2014-10-27 Thread Rich Burroughs
This isn't Puppet specific but I know a lot of people are using Git in their Puppet workflows (or should be). There's a 2nd edition out of the awesome Pro Git book. It's free, which is just one of the reasons it's awesome: http://git-scm.com/book/en/v2 I haven't read through the new version ye

[Puppet Users] Re: Jenkins with puppet

2014-10-27 Thread Irfan Sayed
please suggest. i am stuck regards On Mon, Oct 27, 2014 at 11:56 PM, Irfan Sayed wrote: > hello, > > i am using puppet master/client setup. > as of now , it is working fine. > now, i need to integrate the Jenkins with puppet. > > i am not getting clear picture of how this integration works > i

Re: [Puppet Users] Re: Jenkins with puppet

2014-10-27 Thread Atom Powers
Ahoy Irfan, Your question requires a complicated answer. There isn't just one answer for every situation, or even a best answer for any situation. Generally, you start by writing tests for your modules. Then you configure Jenkins to automatically run your tests for you. There are lots of tools fo

[Puppet Users] Re: Debugging which provider and which command it is using

2014-10-27 Thread Sam Coffland
I'm not sure exactly what your trying to achieve by getting the provider but I give it a shot at it anyway. In order to get debugging info from puppet you would use a notice. http://www.puppetcookbook.com/posts/simple-debug-messages.html So if you wanted to have your EL systems tell you they i

Re: [Puppet Users] Jenkins with puppet

2014-10-27 Thread Toni Schmidbauer
Irfan Sayed writes: > i am not getting clear picture of how this integration works > i have gone through the wiki pages of this Jenkins plugin but not > getting the flow > > can some one please help on this ? it really depends on what you would like to do... but as a starting point you could try