[Puppet Users] Cross-module dependencies

2011-05-22 Thread Matthew Macdonald-Wallace
Hi all, I've got modules for NGINX and PHP-FPM which are working fine, the issue I'm running into is that quite often NGinx will start before php-fpm is even installed. I'm wondering if there's a way in the nginx module to "Require" the PHP-FPM service is started as a dependency of the nginx serv

Re: [Puppet Users] Distributing user configs from a central host?

2011-02-19 Thread Matthew Macdonald-Wallace
On Thu, 2011-02-17 at 06:37 -0800, Robin Lee Powell wrote: > I have a central server, that happens to be the puppetmaster, that > has various users on it. I would like to copy out their information > (name, uid, password, .bashrc, etc) to all my other hosts, but I > want to let the users change th

Re: [Puppet Users] Migrating from 0.25.4 to 2.6

2011-02-03 Thread Matthew Macdonald-Wallace
9 AM, Matthew Macdonald-Wallace > wrote: >> I'm also wondering what impact the move would have on our puppet >> manifests.  Are there any "gotcha's" that I need to be aware of that >> could prevent my current manifests working under 2.6.2 or 0.24.5? > >

[Puppet Users] Migrating from 0.25.4 to 2.6

2011-02-02 Thread Matthew Macdonald-Wallace
Hi all, As part of a new project, we're thinking about moving from CentOS to Debian. One of the few concerns I have about doing this is that we currently run Puppet 0.25.4 on all our systems, yet the available versions for Debian appear to be 0.24.5 or 2.6.2 (backports). If I keep my puppetmaste

[Puppet Users] Testing custom types

2011-01-21 Thread Matthew Macdonald-Wallace
Hi all, I thought I'd put this in a different thread to avoid confusion. Is there a way to test custom types/providers without deploying them to a node? I'm thinking of something along the lines of "puppet --parseonly" or similar. How do others test what they've written, or do you just deploy t

[Puppet Users] Problems with custom types...

2011-01-21 Thread Matthew Macdonald-Wallace
Hi all, I'm using puppet 0.25.4 on Ubuntu and I'm having real issues with custom types. I've created a type, placed it into lib/puppet/lib/type in my module, assigned the module to the node and yet even though everything else in the node is actioned, neither my custom facts (in lib/facter/) or my

Re: [Puppet Users] RFC: Puppet Docs

2010-12-21 Thread Matthew Macdonald-Wallace
On Tue, 2010-12-21 at 09:43 +0100, Felix Frank wrote: > On 12/20/2010 06:38 PM, James Turnbull wrote: > > We're now discussing whether it is a good idea to separate our > > documentation from the Puppet Core. What we're proposing is to move all > > the content from Puppet Docs (barring MCollective

[Puppet Users] Yum Repos - Best Practice?

2010-12-20 Thread Matthew Macdonald-Wallace
Hi all, I'm wondering how other people mange yum repositories using the yumrepo type. At the moment, we have a class called "repos" which has all of our repos defined in it. This class is included in our 'base' class which sets up things common to all servers such as puppet, mcollective, nrpe et

Re: [Puppet Users] Appending to Variables in a global context

2010-12-19 Thread Matthew Macdonald-Wallace
On Sun, 2010-12-19 at 04:40 -0600, Spenser Gilliland wrote: > Matthew, > > I'm a bit confused on your code, how does an instance get added to the db? Yeah, that's probably my fault... :D My thought was that if you have a known path to the redmine instances you could create a ruby class which it

Re: [Puppet Users] Appending to Variables in a global context

2010-12-19 Thread Matthew Macdonald-Wallace
On Sun, 2010-12-19 at 01:51 -0600, Spenser Gilliland wrote: > Yeap, I'm seeing that it doesn't exist yet either. I'm thinking maybe > I can use exported resources or maybe just an exec that increments a > counter on the host. Either way it's not very pretty. My use case is > as follows: > > In

Re: [Puppet Users] audit=>content

2010-12-02 Thread Matthew Macdonald-Wallace
On Fri, 2010-12-03 at 06:13 +0200, Paul Johnson wrote: > Hi All, > > sorry if this was discussed before but I didn't find any solution for > my problem. > > Test site.pp consists of 1 line: > > file { "/tmp/bar": audit => content } exec { '/usr/bin/true': > refreshonly => true, subscribe => File

Re: [Puppet Users] audit=>content

2010-12-02 Thread Matthew Macdonald-Wallace
On Fri, 2010-12-03 at 06:13 +0200, Paul Johnson wrote: > Hi All, > > sorry if this was discussed before but I didn't find any solution for > my problem. > > Test site.pp consists of 1 line: > > file { "/tmp/bar": audit => content } exec { '/usr/bin/true': > refreshonly => true, subscribe => File

Re: [Puppet Users] Using custom facts in Puppet

2010-11-16 Thread Matthew Macdonald-Wallace
On Tue, 2010-11-16 at 07:33 -0800, JWBoerma wrote: > Right now i am at a loss, since i cannot see what I'm doing wrong > Does anyone have any experience with this? > > thanx in advance. > Can you send the output from the following command: puppetd --test --verbose --no-daemonize And also the

[Puppet Users] Pre-auth of nodes?

2010-11-14 Thread Matthew Macdonald-Wallace
Hi all, I'm trying to work out the best way to ensure that my systems run puppet at first boot without having to run puppetca --sign or have wildcards in my auth file. All nodes are stored in an external database so what I want to tell puppet is "if it's in the database, authenticate it, othwis

Re: [Puppet Users] Accessing Facter in other languages than Ruby?

2010-10-24 Thread Matthew Macdonald-Wallace
On Sun, 2010-10-24 at 00:44 -0700, Yushu Yao wrote: > Any reason you can't use facter the command line? > E.g. call in python commands.getstatusoutput("facter") Because it's a dirty hack? ;) We've inherited a system where loads of stuff that could be done with shared libraries in various language

