Re: [Puppet Users] Help writing a custom fact

2012-11-25 Thread Michael Stahnke
On Sun, Nov 25, 2012 at 11:00 PM, Walter Heck wrote: > I think you might be using the wrong tool for the job, but we need a > little bit more information to determine that: What do you want to do > with these facts once you have them in puppet? > > If you are managing websites with puppet, you sho

Re: [Puppet Users] Help writing a custom fact

2012-11-25 Thread Walter Heck
I think you might be using the wrong tool for the job, but we need a little bit more information to determine that: What do you want to do with these facts once you have them in puppet? If you are managing websites with puppet, you should probably manage the folders themselves with puppet, removin

[Puppet Users] problems with exported exec resources

2012-11-25 Thread Geoff Crompton
I've got an exported exec that looks like: 38 @@exec { "commvault_subclient_$hostname": 39 command => "/usr/local/sbin/commvault_auto_subclient --touchstamp /srv/mnt/.$hostname_commvault_backed_up $hostname", 40 creates => "/srv/mnt/.$hostname_commvault_backed

Re: [Puppet Users] Report processor and available variables

2012-11-25 Thread James Turnbull
Jean Baptiste Favre wrote: > Hello, > I'm trying to build a custom report processor so that I can get puppet > metrics into Zabbix. > I found one here: https://github.com/thomasvandoren/puppet-zabbix which > basically works. > > The problem I have is that report processor mostly use self.host as >

[Puppet Users] Re: passing array param to hiera

2012-11-25 Thread frap
I think you need to user "hiera_array" rather than hiera_lookup -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5k-m908vuFgJ. To post to this group, send em

Re: [Puppet Users] Re: Fileserver in standalone mode.

2012-11-25 Thread Ryan Coleman
On Wed, Nov 21, 2012 at 8:04 AM, Scott Smerchek wrote: > I'm having this same problem. Is there a solution? This doc is a bit buried and hard to find but check out serving from custom mount points. That ought to solve your need. http://docs.puppetlabs.com/guides/file_serving.html#serving-files-f

Re: [Puppet Users] Dependency Ordering

2012-11-25 Thread Ryan Coleman
On Sat, Nov 24, 2012 at 11:17 AM, Smashed wrote: > class Foo { > > require A > > … some other stuff > > } > > > class A { > > include B > > include C > > include D > > } > > > When structured like this does this mean that A,B,C and D will all be > processed before Foo? > Short answer, yes. The n

Re: [Puppet Users] puppet.conf questiosn

