Re: [Puppet Users] Issue with Role-Profile implementation

2014-07-10 Thread José Luis Ledesma
You should specify puppet://puppet/modules/... or puppet:///modules/... Regards, El 10/07/2014 04:45, Varun Utagikar varun.utagi...@gmail.com escribió: Hey Daniel I was performing several changes to trouble shoot the issue , some where i must have renamed the dir to file , here's my o/p

Re: [Puppet Users] Issue with Role-Profile implementation

2014-07-10 Thread Varun Utagikar
Thanks Jose Luis Ledesma That helped , i dont know how/why i committed that error , I think should be more cautious while writing my modules. On Thursday, 10 July 2014 13:23:49 UTC+5:30, Jose Luis Ledesma wrote: You should specify puppet://puppet/modules/... or puppet:///modules/...

[Puppet Users] Re: How to read the files of puppet agent.

2014-07-10 Thread shashank
Hi Martijn, Thanks for the suggestion. Just now I have implemented the custom facts as you have suggested and its exactly meets the requirement. Thanks Shashank On Wednesday, July 9, 2014 1:49:38 PM UTC+5:30, Martijn wrote: Shashank, The templates are compiled on the master but can

Re: [Puppet Users] Editing fstab with Augeas

2014-07-10 Thread Trevor Vaughan
Pete is definitely on to one good approach here. Other approaches may include using automount and placing all of your mounts into LDAP or using a custom fact to gather the mounts on each system and then manipulating them accordingly with a define. Trevor On Wed, Jul 9, 2014 at 9:40 PM, Pete

[Puppet Users] how to puppet and diff without fqdn

2014-07-10 Thread elvis
I have one problem, that how to manage the agent-nodes with puppet? I'm using the openstack to auto generating the vms, and then puppet with several puppet-code in special pattern. eg. The system provision several vms, each vm has two attrs: `fqdn`: maybe repeat(you know the vms are genrate

[Puppet Users] Dashboard - 'last 30 puppet runs' wrong data

2014-07-10 Thread Kamila Złomańczuk
Dashboard shows on last 30 puppet runs wrong run times and wrong reports hours. Looks like old data How I can fix it? Dashboard v1.2.23 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] Editing fstab with Augeas

2014-07-10 Thread Christopher Wood
On Wed, Jul 09, 2014 at 04:18:37PM -0700, Kim Scarborough wrote: My Augeas approach works, I'm just having the one problem where I can't get it to apply to more than one mount line per run. It might work but it is probably better to manage the whole mount with

Re: [Puppet Users] how to puppet and diff without fqdn

2014-07-10 Thread Christopher Wood
I confess I might not understand the question as phrased. It seems like you want to declare nodes by uuid not hostname. If so, you might want to set their certname to that uuid: http://docs.puppetlabs.com/references/latest/configuration.html#certname As part of the provisioning step you'd

Re: [Puppet Users] how to puppet and diff without fqdn

2014-07-10 Thread R.I.Pienaar
- Original Message - From: Christopher Wood christopher_w...@pobox.com To: puppet-users@googlegroups.com Sent: Thursday, July 10, 2014 2:44:00 PM Subject: Re: [Puppet Users] how to puppet and diff without fqdn I confess I might not understand the question as phrased. It seems

[Puppet Users] Duplicate declaration with nested create_resources

2014-07-10 Thread Joao Morais
Hello list, I have some services that may be duplicated in some machines. They are much like an Apache vhost. In order to remove details from my manifests, I moved the service names to ENC because they are machine-dependent. Here are my datasources and manifests: ENC: parameters:

[Puppet Users] puppetlabs-apache prefork vs. worker

2014-07-10 Thread Peter Berghold
Have a bit of frustration here: I have a class I've written to install a vhost based Wordpress site on a server. There will be serveral there. Since mod_php is needed I also need to install mod_prefork. I invoke the apache class thusly: class {'apache':

Re: [Puppet Users] how to change root password for all nodes

2014-07-10 Thread Dirk Heinrichs
Am Mittwoch 09 Juli 2014, 08:21:30 schrieb mahesh vijapure: I want to update root password for all vms registered with Puppet. Please someone assist me here. Did you think about closing the root account in favour of using sudo for all admin tasks? That way, you only need to distribute new

