Re: [Puppet Users] templatizing a configuration file

2014-07-07 Thread Paolo Supino
Hi Christopher Thanx for the reply :) If anyone ever looks for a similar problem... Someone (don't remember the user's NIC, sorry) on Puupet's IRC channel suggested using Puppet's template iteration (as explained here: http://docs.puppetlabs.com/guides/templating.html#iteration). Paolo

Re: [Puppet Users] Re: rspec-puppet: how to pass undef as parameter value?

2014-07-07 Thread Dominic Cleal
Sorry for bringing up an old thread, but I hit the same issue and found a workaround. rspec-puppet calls #inspect on the parameter values to see how they should be represented in Puppet's DSL, so passing a string in causes it to get quoted (as String#inspect returns a quoted string). Instead, I

Re: [Puppet Users] How to deploy code in agent machines from Master

2014-07-07 Thread Satish Katuru
Thanks for your reply Rich.I will try to explore Mcolletive and try to do it. Satish. On Saturday, July 5, 2014 12:07:46 AM UTC+5:30, Rich Burroughs wrote: The Puppet agent runs are initiated on the agent side. There is no Puppet master command that you can use to trigger an agent run. If

[Puppet Users] Execute commands on puppet master

2014-07-07 Thread shashank sinha
Hello, I am working on some project where I need to execute scp command on puppet master to copy files from some external server to module/files/* each time when puppet agent pull request received to master.I want something like to copy a file and store it to puppet master /modules/files

[Puppet Users] Re: Resource: destroy before create?

2014-07-07 Thread Andreas Schuster
Hi John, many thanks for your answer. It was really helpful. But i must make one modificatiotion: resources { 'ipaddress': purge = true, } - Ipaddress| enusre == absent | Now this works really fine and he purges before he creates new resources/Ipaddresses :-) Regrads, Andreas -- You

[Puppet Users] Submit puppet apply-genereated reports to master?

2014-07-07 Thread alexbozhenko
Hello, everybody. I have a report files, that was generated with puppet apply, located in /var/lib/puppet/reports/$(hostname)/$date.yaml. Can I upload them to puppet master? I'm using foreman, and it have own report engine, configured at master. Most of my hosts are managed with puppet agents,

Re: [Puppet Users] Making a node use a different manifest

2014-07-07 Thread Roger Sherman
Hi Den, and thank you for the response. There is some data that will need to be rsynced, but mostly it's drawing from mysql nodes, and not storing or creating data itself. One issue, though, that I wonder if just copying and pasting into the spare nodes manifest - I need the hostname to change

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-07 Thread Marc Whittaker
Thanks for the suggestions Rich. I did try double quotes and the result if the same so still no progress. Hoping someone out there has a colon in their data and can point me in the right direction. On Friday, 4 July 2014 15:37:49 UTC-4, Rich Burroughs wrote: Ah ok. I was looking at this

[Puppet Users] Re: Apt: Execute sources before builddep

2014-07-07 Thread jcbollinger
On Saturday, July 5, 2014 9:22:38 PM UTC-5, David Mohl wrote: Hello, I am scratching my head on this one. For a project, I need to compile a package from source that depends on a apt source package. Since I am managing package sources with puppet, I need apt-get builddep to be executed

Re: [Puppet Users] Making a node use a different manifest

2014-07-07 Thread jcbollinger
On Monday, July 7, 2014 8:01:18 AM UTC-5, Roger Sherman wrote: Hi Den, and thank you for the response. There is some data that will need to be rsynced, but mostly it's drawing from mysql nodes, and not storing or creating data itself. One issue, though, that I wonder if just copying and

Re: [Puppet Users] Making a node use a different manifest

2014-07-07 Thread Roger Sherman
Thanks John, I think that answers the rest of my question. I'm actually doing this in stages - the critical node is worker3.blahblah.com, so I'm making spare.blahblah.com into worker4.blahblah.com (with the critical services not started), then I'll be rsyncing, and then shutting down worker3,

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-07 Thread jcbollinger
On Monday, July 7, 2014 9:18:07 AM UTC-5, Marc Whittaker wrote: Thanks for the suggestions Rich. I did try double quotes and the result if the same so still no progress. Yours is neither a single-quoted nor a double-quoted value. It is an unquoted value with a single quotes somewhere in

[Puppet Users] Puppet, Vagrant and repos

2014-07-07 Thread Andrei Maxim
Hi, I've been looking into Puppet recently and I'm trying to setup a couple of virtual machines that should mimick what's in production. I'm pretty much a developer trying to lean towards DevOps :-) Locally, I'm using Vagrant and the CentOS 6.5 64-bit box with Puppet 3.4.3 that was

Re: [Puppet Users] Puppet, Vagrant and repos

2014-07-07 Thread Doug Forster
Max, I do a single module for each repo that I want added. In some cases I combine it with a repo to manage the service. IE mysql* repos would be managed via the mysql module. As for making sure they are all up to date I might just create an exec {my_check_update: refreshonly = true, command

Re: [Puppet Users] Puppet, Vagrant and repos

2014-07-07 Thread Yanis Guenane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To second Doug, I also uses a module for each repo I want to add. This way you can probably have a base profile, like the following : class profile::base { resources { 'yumrepo' : purge = true, } include ::epel include ::nginx include

[Puppet Users] Editing fstab with Augeas

2014-07-07 Thread Kim Scarborough
I'm trying to get Puppet to add nosuid to all my nfs or nfs4 mount entries in /etc/fstab. I'm currently using this: augeas { fstab-nosuid: context = /files/etc/fstab/*[vfstype = 'nfs' or vfstype = 'nfs4'][count(opt[. = 'nosuid']) = 0], changes = [

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-07 Thread Marc Whittaker
Thank you so much John, As soon I read your comment the light went on... On Monday, 7 July 2014 11:17:26 UTC-4, jcbollinger wrote: On Monday, July 7, 2014 9:18:07 AM UTC-5, Marc Whittaker wrote: Thanks for the suggestions Rich. I did try double quotes and the result if the same so

Re: [Puppet Users] Re: Windows warning about source permissions

2014-07-07 Thread Rob Reynolds
On Thu, Jul 3, 2014 at 4:44 PM, Michael Legleux legl...@gmail.com wrote: The directory already exists. Puppet master and agent are both 3.6.2 This is in the debug from the run on the agent. Debug: Using settings: adding file resource 'pluginfactdest':

[Puppet Users] Re: Package install from a URL

2014-07-07 Thread Jonathan Rose
I tried fiddling around with a puppet module I am writing to install RPM's both from repository as well as local resources (e.g. http) and tried the advise noted by David Caro, but I'm still getting error messages: Skipping. Error: Nothing to do returned 1: Cannot open: On Tuesday, February

Re: [Puppet Users] Editing fstab with Augeas

2014-07-07 Thread Pete Brown
Is there a reason you aren't using the builtin mount type? I believe it can do everything you require. http://docs.puppetlabs.com/references/stable/type.html#mount On 8 July 2014 04:42, Kim Scarborough chow...@gmail.com wrote: I'm trying to get Puppet to add nosuid to all my nfs or nfs4 mount