[Puppet Users] Re: Setting puppet up to use a dns alias as a servername

2018-05-02 Thread Gavin Williams
'dns_alt_names' is the config you're looking for... https://puppet.com/docs/puppetserver/5.1/scaling_puppet_server.html#creating-and-configuring-compile-masters provides more info on running multiple Puppet servers. HTH Gav On Wednesday, 2 May 2018 11:02:16 UTC+1, buoyant_puppy wrote: > > Ca

[Puppet Users] Re: Announce: Puppet Platform 5.3.4 is now available

2018-02-06 Thread Gavin Williams
Just for community awareness, there appears to be a breaking interaction between this latest Puppet release and rspec-puppet. Tests are failing with 'no implicit conversion of nil into String'. Already raised on PL tracker as PUP-8418 [1], and I've just raised against rspec-puppet [2]. So fo

Re: [Puppet Users] rspec-puppet with custom types

2017-10-24 Thread Gavin Williams
Michael Is the logrotate module in your modules metadata.json dependency list? I've had issues in the past with custom datatypes, and that seemed to fix it for me... Gav On Tuesday, 24 October 2017 15:15:14 UTC+1, Henrik Lindberg wrote: > > On 23/10/17 22:29, Michael Watters wrote: > > Hello

[Puppet Users] Re: parameters and hiera

2017-07-10 Thread Gavin Williams
This is exactly how we use Foreman & Hiera in our installation... The key thing to set is when configuring the Puppet classes in Foreman, the 'Use Puppet Default' or 'Override' box needs to be checked. This means that if no values are stored in Foreman, then no value will be provided to Puppet

[Puppet Users] Re: Which version of Puppet am I using?

2017-05-04 Thread Gavin Williams
Sans I wouldn't be surprised if that version of the 'puppetdb' pkg has a dependency on 'puppetagent', which will install Puppet 4.x. See https://docs.puppet.com/puppetdb/#versions for more info on PuppetDB + Puppet support... So if you *really *want to use Puppet 3.x, you could try and install

[Puppet Users] Re: r10k, git and .gitignore

2016-12-14 Thread Gavin Williams
Robert Whilst not directly what you're trying to achieve, we do something similar to distribute Java etc by having a separate Puppet fileserver mount called 'software'. Then anything that needs to consume those files can just use that mount point... Cheers Gavin On Wednesday, 14 December 2

Re: [Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-11 Thread Gavin Williams
; > > not creating the node in Foreman before the first Puppet run. > Any idea how to work around this? > And why it is happening sometimes, not every first run? > > Thank you! > > > On Thursday, November 10, 2016 at 9:30:51 PM UTC+2, Gavin Williams wrote: >> >>

Re: [Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-10 Thread Gavin Williams
What Rob said... This error is fairly typical if you're using something like Foreman as an ENC, and not creating the node in Foreman before the first Puppet run. Basically, whatever your ENC is needs to "know" about the node before it first dials in... HTH Gav On Thursday, 10 November 201

Re: [Puppet Users] Re: Help unit testing profile with dependency on ntp 5.0 module (module data)

2016-11-02 Thread Gavin Williams
Stephen If you're already using R10k or Librarian-Puppet, as indicated by the Puppetfile, then it should be possible to simplify that... For example, my .fixtures.yml looks like: -- fixtures: symlinks: [module_name]: "#{source_dir}" Puppetfile: #!/usr/bin/env ruby forge 'http://forge.p

[Puppet Users] Re: how to ensure LVM created before installing postgres

2016-08-16 Thread Gavin Williams
} >> >> Got this >> Error: Could not retrieve catalog from remote server: Error 400 on >> SERVER: Evaluation Error: Error while evaluating a Resource Statement, >> Syntax error at '{' at >> /etc/puppetlabs/code/environments/testing/site/profi

[Puppet Users] Re: how to ensure LVM created before installing postgres

2016-08-16 Thread Gavin Williams
Alex You're looking for 'Requires' - See https://docs.puppet.com/puppet/latest/reference/lang_relationships.html Basically, you can add "requires => Logical_Volume['lv_pgdata']" to the 'postgresql::server' class, and if the Logical_Volume resource fails for whatever reason, then the 'postgresq

[Puppet Users] Re: Hiera Lookups Fail with variables

2016-07-19 Thread Gavin Williams
John Yes, the 'common1' and 'common2' tiers are being ignored because 'calling_class' doesn't expand to anything when running on the command line. Try running hiera -d 'dhcpd::package_name' environment=production calling_class=*x* replacing x with the corresponding class_name you'd expect to be

Re: [Puppet Users] Hiera Lookups Fail with variables

2016-07-19 Thread Gavin Williams
John I'm pretty sure when you're running hiera on the command line, you need to 'provide' the fact values. See https://docs.puppet.com/hiera/3.2/command_line.html#fact-sources HTH Gav On Tuesday, 19 July 2016 18:14:55 UTC+1, John Baird wrote: > > All files should be readable as they are eithe

[Puppet Users] Changing parameters for default/global classes inside a role

2016-07-17 Thread Gavin Williams
David If you can expose the role as a top-level fact, then you can use that to drive the hiera hierarchy. You can then override the required class params in a role specific yaml file. HTH Gav -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] Re: control-repo how to use the profile setup

