[Puppet Users] Re: Brackets in hiera yaml

2018-04-18 Thread MartinW
Hi John Thanks for the reply The hiera is generated by a custom Ruby script. I have tried tweaking it to output both with quotes and without but it didn't help The end config file on the server is being created with an Ensure_resources statement like this: ensure_resources('icinga2::object::

[Puppet Users] Brackets in hiera yaml

2018-04-18 Thread MartinW
Hi I have some hiera yaml that looks like this: vars: psuName: x liveCustomers: 100 notes: some notes here (more info in backets) uplink: uplink01 The yaml is autogenerated by a script and it is basically used to help build icinga2 config. The problem I have is t

Re: [Puppet Users] puppet always has an exitcode of 0

2013-03-20 Thread MartinW
Thanks for the replies. I may have found why --test isn't giving the expected response. puppetd --version 0.25.5 :o - I have no choice but to continue using it as well. Will it be impossible for me to get this working with such an old version? -- You received this message because you are subs

[Puppet Users] puppet always has an exitcode of 0

2013-03-20 Thread MartinW
I am writing a bash script which will run puppet as follows: puppetd --test --env test I need my script to be able to tell if puppet ran successfully, I thought I might be able to do this by checking the exit code ($?) but it seems that regardless of whether the puppet run succeeds or fails it