Re: [Puppet Users] Re: [ACTION] Changes to release package links

2019-05-20 Thread choffee
So what at the new URL's for PC1 using apt? Just changing the hostname does not work, neither does adding the /apt prefix. It looks like the pool directory has been copied across but no the dist dir. The puppetlabs-release-pc1 package is also broken now so there is no simple way to install that

[Puppet Users] Getting the client requested environment from node classifier script

2018-05-18 Thread choffee
Hi, Is it possible to get the environment the client has requested from within the node classifier script? We used to use an environment vairable that the old webbrick server used to set but it looks like that is no longer availalbe in puppetserver. Thanks john -- You received this message

Re: [Puppet Users] Testing yaml files being passed as parameters using rspec-puppet

2015-11-11 Thread choffee
g regexp to validate the content up to now so I suppose I could move to using this yaml module to check that as well. john On Tuesday, 10 November 2015 12:02:09 UTC, Martin Alfke wrote: > > Hi, > On 06 Nov 2015, at 14:38, choffee > wrote: > > > I have a define which takes a

[Puppet Users] Testing yaml files being passed as parameters using rspec-puppet

2015-11-06 Thread choffee
I have a define which takes a yaml file as a parameter and want to check that my template creates valid yaml. I am currently using regexp to test bits of it like so should contain_mydefine('foo').with_yaml_content(/---\s+-part1/m) It would be nice to be able to do should contain_mydefine('

Re: [Puppet Users] rspec testing dependancies

2015-04-02 Thread choffee
Wednesday, 1 April 2015 16:22:51 UTC+1, garethr wrote: > > On 1 April 2015 at 15:37, choffee > wrote: > > Hi, > > > > I am having some trouble testing some classes using rspec. > > > > I have three classes. init, service and config. > > > >

[Puppet Users] rspec testing dependancies

2015-04-01 Thread choffee
Hi, I am having some trouble testing some classes using rspec. I have three classes. init, service and config. service contains just the service settings with a class setting for service name eg. class tc::service ( $service_name => tc::service_name ) { service {'tc': service_name

Re: [Puppet Users] Re: rspec testing and viewing the catalogue it is testing

2014-05-08 Thread choffee
le manifest and spec test that expose this problem? > I do not yet clearly understand what you're trying to do. > > Thanks, > Felix > > On 05/07/2014 04:42 PM, choffee wrote: > > Am I doing this wrong? > > > > I create a test that says "check for a

Re: [Puppet Users] Re: rspec testing and viewing the catalogue it is testing

2014-05-08 Thread choffee
my head but I'm pretty sure > this will help you along the way. > > > http://www.ruempler.eu/2012/04/03/puppet-rspec-debugging/?mobile=1 > > > On 8 May 2014, at 0:42, choffee > wrote: > > Am I doing this wrong? > > I create a test that says "check for

[Puppet Users] Re: rspec testing and viewing the catalogue it is testing

2014-05-07 Thread choffee
ed against for that test would mean I could see my error rather than having to guess and test again. john On Wednesday, 7 May 2014 13:38:22 UTC+1, choffee wrote: > > I am trying to debug why my test is failing and not producing a file that > I thought it should be. > > Is there

[Puppet Users] rspec testing and viewing the catalogue it is testing

2014-05-07 Thread choffee
I am trying to debug why my test is failing and not producing a file that I thought it should be. Is there a simple way to view the catalogue that rspec is testing against? I tried --debug in the .rspec file with the debugger gem and it gives no extra errors is there something more I need to ad