2016-07-12 Thread Gavin Williams
Alex I've done something similar for managing Oracle Java installation... I've created a 'base::software::java' class [1] within a site 'base' module, but you could equally do this in your profile I guess... As you can see from the class, if the '$source' param starts with 'puppet', then it'

[Puppet Users] Re: Run Puppet Class only once

2016-06-07 Thread Gavin Williams
Christoph I've done something similar by wrapping the class on a conditional, such as a 'class_ran=true' fact... That way, the class only gets included in the catalogue if 'class_ran=false'... A bit crude, but it works... Gav On Tuesday, 7 June 2016 11:13:33 UTC+1, Christoph wrote: > > Hi

Re: [Puppet Users] Issues with Data in Modules and nested classes and scope...

2016-05-16 Thread Gavin Williams
8fec1767#file-microservice-config_snippet-pp [2] https://gist.github.com/fatmcgav/48d30a8a9b29d342035120528fec1767#file-snippet_creation-pp On Monday, 16 May 2016 13:15:32 UTC+1, Gavin Williams wrote: > > Henrik > > Cheers for the quick response. I haven't tried this scenario on 4.x

Re: [Puppet Users] Issues with Data in Modules and nested classes and scope...

2016-05-16 Thread Gavin Williams
defined by module_a? Is that now namespaced to 'module_b'? Ergo Puppet would never be able to get the key value from module_a DIM? I think that explains the issue I'm seeing a bit better... Cheers Gavin On Monday, 16 May 2016 12:48:36 UTC+1, Henrik Lindberg wrote: &

[Puppet Users] Issues with Data in Modules and nested classes and scope...

2016-05-16 Thread Gavin Williams
Morning all... I've hit a bit of an issue with our usage of Data-In-Modules (DIM) provided by ripienaar/module_data with Puppet 3.7.x and was wondering what the best option might be... TL;DR: How can I change the DIM Hiera lookup scope to use the correct module? Currently, we have the foll

[Puppet Users] Re: Making a "role" fact work

2016-01-28 Thread Gavin Williams
Gareth I've been working through the same issue internally here for a new Cloud based platform, and came up with the solution of pre-loading the machine with the role at the point the machine is provisioned. Then when it first checks in with Puppet it's already for the fact present... Might

[Puppet Users] Re: JBOSS module installation and Configuration through puppet

2015-10-28 Thread Gavin Williams
Raj Take a look at my Puppet-Glassfish[1] module, which should give you a good idea of where to start :) Cheers Gav [1] https://github.com/fatmcgav/fatmcgav-glassfish On Wednesday, 28 October 2015 16:58:01 UTC, raj kumar` wrote: > > Hi , > > first of all thanks to all group members for your v

[Puppet Users] Re: Workflow to replicate production environment locally using vagrant with puppetmaster

2015-10-20 Thread Gavin Williams
Jeremy I've done the same for our developers here, and rather than pointing them at the Prod Puppetmaster, they use Vagrant to stand up a local Puppetmaster in the same way the Live master is deployed. They can then stand-up any number of local machines against their local Puppetmaster without

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Gavin Williams
Ah, re-reading your post, it looks like you're looking to enforce declaration rather than ordering... You are correct in that autorequire only ensures ordering, not declaration. Unfortunately I can't help with enforcing declaration. Gav -- You received this message because you are subscri

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Gavin Williams
Martin Autorequire is what you need... Take a look at my glassfish module [1] for an example that should do what you're after... Cheers Gav [1] https://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/lib/puppet/type/jdbcresource.rb#L100-103 -- You received this message because you

[Puppet Users] rspec testing; how to test a subclass that requires another class

2015-05-02 Thread Gavin Williams
Trey You can use "let(:pre_condition)" to include any dependencies when testing... E.g. https://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/spec/classes/install_spec.rb#L14 Gav -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To uns

[Puppet Users] Re: Issues with PL RabbitMQ module