2012-11-25 Thread Ryan Coleman
On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance wrote: > Hi, > > I have 2 questions regarding puppet.conf file: > > >1. What should I do to use puppet to deploy puppet.conf files? I have >only one puppetmaster, but I was wondering if I should push the same file >on all my hosts (incl

Re: [Puppet Users] Re: Puppet3 CSW packages for Solaris

2012-11-25 Thread Ryan Coleman
On Sun, Nov 25, 2012 at 1:10 PM, Phips wrote: > OK, I've done some testing, and had some feedback from a third party too - > they're good. > > So I've released to the main CSW catalog[1]. Should imagine they'll be > available in a day or two. > Thanks for this! > > --Mark > > [1] https://www.o

Re: [Puppet Users] Puppet agent on Windows

2012-11-25 Thread Ryan Coleman
On Sun, Nov 25, 2012 at 1:30 PM, Ugo Bellavance wrote: > Hi, > > What are the requirements to have puppet agents on windows servers? I have > 2003 R2 and 2008 R2 servers, 32 and 64- bit, > All of those are supported. Here are the relevant docs. http://docs.puppetlabs.com/pe/2.7/install_system_r

Re: [Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Thanks Steven. The error was the line that said "Read more..." but I thought that was a Puppet output telling me to read more about the error, I got really confused! Once I looked at puppet.repo it was immediately obvious! Thanks On Sunday, 25 November 2012 21:45:59 UTC, Steven wrote: > > > T

Re: [Puppet Users] Do you want a Puppet Conference in Berlin, Germany

2012-11-25 Thread Romain Pelisse
Great idea ! And I love to support by giving a talk ! Le 25 nov. 2012 03:38, "Oliver Schad" < puppet.oliver.sc...@automatic-server.com> a écrit : On Mon, 19 Nov 2012 09:02:27 +0100 Martin Alfke wrote: > I am thinking about run... Great idea. > Are there any people on this list from nearby? Ai

[Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Dont worry about my error! I found it. Eventually! I was following this tutorial: http://www.how2centos.com/centos-6-puppet-install/ And somehow, during some copying and pasting the [puppetlabs] repo text, the line "Read more http://www.how2centos.com/centos-6-puppet-install/#ixzz2Cgm74wkh"; en

[Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Dont worry about my error! I found it. Eventually! I was following this tutorial: And somehow, during some copying and pasting the [puppetlabs] repo text, the line "Read more http://www.how2centos.com/centos-6-puppet-install/#ixzz2Cgm74wkh"; ended up in my puppet.repo file and was throwing thi

RE: [Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Steven Nemetz
The error say that on line 8 of file /etc/yum.repos.d/puppet.repo there is something that it cannot interpret. Usually some type of syntax error, but it could be something else. Your first step is to look at that file on the host that is getting the error and see what is there. If it is not ob

Re: [Puppet Users] Best practices on puppet installation

2012-11-25 Thread Ugo Bellavance
On Friday, November 23, 2012 1:00:54 PM UTC-5, Walter Heck wrote: > > On Fri, Nov 23, 2012 at 3:46 PM, Ugo Bellavance > > wrote: > > But will I need to put all my agents to 3.0 as well? > You'll be better off if you switch now, since the 2.x releases are in > bugfix-only state. > > > On Thur

[Puppet Users] Puppet agent on Windows

2012-11-25 Thread Ugo Bellavance
Hi, What are the requirements to have puppet agents on windows servers? I have 2003 R2 and 2008 R2 servers, 32 and 64- bit, Puppetmaster 2.6. What are the types that can be used on Windows? Is it production-ready? Thanks, Ugo -- You received this message because you are subscribed to the Go

[Puppet Users] Re: Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7

2012-11-25 Thread Phips
On Tuesday, October 2, 2012 12:18:46 AM UTC+1, Forrie wrote: > > There's a problem installing puppet on Solaris 10 -- in this situation, we > aren't really doing anything with puppet there. Hi, I see you're using CSW Ruby anyway - I've just released CSWpuppet3, should be available in a day or

[Puppet Users] Re: Puppet3 CSW packages for Solaris

2012-11-25 Thread Phips
OK, I've done some testing, and had some feedback from a third party too - they're good. So I've released to the main CSW catalog[1]. Should imagine they'll be available in a day or two. --Mark [1] https://www.opencsw.org/get-it/packages/ On Tuesday, November 20, 2012 5:14:13 PM UTC, Phips wr

Re: [Puppet Users] Re: Are these the same?

2012-11-25 Thread Ugo Bellavance
http://docs.puppetlabs.com/references/latest/type.html#stage On Sunday, November 25, 2012 4:05:40 PM UTC-5, Ugo Bellavance wrote: > > I read about that in the puppet 2.7 cookbook book that I bought a few days > ago. > > On Sunday, November 25, 2012 3:26:41 PM UTC-5, Smashed wrote: >> >> Stages? W

Re: [Puppet Users] Re: Are these the same?

2012-11-25 Thread Ugo Bellavance
I read about that in the puppet 2.7 cookbook book that I bought a few days ago. On Sunday, November 25, 2012 3:26:41 PM UTC-5, Smashed wrote: > > Stages? Would you mind elaborating? > > Sent from my iPhone > > On Nov 25, 2012, at 11:37 AM, Ugo Bellavance > > wrote: > > I'm not a puppet expert, b

[Puppet Users] Hiera dump

2012-11-25 Thread Olivier Bazoud
Hello, I would like to dump into a single file (via an erb template for example) all keys and values from a hiera hierarchy. My use case is to share this generated file with applications configuration (java, php, nodejs, ...). How can do this? Is this the right way to do it? Is there a way to g

[Puppet Users] Re: Do you want a Puppet Conference in Berlin, Germany

2012-11-25 Thread Matthias Viehweger
Hi! Am Montag, 19. November 2012 09:02:35 UTC+1 schrieb Martin Alfke: > > I am thinking about running a Puppet Conf in Berlin/Germany. > Awesome idea, I was looking for something like that here. Are there any people on this list from nearby? > I live in Berlin. > Do you want to support (ta

Re: [Puppet Users] Re: Are these the same?

2012-11-25 Thread Mark
Stages? Would you mind elaborating? Sent from my iPhone On Nov 25, 2012, at 11:37 AM, Ugo Bellavance wrote: > I'm not a puppet expert, but your situation would probably fit more with an > usage of stages. > > It would allow you to define stages and order or those. > > On Sunday, November 25,

[Puppet Users] Help writing a custom fact

2012-11-25 Thread frap
I'm trying to write a custom fact for Puppet, but I have next to no Ruby experience. I think what I'm trying to do is straightforward, but because of Facter's key => value pairs model, it's kind of difficult. Each hosts I want the fact for has websites in /var/www/html/ - I want to be able to d

[Puppet Users] Re: Are these the same?

2012-11-25 Thread Ugo Bellavance
I'm not a puppet expert, but your situation would probably fit more with an usage of stages. It would allow you to define stages and order or those. On Sunday, November 25, 2012 11:56:40 AM UTC-5, Smashed wrote: > > Trying to figure out if these would behave the same or not? > > Example 1: > -

Re: [Puppet Users] Module organization

2012-11-25 Thread Ryan Coleman
On Sun, Nov 25, 2012 at 8:50 AM, Mark wrote: > So you would recommend, when possible, to shove everything into one > file? Say there is a lengthy and/or complex implementation… are there any > general best practices to adhere to? > Well no, don't just shove everything in one file. My advice is t

Re: [Puppet Users] delete home directory rescurively

2012-11-25 Thread Moses Mendoza
On Sat, Nov 24, 2012 at 8:28 AM, bluethundr wrote: > Is there a way using puppet to delete the home directories recursively of > employees who have left the company? Are your users managed by Puppet? If so, perhaps check out `managehome` of the user type. http://docs.puppetlabs.com/references/lat

[Puppet Users] puppet.conf questiosn

2012-11-25 Thread Ugo Bellavance
Hi, I have 2 questions regarding puppet.conf file: 1. What should I do to use puppet to deploy puppet.conf files? I have only one puppetmaster, but I was wondering if I should push the same file on all my hosts (including the puppetmaster) or should I have a file specifically for

Re: [Puppet Users] Module organization

2012-11-25 Thread Ramin K
On 11/25/2012 8:50 AM, Mark wrote: So you would recommend, when possible, to shove everything into one file? Say there is a lengthy and/or complex implementation… are there any general best practices to adhere to? Also as a general guideline should one try and include all dependencies at the mod

[Puppet Users] Are these the same?

2012-11-25 Thread Mark
Trying to figure out if these would behave the same or not? Example 1: - class Foo { require Bar someresource { 'baz': …. # This depends on A,B and C being already completed } } class Bar { include A include B include C } Example 2: class F

Re: [Puppet Users] Module organization

2012-11-25 Thread Mark
So you would recommend, when possible, to shove everything into one file? Say there is a lengthy and/or complex implementation… are there any general best practices to adhere to? Also as a general guideline should one try and include all dependencies at the module level or at the node level? Fo

[Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Does anyone know what this error means, I get this nearly all the time when trying above and other classes out, this is where I am stuck adding a repo... Error: /Stage[main]/Yum/Yumrepo[virtualmin]: Could not evaluate: > /etc/yum.repos.d/puppet.repo:8: Can't parse 'Read more: > http://www.how2

[Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Does anyone know what this error means, I get this nearly all the time when trying above and other classes out, this is where I am stuck adding a repo... Error: /Stage[main]/Yum/Yumrepo[virtualmin]: Could not evaluate: > /etc/yum.repos.d/puppet.repo:8: Can't parse 'Read more: > http://www.how2

[Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Laurence Cope
Can puppet yumrepo handle a private repo that requires http auth username and password? The virtualmin repo I am using requires a username and password to login, so the URL would be:- http://username:passw...@software.virtualmin.com/gpl/rhel/6.3/i386/ Full class:- class yum > { > yumrepo { "v

Re: [Puppet Users] Do you want a Puppet Conference in Berlin, Germany

2012-11-25 Thread Sebastian Schulze
> I am thinking about running a Puppet Conf in Berlin/Germany. \o/ > Are there any people on this list from nearby? I've got two clients in Berlin at the moment, so yep. Though like Geoff I'm living in Cologne - so maybe we should get some DevOps action started over there too. :) > Do you want

Re: [Puppet Users] Do you want a Puppet Conference in Berlin, Germany

2012-11-25 Thread Martin Alfke
On 19.11.2012, at 18:18, Dawn Foster wrote: > On Mon, Nov 19, 2012 at 12:09 AM, Martin Alfke wrote: >> >> On 19.11.2012, at 09:06, Geoff Galitz wrote: >> >>> Hi. >>> >>> I'd be in (with enough notice, of course). I'd be even more in if the >>> conference was on the other side of Germany nea

Re: [Puppet Users] variable not replace when come from hiera

2012-11-25 Thread Craig Dunn
On 23/11/2012 23:03, fpommier wrote: Hi, I use puppet 2.7.16 i try to use hiera to store file data yaml file : apt: '/etc/apt/preferences.d': ensure: directory recurse: true source: "puppet:///$environment/$module_name/preferences.d" Try this with; source: "puppet:///%