Re: [Puppet Users] Pulling in a Hash from an external data source?

2010-10-24 Thread Matthew Macdonald-Wallace
On Fri, 2010-10-22 at 14:57 -0700, Matt Wise wrote: > Agreed... I use extlookup for our external arrays — but I cannot use it for > hash's. Hashes are sometimes the only sane way to go, so I'm hoping to see > more advanced hash support soon. Really we have a case where we're going to > be pullin

Re: [Puppet Users] Accessing Facter in other languages than Ruby?

2010-10-24 Thread Matthew Macdonald-Wallace
On Fri, 2010-10-22 at 12:22 -0400, Darren Chamberlain wrote: > * Richard Crowley [2010/10/22 08:57]: > > > We're writing a few scripts at the moment that could really make > > > use of Facter, however the vast majority of them team (including > > > my self!) are not proficient in Ruby, however the

Re: [Puppet Users] Accessing Facter in other languages than Ruby?

2010-10-24 Thread Matthew Macdonald-Wallace
On Fri, 2010-10-22 at 08:54 -0700, Nigel Kersten wrote: > > > On Fri, Oct 22, 2010 at 8:41 AM, Matt Wallace > wrote: > Hi all, > > We're writing a few scripts at the moment that could really > make use of > Facter, however the vast majority of them team (

[Puppet Users] Accessing the puppet configuration settings from an external script?

2010-10-20 Thread Matthew Macdonald-Wallace
Hi all, I'm working on a ext-node script that will use oauth to authenticate against the node database and I'm wondering if it is possible to read the puppet.conf file easily in this script so I can place the oauth key/secret into this file (and basically avoid maintaining my own config file!) Is

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Matthew Macdonald-Wallace
On Thu, 2010-10-14 at 23:47 +1300, Michal Ludvig wrote: > Hi guys, > > I'm installing Puppet on RHEL5 systems using KickStart but struggle with > the first boot. As Stephen says, use cobbler (we do as well!) and put it into your kickstart. Here's ours: == sample.ks

Re: [Puppet Users] for each in puppet templates

2010-09-06 Thread Matthew Macdonald-Wallace
Doh! I knew it would be something obvious. Thanks M. On 6 Sep 2010 20:55, "Thomas Bellman" wrote: li...@truthisfreedom.org.uk wrote: > <% mysql_repl_dbs.split[','].each do | dbname | -%> > replicat... Function calls in Ruby use round parenthesis or none at all, not square parenthesis. Square

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
On 2 September 2010 14:14, R.I.Pienaar wrote: > not sure where would be appropriate, I just got that from the facter code - > looked what it does for --puppet :) Doh! M. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group,

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
On 2 September 2010 13:52, R.I.Pienaar wrote: > > add around here: > > ENV['FACTERLIB'] = "/var/lib/puppet/lib/facter:/var/lib/puppet/facts" > > substitute with wherever your pluginsync is putting the facts Works a treat. (as always!) Thanks for the heads-up. How do I get this into the puppet/f

[Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
Hi all, I'm trying to write a ruby script to setup MySQL replication base on facts that we can distribute at runtime. I have two facts(mysql_master and mysql_repl_dbs) that show up when I run facter --puppet, however they do not appear to be imported in the following script:

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Matthew Macdonald-Wallace
On Wed, 2010-08-11 at 14:49 -0400, Marc Zampetti wrote: > Thanks all for the suggestions so far. A little more info to make it > clear what I'm trying to do. > > Basically, I don't want to stop Puppet from running and managing the > rest of the system, I just don't want it changing the state of th

[Puppet Users] Help with setting facts for MySQL replication

2010-07-27 Thread Matthew Macdonald-Wallace
's looking increasingly unlikely that will work. Can anyone share how they configure MySQL for this kind of thing using puppet given that multiple servers may be replicating different databases and all servers require a unique ID? Thanks in advance, Matt -- Matthew Macdonald-Wallace li...@truthi

Re: [Puppet Users] Deploying Splunk using Puppet

2010-07-13 Thread Matthew Macdonald-Wallace
1:23, Matthew Macdonald-Wallace > wrote: >> >> We're looking at deploying Splunk using puppet - can anyone give any >> guidance on the best way to do this? >> >> We need to setup light-forwarders and an indexing service via puppet >> manifests however

[Puppet Users] Deploying Splunk using Puppet

2010-07-13 Thread Matthew Macdonald-Wallace
Hi all, We're looking at deploying Splunk using puppet - can anyone give any guidance on the best way to do this? We need to setup light-forwarders and an indexing service via puppet manifests however it looks like we're going to have to maintain a custom yum repo - how do other people do it? Ki

Re: [Puppet Users] Managing RPM Repositories

2010-06-02 Thread Matthew Macdonald-Wallace
On Wed, 2010-06-02 at 10:45 -0700, Patrick wrote: > > On Jun 2, 2010, at 10:42 AM, Patrick wrote: > > > > > On Jun 2, 2010, at 7:11 AM, Matt Wallace wrote: > > > > > Hi all, > > > > > > I'm trying to write a module to manage yum repositories but before > > > I > > > re-invent the wheel I was w

Re: [Puppet Users] Checking for files on the client?

2010-05-03 Thread Matthew Macdonald-Wallace
On Mon, 2010-05-03 at 07:23 +0100, Matthew Macdonald-Wallace wrote: > Hi all, > > I'm looking for a way to run an exec statement if a file does not exist > on the server is this possible? I've been thinking about this some more as I've been developing this module fo

[Puppet Users] Simple issue with templates.

2010-05-03 Thread Matthew Macdonald-Wallace
Hi all, My brain is now officially dead! I have a series of modules that have a tree layout as documented in the "best practice" guide. One of the directories I have is "templates" and in this directory I have placed a template.erb file, however no matter how I refer to the path in my init.pp, I

[Puppet Users] Checking for files on the client?

2010-05-02 Thread Matthew Macdonald-Wallace
Hi all, I'm looking for a way to run an exec statement if a file does not exist on the server is this possible? Example code: define yumrepo(srcpkg = "",name = "") if(!exists("/etc/yum.repos.d/${name}.repo")) { if($srcpkg != "") {

[Puppet Users] Ukuug 2010

2010-03-18 Thread Matthew Macdonald-Wallace
So who else is going to this next week? Anyone want to meet up? Matt. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-use

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Matthew Macdonald-Wallace
Um, yeah, so that's completely different to what I've got... :( I'll get a copy of that script and install it now. On 5 March 2010 10:38, Matt wrote: > On 5 March 2010 10:11, Matthew Macdonald-Wallace > wrote: >> >> I've had a thought about this overnight

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Matthew Macdonald-Wallace
hanges. Thanks, M. On 4 March 2010 21:33, Matthew Macdonald-Wallace wrote: > Yup, it's definitely there and it's definitely got the right name. > > :( > > M > > On 4 March 2010 21:09, Andrew Dickson wrote: >> are you sure foreman-report.rb is in your lib direc

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-04 Thread Matthew Macdonald-Wallace
bout not being able to find a report named foreman.  If you > copied it into a version specific location, and then updated your > puppet gem to a new version, puppet might not be able to find the > report. > > -drew > > On Thu, Mar 4, 2010 at 6:09 AM, Matthew Macdonald-Wallace &

Re: [Puppet Users] Puppet 0.24.8 RPM (0.25.4 client not backwards compatible)

2010-03-04 Thread Matthew Macdonald-Wallace
On 4 March 2010 20:19, James Turnbull wrote: >> I am concerned that Epel jumped a major version that enforced so many >> major changes, but I guess that's our fault for trusting that things >> would stay the same! :P >> > > I'll let the EPEL guys respond here but they only increment releases > aft

Re: [Puppet Users] Puppet 0.24.8 RPM (0.25.4 client not backwards compatible)

2010-03-04 Thread Matthew Macdonald-Wallace
SSL works fine, I'm just having real issues with Foreman reports at the moment. The ruby file exists, the rack server is running, foreman works fine (apart from reporting) and so does puppet but the puppet reporting into Foreman is broken and it appears to be an issues with Puppet rather than Fore

[Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-04 Thread Matthew Macdonald-Wallace
Hi all, After troubleshooting my foreman installation on the Foreman mailing list (thanks Ohad!) I've come to the conclusion that the reason why reports aren't being generated is that since I upgraded puppet master from 0.24.x to 0.25.4, the "foreman" report is not running correctly (if at all!).

[Puppet Users] Re: new release of puppetsurvey

2009-11-17 Thread Matthew Macdonald-Wallace
;.yaml'); Kind regards, Matt 2009/11/17 Matthew Macdonald-Wallace : > Philip wrote: >> Thank you for the clue with the max integer Size. Yes i develop on a >> 64bit System and had no problems converting. Will test it on 32Bit >> Systems and provide a Patch. > > Hi, &g

[Puppet Users] Re: new release of puppetsurvey

2009-11-17 Thread Matthew Macdonald-Wallace
Philip wrote: > Thank you for the clue with the max integer Size. Yes i develop on a > 64bit System and had no problems converting. Will test it on 32Bit > Systems and provide a Patch. Hi, If you need someone to test the patch, let me know as at the moment puppetsurvey is picking up all the node