2015-04-21 Thread Gavin Williams
UTC+1, Gavin Williams wrote: > > Morning all > > I'm currently trying to set-up RabbitMQ using the PL module from GitHub > Master. > > However the 'puppet apply' run is failing with: > >> Error: >> /Stage[main]/Profiles::Core::Rabbitmq/Rabbitmq

[Puppet Users] Issues with PL RabbitMQ module

2015-04-21 Thread Gavin Williams
Morning all I'm currently trying to set-up RabbitMQ using the PL module from GitHub Master. However the 'puppet apply' run is failing with: > Error: > /Stage[main]/Profiles::Core::Rabbitmq/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]: > > Could not evaluate: No ability to determine if rabbi

[Puppet Users] Re: create_resources for /etc/yum.repos.d/ and getting along with purge

2015-04-17 Thread Gavin Williams
And the link: https://docs.puppetlabs.com/references/latest/type.html#resources Gav On Friday, 17 April 2015 09:41:03 UTC+1, Gavin Williams wrote: > > Chris > > Take a look at the 'resources'[1] type, which you can use to purge > unmanaged resources of a specific

[Puppet Users] Re: create_resources for /etc/yum.repos.d/ and getting along with purge

2015-04-17 Thread Gavin Williams
Chris Take a look at the 'resources'[1] type, which you can use to purge unmanaged resources of a specific type. So rather than purging the entire directory using a file resource, you just purge the yum-repo files themselves... Something like: resources {'yumrepo': purge => true } should

Re: [Puppet Users] Re: custom type/provider how to validate parameters are configured together

2015-03-13 Thread Gavin Williams
t; to write puppet module tests. Thanks :) > > > On Fri, Mar 13, 2015 at 9:31 AM, Gavin Williams > wrote: > >> Stanley >> >> Take a look at >> https://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/lib/puppet/type/authrealm.rb#L96-L99 >> >&g

[Puppet Users] Re: custom type/provider how to validate parameters are configured together

2015-03-13 Thread Gavin Williams
Stanley Take a look at https://github.com/fatmcgav/fatmcgav-glassfish/blob/develop/lib/puppet/type/authrealm.rb#L96-L99 for an example of a seperate validate block... HTH Gav On Friday, 13 March 2015 13:25:14 UTC, Stanley Karunditu wrote: > > building a custom type/provider and it has a set

Re: [Puppet Users] Access Catalog from validate block in custom type

2015-03-06 Thread Gavin Williams
; Trying to do this via the Glassfish CLI would fail. However it looks like I was trying to guard against a scenario that isn't going to happen, as the *resourceref.exists?* matches the resource created by *jmsresource*. So even if someone does provide the above resources, they wo

[Puppet Users] Access Catalog from validate block in custom type

2015-03-06 Thread Gavin Williams
Morning all I'm trying to add some validation to a new type I've written[1] for my Puppet-glassfish module[2]. As part of the validation, I need to access the current catalog to make sure that there's no another resources defined with the same *:name* and *:target *values. The reason behind t

[Puppet Users] Re: Module params.pp and parametrised variables...

2015-01-13 Thread Gavin Williams
/commit/172d87f9386699957fb409ab3ec913789227aaa5 Cheers again. Gav On Tuesday, 13 January 2015 14:46:40 UTC, jcbollinger wrote: > > > > On Monday, January 12, 2015 at 9:42:50 AM UTC-6, Gavin Williams wrote: >> >> John >> >> Cheers for the response. >> >

[Puppet Users] Re: Module params.pp and parametrised variables...

2015-01-12 Thread Gavin Williams
${glassfish::version} *value, but allow people to plug in an internal mirror URL, which likely won't have any variables in it. So when running with defaults, the above URL should be as per the test expectation... Cheers Gav On Monday, 12 January 2015 15:04:39 UTC, jcbollinger wrote: >

[Puppet Users] Module params.pp and parametrised variables...

2015-01-12 Thread Gavin Williams
Morning all I'm trying to add some functionality to my Puppet-Glassfish[1] module to support providing an alternative download mirror. I've made the initial code changes in caa445631d[2], however a couple of my tests are now failing[3]. I believe the issue is due to using the '$glassfish::ver

[Puppet Users] Re: Installing a specific OL6 Kernel version...

2014-12-16 Thread Gavin Williams
OK, after a bit more experimentation, I managed to find a combination that worked: # Need to install a new kernel version - GW 16/12/14 > package { 'kernel-2.6.32-220.4.2.el6': > ensure => present > } Cheers Gav On Tuesday, 16 December 2014 15:20:18 UTC, Gavin William

[Puppet Users] Installing a specific OL6 Kernel version...

