Re: [Puppet Users] Revert configuration file to old state if content changes

2014-05-02 Thread jcbollinger
On Thursday, May 1, 2014 9:06:52 AM UTC-5, Peter Bukowinski wrote: On May 1, 2014, at 9:29 AM, contactp...@gmail.com javascript: wrote: Hi, I am using puppet enterprise 3.x . I have a manifest used to install and manage custom application on my client node. Part of manifest is

Re: [Puppet Users] Revert configuration file to old state if content changes

2014-05-02 Thread Peter Bukowinski
On May 2, 2014, at 9:25 AM, jcbollinger john.bollin...@stjude.org wrote: On Thursday, May 1, 2014 9:06:52 AM UTC-5, Peter Bukowinski wrote: On May 1, 2014, at 9:29 AM, contactp...@gmail.com wrote: Hi, I am using puppet enterprise 3.x . I have a manifest used to install and

Re: [Puppet Users] Re: Creating scope object in Puppet v3.x

2014-05-02 Thread Henrik Lindberg
On 2014-01-05 11:18, KomodoDave wrote: Thanks for the response, Henrik. I’ve tried what you suggested already: |node=Puppet::Node.new('localhost') compiler=Puppet::Parser::Compiler.new(node) scope=Puppet::Parser::Scope.new(compiler) | ..but the result is: |

[Puppet Users] Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
Hi, I'd like to add things dynamically to :hierarchy: when I use hiera. I'd like to be able to do the following : in site.pp: hiera_roles() hiera_roles() would search in hiera for something like : mynode.yaml: roles: - roles/appserver - roles/databaseserver and I could have :

Re: [Puppet Users] Re: Creating scope object in Puppet v3.x

2014-05-02 Thread KomodoDave
You're right that my function isn't inside Puppet, Henrik. But the whole point of it is to be able to run Puppet functions without needing to run Puppet itself so they can be live debugged very quickly. It worked fine with Puppet 2.6, but I guess the upgrades that have been to Puppet made

Re: [Puppet Users] Enable puppet agent by default

2014-05-02 Thread jcbollinger
On Thursday, May 1, 2014 9:42:39 AM UTC-5, Christopher Wood wrote: (inline) On Wed, Apr 30, 2014 at 08:21:15AM -0700, jcbollinger wrote: On Tuesday, April 29, 2014 10:15:35 AM UTC-5, Christopher Wood wrote: Can't hosts already stagger their agent checkin times by using

Re: [Puppet Users] Re: Optional parameters in Nagios_host

2014-05-02 Thread Jonathan Gazeley
On 01/05/14 14:18, jcbollinger wrote: On Thursday, May 1, 2014 5:06:37 AM UTC-5, Jonathan Gazeley wrote: I'm struggling a little bit with this one. Some of my puppet nodes have lights-out management. For those that do, I want to put the IP address of their iLOM card in Hiera

[Puppet Users] puppet dism

2014-05-02 Thread Helen Paterson
Hi, I'm getting the below error, when using an answer file with the forge puppet dism module Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature /Fea ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart' ret rned 87: Deployment Image Servicing

[Puppet Users] Failed when searching for node

2014-05-02 Thread Jason Hatman
I've configured a new puppetmaster server. I've installed Dashboard. Everything works fine using webrick. As soon as I start using apache2 to serve dashboard, the nodes stop working. I can't quite pin down where the problem is. ERROR MESSAGE Error: Could not retrieve catalog from remote

[Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
I finally did it my self. For sure I hate Ruby. This custom function will add values from arbitrary keys (must be arrays) at the beginning of hierarchy For my example, I have just included hiera_hook(roles) in site.pp to achieve to behavior I described previously. module

Re: [Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-02 Thread Felix Frank
On 05/02/2014 06:43 PM, Vincent Miszczak wrote: For my example, I have just included hiera_hook(roles) in site.pp to achieve to behavior I described previously. Uhuh. How is this used? Does it actually affect subsequent hiera() calls? -- You received this message because you are subscribed

Re: [Puppet Users] puppet dism

2014-05-02 Thread Rob Reynolds
Can you verify /Apply-Unattend is a proper switch for that particular feature? The error you are getting indicates it should not be used. On Fri, May 2, 2014 at 10:26 AM, Helen Paterson helen.pater...@gmail.comwrote: Hi, I'm getting the below error, when using an answer file with the forge

[Puppet Users] Installing the Learning Quest in my Own Ubuntu Instance (on AWS)

2014-05-02 Thread Brahim Dagher
Hi All, Love all the work that is going on with Puppet and trying to get my hands dirty. I downloaded the learning VM and am about 3/4 of the way through. But the VMWare instance is bogging down my laptop. I want to install the Learning package into my own instance of Ubuntu server on the cloud

Re: [Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-02 Thread Vincent Miszczak
Hi, Well I did this in a lab with one node. I used like this : *site.pp:* hiera_hook(roles) hiera_include(classes) so my :hierearchy: looked like: :hierarchy: - roles/appserver - roles/databaseserver - ... - common I suppose the is not enough because subsequent calls will have the hooks

[Puppet Users] Re: Failed when searching for node

2014-05-02 Thread Jason Hatman
My error log shows something else. [Thu May 01 12:54:58 2014] [error] [client 10.3.32.16] File does not exist: /usr/share/puppet-dashboard/public/favicon.ico [Thu May 01 12:55:04 2014] [error] [client 10.3.32.16] Directory index forbidden by Options directive:

[Puppet Users] Hiera question: Nested hash

2014-05-02 Thread Sans
In my module, I have something like this to installed some base packages: package { 'rpm-mon-ntp': ensure = latest, require = Yumrepo[ mon-repo-test ]; 'rpm-mon-utils': ensure = installed, require = Yumrepo[ mon-utils-test ]; 'rpm-mon-patch':

[Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Matthew Burgess
Hi all, This is probably a real newbie question, but I'm having trouble overriding a value in Hiera that is defined in my common.yaml in a more specific role-based yaml file: common.yaml - lvm::volume_groups: rootvg: physical_volumes: - /dev/sda3 logical_volumes: root_vol:

Re: [Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Andreas Ntaflos
On 2014-05-02 23:57, Matthew Burgess wrote: Hi all, This is probably a real newbie question, but I'm having trouble overriding a value in Hiera that is defined in my common.yaml in a more specific role-based yaml file: [...] Is it possible to only override the size parameter of the

[Puppet Users] Exported Concat::Fragment not using concat_basedir

2014-05-02 Thread treydock
I am having a very odd issue when exporting Concat::Fragment resources. They export just fine, but if the node that exported the resource tries to also realize that resource, the fragment loses the path defined by concat_basedir. The export: @@concat::fragment {

Re: [Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Matthew Burgess
On 2 May 2014 23:04, Andreas Ntaflos d...@pseudoterminal.org wrote: Sound like you want to install deep-merge (packaged by Puppetlabs for Debian as ruby-deep-merge and for RedHat as rubygem-deep-merge) on the Puppet master, set :merge_behavior: deeper in /etc/puppet/hiera.yaml (and/or

Re: [Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Andreas Ntaflos
On 2014-05-03 00:40, Matthew Burgess wrote: On 2 May 2014 23:04, Andreas Ntaflos d...@pseudoterminal.org mailto:d...@pseudoterminal.org wrote: Sound like you want to install deep-merge (packaged by Puppetlabs for Debian as ruby-deep-merge and for RedHat as rubygem-deep-merge) on