Re: [Puppet Users] how to change root password for all nodes

2014-07-10 Thread Dirk Heinrichs
Am Mittwoch 09 Juli 2014, 08:21:30 schrieb mahesh vijapure: I want to update root password for all vms registered with Puppet. Please someone assist me here. Did you think about closing the root account in favour of using sudo for all admin tasks? That way, you only need to distribute new

Re: [Puppet Users] Editing fstab with Augeas

2014-07-10 Thread Kim Scarborough
I feel like I've got a reasonably good solution with that augeas recipe, it's just that it requires multiple runs to work. If anybody familiar with augeas could take a look at it and help me, I would be most grateful. On Thursday, July 10, 2014 6:00:26 AM UTC-5, Trevor Vaughan wrote: Pete is

Re: [Puppet Users] puppetlabs-apache prefork vs. worker

2014-07-10 Thread Hunter Haugen
I think the parameter you're looking for is https://github.com/puppetlabs/puppetlabs-apache/#mpm_module So: class { 'apache': mpm_module = 'prefork', } class { 'apache::mod::php': } or if you need to provide the prefork module custom parameters: class { 'apache': mpm_module = false, }

Re: [Puppet Users] Re: Puppetlabs Firewall

2014-07-10 Thread Cristian Falcas
Hi, We where hitting the same issue also. We solved it like this: - we have a fact that makes sure the iptables service is up on the machine. Otherwise if the service is down, there will be no purge and we still get the previous rules. - we put the purge resource in a special class (something

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

2014-07-10 Thread Cristian Falcas
I this correct in your provider/karaf_feature/karaf_feature.rb file? if resource = resources[prov.name] Should that be ==? Best regards, Cristian Falcas On Fri, Jun 27, 2014 at 4:14 PM, Gavin Williams fatmc...@gmail.com wrote: Felix Cheers for the response. Whilst the 'client'

Re: [Puppet Users] How to unzip archive to a master's location

2014-07-10 Thread Cristian Falcas
Exec resources are executed on the agent. Functions are executed on master. So you first need a function that does the processing of the original zip and copies the new file to some module, from where you can retrieve it with the file resource. cristi On Tue, Jun 24, 2014 at 12:16 PM, Malintha

Re: [Puppet Users] How to unzip archive to a master's location

2014-07-10 Thread Eric Shamow
Generate is probably useful here: http://docs.puppetlabs.com/references/latest/function.html#generate On Thu, Jul 10, 2014 at 4:21 PM, Cristian Falcas cristi.fal...@gmail.com wrote: Exec resources are executed on the agent. Functions are executed on master. So you first need a function that

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

2014-07-10 Thread Felix Frank
On 07/11/2014 01:08 AM, Cristian Falcas wrote: I this correct in your provider/karaf_feature/karaf_feature.rb file? if resource = resources[prov.name http://prov.name] Should that be ==? Best regards, Cristian Falcas Nope. That's your regular old set and test for nil thingamajig.

[Puppet Users] Unit testing reference modules and best practices

2014-07-10 Thread Ben Sullivan
Hi I'm looking for some reference modules to share with my team to illustrate how to best use rspec-puppet to unit test Puppet DSL code. I'm going to go through the Puppet Enterprise supported modules as I figured that was a reasonable place to start:

[Puppet Users] Custom Types and Providers

2014-07-10 Thread Michael Legleux
Using puppet 3.62 Trying to follow along with the book At one point (beginning of ch. 3), it says using irb: require 'puppet' Puppet::Type.type(:package) = Puppet::Type::Package My output is identical However the next bit diverges... require 'puppet' Puppet.parse_config

Re: [Puppet Users] Custom Types and Providers

2014-07-10 Thread Dan Bode
My best guess is that modulepath is not configured to the correct location. After you run parse_config, see what Puppet[:modulepath] returns (it needs to maps to the path that contains the directory with your lib dir in it). ie: module_path/fake_module/lib parse_config should load the

Re: [Puppet Users] Custom Types and Providers

2014-07-10 Thread Michael Legleux
Puppet[:modulepath] returns: = /etc/puppet/modules:/usr/share/puppet/modules The tree I posted previously is located in /etc/puppet/modules/example (as the book had laid out.) The module path must be correct (as I explain in a bit) since i see it all referenced when I run puppet on the agent I