2014-12-16 Thread Gavin Williams
Afternoon all A requirement has arisen for using Puppet to install a specific version of the kernel package on our Oracle Linux 6 boxes to fix a firmware issue... I thought it should be as simple as defining a package resource with the specific version set, ala: > # Need to install a new ker

[Puppet Users] Re: Hiera has stopped working correctly!

2014-12-16 Thread Gavin Williams
Guy I think you need to pass in your environment to hiera using '::environment' rather than 'environment', as your hiera.yaml is looking for '::environment'... Similar issue/resolution here: https://ask.puppetlabs.com/question/3635/how-do-i-specify-environment-to-hiera-on-the-command-line/?an

[Puppet Users] Re: rspec-puppet failures when calling none standard types

2014-11-21 Thread Gavin Williams
You need to add an 'operatingsystemmajrelease' fact, as you're using it in a case statement in params.pp[1]. The error you're getting points you at the cause :) Gav [1] https://github.com/kemra102/puppet-zabbix/blob/master/manifests/params.pp#L137-L144 On Friday, 21 November 2014 19:15:30 UTC

[Puppet Users] Re: Puppet Nodes

2014-11-11 Thread Gavin Williams
If you want something a bit smarter, you could look at The Foreman [1]. Cheers Gavin [1] http://theforeman.org/ On Monday, 10 November 2014 21:18:51 UTC, Dominic wrote: > > > OK Think I found my own answer >> > > > https://docs.puppetlabs.com/puppet/latest/reference/lang_node_definitions.html >

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

2014-10-29 Thread Gavin Williams
Sounds like The Foreman [1] might be a good option if you want to manage 'should', not 'is'... [1] http://theforeman.org/ On Wednesday, 29 October 2014 03:35:36 UTC, Robin Powell wrote: > > On Sun, Oct 26, 2014 at 06:09:08PM -0700, Garrett Honeycutt wrote: > > On 10/26/14 4:46 PM, Robin Lee Po

Re: [Puppet Users] Re: how to set up different groups on puppet open source

2014-10-20 Thread Gavin Williams
Craig Dunn's post[1] on Roles and Profiles is also well worth a read... Cheers Gav [1] http://www.craigdunn.org/2012/05/239/ On Monday, 20 October 2014 03:24:19 UTC+1, Trevor Vaughan wrote: > > This should give you everything that you need: > https://docs.puppetlabs.com/puppet/latest/reference

[Puppet Users] Re: Issue with rspec-puppet testing of roles/profiles module and class evaluation...

2014-09-25 Thread Gavin Williams
September 2014 14:42:26 UTC+1, Gavin Williams wrote: > > Afternoon all > > I'm currently trying to add some rspec testing to some of our internal > modules which are used in a roles/profiles style setup. > > Each of our products has got it's own module, which all pu

[Puppet Users] Issue with rspec-puppet testing of roles/profiles module and class evaluation...

2014-09-25 Thread Gavin Williams
Afternoon all I'm currently trying to add some rspec testing to some of our internal modules which are used in a roles/profiles style setup. Each of our products has got it's own module, which all pull in chunks of functionality from a base module. The issue I'm hitting is that when I try an

Re: [Puppet Users] Managing config files...

2014-07-21 Thread Gavin Williams
Ah, forgot about the parsed file stuff... Good call, think that could be a good fit for the jre.properties file :) Cheers Gavin On Monday, 21 July 2014 07:17:45 UTC+1, David Schmitt wrote: > > Hi > > On 2014-07-14 14:49, Gavin Williams wrote: > > As part of my work to crea

[Puppet Users] Managing config files...

2014-07-14 Thread Gavin Williams
Morning all As part of my work to create an Apache Karaf module[1] I need to manage a number of configuration files, and I'm wondering what the best way to go about it might be... A couple of examples of the config files that need managing can be found here[2]. I think the 2 provided examples

[Puppet Users] Puppet pulling Apache Karaf's strings...

2014-07-09 Thread Gavin Williams
Morning all I've started working on a project that requires Puppet to pull strings on Apache Karaf[1]. This module can be found here[2]. Currently the module supports installation of Karaf, base level configuration such as adding Karaf to $PATH, and creation of a init.d service using the wr

[Puppet Users] Re: How to handle java home in module?

2014-07-02 Thread Gavin Williams
ant package has been installed by this module. Will get the latest changes pushed shortly for comment. Cheers Gavin On Wednesday, 2 July 2014 14:09:50 UTC+1, jcbollinger wrote: > > > > On Wednesday, July 2, 2014 5:06:46 AM UTC-5, Gavin Williams wrote: >> >> Morning all &g

[Puppet Users] How to handle java home in module?

2014-07-02 Thread Gavin Williams
Morning all I'm currently working on a module[1] to support installation and configuration of Apache Karaf[2], a Java OSGi container... I've got most of the installation piece sorted, and am starting to work on the configuration side of things. Unfortunately I've hit a bit of a blocker which

Re: [Puppet Users] Type param validation & allowing for earlier catalogue resource creation...

2014-06-27 Thread Gavin Williams
spoil it with overzealous initialization time checks. > > Hope that makes sense, cheers, > Felix > > On 06/27/2014 04:54 PM, Gavin Williams wrote: > > Afternoon all, > > > > I've just hit an issue with my Puppet-Glassfish module, where I'm using >

[Puppet Users] Type param validation & allowing for earlier catalogue resource creation...

2014-06-27 Thread Gavin Williams
Afternoon all, I've just hit an issue with my Puppet-Glassfish module, where I'm using Type param validation to check for file existence on the client - typically on files that are also defined earlier in the catalogue, but have not yet been applied to the client. An example is [1], with the

Re: [Puppet Users] New module - Prefetch provider with @resource params...

2014-06-27 Thread Gavin Williams
er? > > If both are not the case, you may indeed find it impossible to perform > prefetching, because you cannot pass arguments from your manifest to the > agent at that level of granularity [1]. > > HTH, > Felix > > [1] https://github.com/puppetlabs/puppet/pull/

[Puppet Users] Re: New module - Prefetch provider with @resource params...

2014-06-27 Thread Gavin Williams
e to build custom types for Oracle > <https://github.com/hajee/oracle> and webLogic > <https://github.com/biemond/biemonds-orawls> > > Let me know how it goes. > > Regards, > > Bert > > Op vrijdag 27 juni 2014 13:14:37 UTC+2 schreef Gavin Williams: >> &g

[Puppet Users] New module - Prefetch provider with @resource params...

2014-06-27 Thread Gavin Williams
Morning All I'm starting to work on a new module[1] to support installation and configuration of Apache Karaf. I've got most of the ground-work laid down, and I'm now starting to work on types and providers to model the various Karaf resources that might need to be managed... The first one

[Puppet Users] Re: How to use "defined" type as requirement inside exec

2014-06-26 Thread Gavin Williams
Something like: require => Fille_template[$foo] > should do it... Gav On Thursday, 26 June 2014 06:49:55 UTC+1, Malintha Adikari wrote: > > Hi, > > I have defined type as follows > > > > > > > > > > > > > > *define fill_templates($location) {$fileName = > $name["filename"]

Re: [Puppet Users] Re: puppet forge module puppetlabs-puppetdb

2014-06-12 Thread Gavin Williams
You can do it through the Foreman UI. Select the node in question, and then hit the 'YAML' button under 'Properties' -> 'Details'. HTH Gav On Thursday, 12 June 2014 13:57:42 UTC+1, Ken Barber wrote: > > > Using the puppetdb and postgresql master branches from github and this > is > > all I

[Puppet Users] Re: How to Login to Foreman Dashboard

2014-06-10 Thread Gavin Williams
Monty The default Foreman username/password is admin/changeme. Also, you may be better off pointing Foreman queries at the Foreman users list... :) HTH Gav On Tuesday, 10 June 2014 09:00:03 UTC+1, Monty Araich wrote: > > I have installed Foreman Dashboard on CentOS 6.5 using Packages. > > I

Re: [Puppet Users] Breaking changes in Puppetlabs_spec_helper v0.5.0

2014-06-10 Thread Gavin Williams
Hunter Thanks for the updated gem. Will give it a go when I have a few mins :) Cheers Gav On Tuesday, 10 June 2014 00:05:40 UTC+1, Hunter Haugen wrote: > > Sorry about that; I was thinking of mocha as more of an extraneous > dependency rather than a feature. Turns out that the mock_with :mocha

[Puppet Users] Re: Ignore resource in provider if not defined?

2014-05-07 Thread Gavin Williams
dy for persisting. Regards Gavin [1] https://github.com/fatmcgav/puppet-glassfish/commit/ea702df4ec111c81b55a4b927191673faddbe270 On Wednesday, 7 May 2014 14:47:48 UTC+1, Gavin Williams wrote: > > Further to the below, it looks like I appear to be getting differing > behaviour in variou

[Puppet Users] Re: Ignore resource in provider if not defined?

2014-05-07 Thread Gavin Williams
parameter dashost(:dashost)' error. Any ideas if it's possible to have 'optional' params that aren't defined on all types that use a provider? Cheers Gavin [1] https://travis-ci.org/fatmcgav/puppet-glassfish/jobs/24564901 [2] https://travis-ci.org/fatmcgav/puppet-glas

[Puppet Users] Ignore resource in provider if not defined?

2014-05-06 Thread Gavin Williams
Afternoon all, I'm trying to update my Glassfish module [1] to support some additional functionality, such as clustering. I've done most of the code changes, and they all seem to work fine from a usage POV. However several of my tests [2] are failing with the following error: 1) Puppet::Ty

Re: [Puppet Users] Puppet and VMWare (API)

2014-04-25 Thread Gavin Williams
Take a look at Foreman [1] It's able to manage VSphere resources, create new vm's, manage tftpboot config, etc... Cheers Gav [1] http://www.theforeman.org/ On Thursday, 24 April 2014 22:53:14 UTC+1, Jakov Sosic wrote: > > On 04/24/2014 07:44 PM, Forrie wrote: > > I believe this question is di

Re: [Puppet Users] Autorequire based on resource property???

2014-02-07 Thread Gavin Williams
ot even sure if :name is the correct key, but I hope this brings the > idea across. > > HTH, > Felix > > On 02/07/2014 12:51 PM, Gavin Williams wrote: > > In other-words, if I want the /application/ resource type to > > auto-require the appropriate /domain/ reso

[Puppet Users] Autorequire based on resource property???

2014-02-07 Thread Gavin Williams
Morning all I'm trying to work out if it's possible to add auto-require logic to some of my Glassfish module[1] types. >From what I've read about *autorequire*, the standard usage is to match to a resource title, as used here[2]. However the challenge I'm hitting is that I don't know the title

Re: [Puppet Users] Code coverage for puppet resources

2014-02-07 Thread Gavin Williams
Gareth/Garret Not sure if it helps, but I've managed to exclude stuff from Coveralls by using simplecov filters... E.g.: https://github.com/fatmcgav/puppet-glassfish/commit/5f7d40c2257f469a297edd04a7dbac068306b82b Gav On Friday, 7 February 2014 02:51:26 UTC, Garrett Honeycutt wrote: > > On 1

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-06 Thread Gavin Williams
gt; HTH, > Felix > > On 02/05/2014 06:04 PM, Gavin Williams wrote: > > Is there any way of working around this? I've tried putting in > > /autorequire /behaviour like so: > > > > # Autorequire the password file > > autorequire(:file) do >

[Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread Gavin Williams
Afternoon all I'm currently doing some final testing on my Glassfish module[1] before I look to release it. However I've just stumbled across an issue where-by Puppet fails the run based on some File.exists? validation in one of the types, which is trying to use a file that is being created e

Re: [Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-17 Thread Gavin Williams
vis-ci.org/fatmcgav/puppet-glassfish/jobs/17137606 [3] https://github.com/fatmcgav/puppet-glassfish/blob/4ee7a5cfe260494fc5bf48c01964e06ca18facbd/spec/classes/init_spec.rb#L77-96 On Friday, 17 January 2014 09:39:54 UTC, Gavin Williams wrote: > > Morning all... > > Next strange error... The Travis CI

Re: [Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-17 Thread Gavin Williams
et[2], from 2.7.25 through to 3.4.1, just failing on 3.0.2... Any ideas? Cheers Gavin [1] https://travis-ci.org/fatmcgav/puppet-glassfish/jobs/17115342 [2] https://travis-ci.org/fatmcgav/puppet-glassfish/builds/17115340 On Thursday, 16 January 2014 21:37:37 UTC, Gavin Williams wrote: >

[Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-16 Thread Gavin Williams
Afternoon all, I'm trying to add some rspec-puppet testing to my Glassfish module[1], in preparation for releasing it to the forge. I've got some stuff working fine, however I'm trying to test expected failure scenarios without much luck. Travis CI[2] highlights the issues I'm seeing. An e

Re: [Puppet Users] rspec-puppet: mocking included params class in defines

2014-01-16 Thread Gavin Williams
Vamsee Are you able to share how you went about mocking out the ::params class include? As I've got the same pattern that I want to test using rspec-puppet... Cheers Gavin On Friday, 27 December 2013 10:16:49 UTC, Vamsee Kanakala wrote: > > On Dec 26 10:56, Johan De Wit wrote: > > I use t

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread Gavin Williams
path=$vardir/lib/facter > templatedir=$confdir/templates > manifestdir = /etc/puppet/git/manifests > modulepath = /etc/puppet/git/modules > > Cheers, > David > > Am Donnerstag, 16. Januar 2014 13:20:15 UTC+1 schrieb Gavin Williams: >> >> David >> >> Mod

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread Gavin Williams
David Module layout looks ok from the above... It's probably worth checking what your puppet master modulepath is set to in puppet.conf, as notice you're using /etc/puppet/git/modules, rather than the normal /etc/puppet/modules. HTH Gavin On Thursday, 16 January 2014 11:16:02 UTC, David Ja

Re: [Puppet Users] rspec-puppet require syntax

2013-12-19 Thread Gavin Williams
Yeh, the quoting of the resource is key I found... Need to quote the entire resource, rather than the resource title... Gav On Thursday, 19 December 2013 00:45:11 UTC, Mikhail Simin wrote: > > This syntax works for me: > > 'require' => [ > 'User[nginx]', > 'Exec[install_nginx]'] > > O

[Puppet Users] Re: RSpec tests failing after upgrading to rspec-puppet v1.0.1

2013-12-06 Thread Gavin Williams
m Tim and myself available on the aforementioned link... Cheers Gavin [1] https://github.com/rodjek/rspec-puppet/issues/131 On Friday, 6 December 2013 09:51:54 UTC, Gavin Williams wrote: > > Morning all > > Not sure if anybody on here is going to be able to assist, but thought I

[Puppet Users] RSpec tests failing after upgrading to rspec-puppet v1.0.1

2013-12-06 Thread Gavin Williams
Morning all Not sure if anybody on here is going to be able to assist, but thought I'd ask anyways... I've upgraded rspec-puppet to v1.0.1 this morning, and now all my rspec tests are failing with: Failure/Error: it { should_not contain_class('software::hp::psp') } > Puppet::Error: >

[Puppet Users] Puppet module testing & code coverage...

2013-12-03 Thread Gavin Williams
Afternoon all I've read a fair few blogs, slideshares and other sources recently around Module testing in Puppet, and it has spurned me on to start writing a test framework around our internal modules... Yes, we aren't currently testing our internal modules... Yes, we *should *be, and yes, I co

[Puppet Users] Re: Accessing hash values in defined type

2013-11-13 Thread Gavin Williams
Bret Sounds like 'create_resources' might be a good fit here... Take a look at http://four-eyes.net/2013/09/puppet-passing-a-hash-of-variables-to-a-defined-type/ Alternatively, if you can't use 'create_resources' you probably want to add a parameter to the defined type, and then use the ind

[Puppet Users] Re: New release of fatmcgav-netapp module.

2013-10-09 Thread Gavin Williams
#x27;re currently using my NetApp network device module, or are looking to use it, please note the version compatibility issues stated above. Cheers Gav [1] http://projects.puppetlabs.com/issues/22804 [2] https://github.com/puppetlabs/puppet/pull/1978 On Monday, 30 September 2013 21:12:47 U

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Gavin Williams
Pete I've not done this before, however am familiar with Puppet, and know a lot more about F5s... I note that you say that you're expecting apache on the masters to proxy onto the CA server. Is there any reason you couldn't use the F5 to select the CA server for any CA requests? Should be a

Re: [Puppet Users] f5 module usage/debugging tips?

2013-10-01 Thread Gavin Williams
UTC+1, Gavin Williams wrote: > > Jeff/Chris/All > > Completely missed this topic when doing my own investigations on this > issue... > > However the same problem discussed on > Puppet-dev<https://groups.google.com/forum/#!topic/puppet-dev/bU0_X_MOiuo>has > h

Re: [Puppet Users] service subscription to a concat managed file

2013-08-27 Thread Gavin Williams
opticpow An alternative may be to use 'notify' rather than 'subscribe'. Would require your service to become 'refreshonly => true'... Cheers Gavin On Tuesday, 27 August 2013 00:19:03 UTC+1, opticpow wrote: > > Hi Ygor, of course a silly miss by me. Thanks for the heads up on the > module, I

Re: [Puppet Users] f5 module usage/debugging tips?

2013-07-29 Thread Gavin Williams
Jeff/Chris/All Completely missed this topic when doing my own investigations on this issue... However the same problem discussed on Puppet-devhas highlighted the same issue... I have therefore raised Issue 21975

[Puppet Users] Re: Is it possible to compile puppet script to pure Ruby or other languages.

2013-05-17 Thread Gavin Williams
My preference would be either to use the same master, maybe with some additional environments, or commission a master for the development environment... That way, you can be more confident that what works in dev will work in prod :-) Gav -- You received this message because you are subscr

[Puppet Users] Re: Puppet and internal modules...

2013-04-26 Thread Gavin Williams
hich code runs. > > I would allow contributions from your dev team liberally, as long as they > are only using puppet to maintain the environment and do so in a way that > the rest of the organization can make use of their work. > > On Thursday, April 25, 2013 2:45:51 PM UTC-6

[Puppet Users] Puppet and internal modules...

2013-04-25 Thread Gavin Williams
Afternoon/Evening all It looks like Puppet is starting to get some traction within my organisation, with several other teams asking what Puppet can do for them :-) The main use I'm getting asked about is one touch deployment of our products by Dev teams... On the surface it shouldn't be too

[Puppet Users] Re: How to optimize puppet class/module code ?

2013-04-09 Thread Gavin Williams
Hi there, I think you're quickest win for making the code cleaner and easier would be to create a ::params class, which sets the correct values for package, file and service based on your distro. Can then inherit this class on your ::install, ::config and ::service classes. I'm sure other

[Puppet Users] Flush provider - Differentiating between new resource and modification?

2013-04-05 Thread Gavin Williams
Morning all I'm working on converting some of my NetApp providers to prefetch/flush style to try and optimize performance. I've hit an issue on my Netapp_user provider, around handling resource creation versus resource modification? What's the easiest way to differentiate? Current code is h

[Puppet Users] Processing custom function response from calling custom function?

2013-03-21 Thread Gavin Williams
Morning all I'm trying to write a custom function that calls the foreman search function (https://github.com/ohadlevy/puppet-foreman/blob/master/foreman/lib/puppet/parser/functions/foreman.rb) and then processes the results, before returning itself... A code snippet is here: http://pastebin.

[Puppet Users] Re: Auto-generate multiple facts

2013-03-13 Thread Gavin Williams
27; } end end Now to see how reliable it is :D Cheers Gav On Wednesday, 13 March 2013 12:53:37 UTC, Gavin Williams wrote: > > John > > I've updated to use the new fact, however I'm getting some intermittent > hanging issues when Puppet agent is loading f

[Puppet Users] Re: Auto-generate multiple facts

2013-03-13 Thread Gavin Williams
g with is how to remove the \n character easily as part of the existing code... :s Any ideas??? Cheers Gavin On Monday, 11 March 2013 14:44:54 UTC, jcbollinger wrote: > > > > On Friday, March 8, 2013 9:43:30 AM UTC-6, Gavin Williams wrote: >> >> Hmm, it seems that th

Re: [Puppet Users] Puppet with Passenger - 403 Forbidden

2013-03-12 Thread Gavin Williams
03/13 09:09, Gavin Williams wrote: > > Morning all > > > > Am in the process of testing a migration of Puppet 3 from webrick to > > Puppet. > > > > Have found the foreman modules (https://github.com/theforeman) which > > seems to take care of a lot of t

[Puppet Users] Puppet with Passenger - 403 Forbidden

2013-03-12 Thread Gavin Williams
Morning all Am in the process of testing a migration of Puppet 3 from webrick to Puppet. Have found the foreman modules (https://github.com/theforeman) which seems to take care of a lot of the leg-work... However having got Puppet running with Passenger in Apache, whenever trying to access t

[Puppet Users] Re: Auto-generate multiple facts

2013-03-11 Thread Gavin Williams
2013 9:43:30 AM UTC-6, Gavin Williams wrote: >> >> Hmm, it seems that the new fact has broken my Network devices?! :( >> >> Getting the following when trying to run puppet against a network device: >> $ sudo puppet device --deviceconfig devices/act-star-nactl01.conf -v &

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
n `run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:496:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:346:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:87:in `execute' /usr/bin/puppet:4 So looks like it is definitely my new oracle_clone

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
s Gav On Friday, 8 March 2013 10:54:53 UTC, Gavin Williams wrote: > > Ok, next challenge now I've got these facts is how to get the values out > of them in my Puppet manifests :S > > As it's now an auto-generated name, I've got to work out a dynamic fact > name,

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
not getting any luck :( Is this something that's just not possible, or am I missing a trick? I'm hoping the latter... Cheers Gav On Friday, 8 March 2013 09:50:44 UTC, Gavin Williams wrote: > > Ok, looks like I wasn't googling hard-enough :( > > Managed to find Nan Li

[Puppet Users] Re: Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
ing came up with: https://gist.github.com/fatmcgav/5115394#file-oracle_clones-rb Cheers Gav On Friday, 8 March 2013 09:12:55 UTC, Gavin Williams wrote: > > Morning all > > I'm currently trying to work out a method to auto-generate a set of facts. > These facts need to con

[Puppet Users] Auto-generate multiple facts

2013-03-08 Thread Gavin Williams
Morning all I'm currently trying to work out a method to auto-generate a set of facts. These facts need to contain information about what database clones have been created using NetApp SnapManager for Oracle on a given Host... I need the fact to give the following information: clone_ACREPC11 =

  1   2   >