[Puppet Users] Re: Puppet copy not working

2014-07-14 Thread Nishantu Kumar
Hi all, I have created a file in "/etc/puppet/manifests/classes" as copy.pp and contents are :- # copy a remote file to /etc/sudoers file { "/etc/sudoers": mode => 440, owner => root, group => root, source => "puppet:///home/ubuntu" } and i run the command on agent machine a

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread Juan Sierra Pons
2014-07-12 13:05 GMT+02:00 Jose Luis Ledesma : > Hi all, > > I have found a problem setting up exported resources. The problem is > that for every hosts I want to define in its /etc/hosts the primary ip, but > I want to export a secondary ip with the same hostname that will be > collected just

Re: [Puppet Users] Puppet, Vagrant and repos

2014-07-14 Thread Thomas Bendler
I use a separate module for the repositories ( https://forge.puppetlabs.com/thbe/yum) and require them during startup like here (https://forge.puppetlabs.com/thbe/ssmtp). So Puppet is doing the work to get everything in place in the correct order. Regards Thomas 2014-07-07 17:35 GMT+02:00 Andrei

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread José Luis Ledesma
Hi, Shall this be a bug? Teorically a exported resource is not applied in the managed node if you don't collect it, so it should not collide with an "applied" resource. thoughs? thanks, On Mon, Jul 14, 2014 at 10:33 AM, Juan Sierra Pons wrote: > 2014-07-12 13:05 GMT+02:00 Jose Luis Ledesma

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread Juan Sierra Pons
2014-07-14 12:21 GMT+02:00 José Luis Ledesma : > Hi, > >Shall this be a bug? Teorically a exported resource is not applied in the > managed node if you don't collect it, so it should not collide with an > "applied" resource. thoughs? > > thanks, Hi >From [1] Docs: Language: Exported Resources

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread Kristof Willaert
Hi, I think you should be able to use the exported resource on both the remote node, and the node that exports it, by using collection both local and remote and overriding the necessary attribute: On host A: @@host { $::hostname : ensure => present, ip => $secondary_ip, } Also on

[Puppet Users] puppet-postgres error

2014-07-14 Thread Rajesh Taneja
While running puppet agent, I am getting following error. Can someone help me understand what might be wrong. Warning: Exec[validate postgres connection for /postgres](provider=posix): Cannot understand environment setting "PGPASSWORD=" Warning: Exec[validate postgres connection for /postgres](p

[Puppet Users] The combined use of Ubuntu and CentOS

2014-07-14 Thread Nevzat erçolak
Hi, I am using puppetmaster on centos 6.5. I want to use puppet agent which is installed on ubuntu 12.04. I want to install and configure some package on ubuntu 12.04 via using puppet. Is it possible to use different operating system between puppetmaster and agents? If it is possible, how can I

[Puppet Users] Managing config files...

2014-07-14 Thread Gavin Williams
Morning all As part of my work to create an Apache Karaf module[1] I need to manage a number of configuration files, and I'm wondering what the best way to go about it might be... A couple of examples of the config files that need managing can be found here[2]. I think the 2 provided examples

[Puppet Users] Re: Duplicate declaration with nested create_resources

2014-07-14 Thread Joao Morais
Em sexta-feira, 11 de julho de 2014 11h11min17s UTC-3, jcbollinger escreveu: > > > So, I'm interpreting the hiera data as providing configuration details > that, if present, apply to every 'myservice', at least as defaults. > Furthermore, from the data and manifests I judge that 'myproblematicc

Re: [Puppet Users] Re: Puppet copy not working

2014-07-14 Thread Yanis Guenane
On 07/14/2014 03:33 AM, Nishantu Kumar wrote: > Hi all, > > I have created a file in "/etc/puppet/manifests/classes" as copy.pp and > contents are :- > > # copy a remote file to /etc/sudoers > file { "/etc/sudoers": > mode => 440, > owner => root, > group => root, > source

[Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread jcbollinger
On Saturday, July 12, 2014 6:05:35 AM UTC-5, Jose Luis Ledesma wrote: > > Hi all, > > I have found a problem setting up exported resources. The problem is > that for every hosts I want to define in its /etc/hosts the primary ip, but > I want to export a secondary ip with the same hostname t

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread jcbollinger
On Monday, July 14, 2014 5:22:13 AM UTC-5, Jose Luis Ledesma wrote: > > Hi, > >Shall this be a bug? Teorically a exported resource is not applied in > the managed node if you don't collect it, so it should not collide with an > "applied" resource. thoughs? > > I understand your argument, b

Re: [Puppet Users] Failed to find [host] via exec

2014-07-14 Thread jcbollinger
On Sunday, July 13, 2014 10:47:26 AM UTC-5, Taylor Leese wrote: > > The work around I went with is to just avoid the "require 'puppet'" line > in my external node classifier so I can avoid this issue completely. I just > ignore the first line of the YAML file in /var/lib/puppet/yaml/facts/ and

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread Kristof Willaert
[snip] You will not be able to collect that resource on the node that exports it > (you would again -- and rightfully -- get a duplicate resource complaint), > but I think otherwise you should be ok. > The documentation for exported resources suggests otherwise: Any node (including the node that

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread José Luis Ledesma
really nice workaround, thanks! On Mon, Jul 14, 2014 at 3:29 PM, jcbollinger wrote: > > > On Saturday, July 12, 2014 6:05:35 AM UTC-5, Jose Luis Ledesma wrote: >> >> Hi all, >> >> I have found a problem setting up exported resources. The problem is >> that for every hosts I want to define i

Re: [Puppet Users] Checking a variable is not 'undef'

2014-07-14 Thread Henrik Lindberg
On 2014-13-07 22:58, José Luis Ledesma wrote: From my point of view is better a warning when a empty string is taken as a false, than some configuration applied erroneously once upgraded to 4.0 We encourage testing with 3.7 future parser. If it turns out to be a problem for many (breakage du

Re: [Puppet Users] how to trigger puppet run on agents remotely

2014-07-14 Thread Yugank Pandey
> > how can i use pssh to ssh into three machines with different private keys > and execute a command. > if you could guide me on how to use private (.pem) files to do so, it will be helpful. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Re: puppet modules export?

2014-07-14 Thread Varun Utagikar
Hey try making a tarball. works for me Varun On Monday, 14 July 2014 03:11:07 UTC+5:30, Tibor Malomsoki wrote: > > I get two puppetserver: > A) Puppetserver: this is the old (I have got modules) > B) Puppetserver: this is the new (I haven't got modules) > > I coppy the enviroments, moduls etc...

[Puppet Users] unable to use varaible in creates attribute

2014-07-14 Thread Supriya Uppalapati
Hi, I am trying to install software using .zip file. I am defining values using varaibles. But it is throwing me an error. *Error: Parameter cwd failed on Exec[extract CZM8XML.zip]: cwd must be a fully qualified path at /etc/puppetlabs/puppet/environments/development/modules/staging/manife

[Puppet Users] Re: unable to use varaible in creates attribute

2014-07-14 Thread Supriya Uppalapati
Hi, Here is the working code for installing websphere installation manager through puppet. *class websphere::installationmanager { $ibm_install = "/opt/test/installationmanager"* *file {"$ibm_install": ensure => directory,}staging::deploy { 'CZM8XML.zip': source => '/stage/

[Puppet Users] Use MCollective to execute test automation (long running job) on lab machines

2014-07-14 Thread Andrii Kalytiuk
Hi, I look into ways to use MCollective to *run test automation* on lab machines. After couple of days of research I still have a question *is MCollective is right tool* to perform all required routines. *So my question is:* *Will it be proper* to use MCollective for following operations on Wi

Re: [Puppet Users] The combined use of Ubuntu and CentOS

2014-07-14 Thread Hunter Haugen
Yep, totally possible. The puppet master daemon is platform-agnostic and uses the information sent from the agent (via `facter`) to know how to compile the catalog. So if your ubuntu agents check in, the master daemon makes ubuntu catalogs. If your centos agents (including the master managing itsel

Re: [Puppet Users] how to trigger puppet run on agents remotely

2014-07-14 Thread Spencer Krum
I've met a number of people who are firing puppet runs with Ansible and Salt. Also, depending on your number of nodes and catalog size, you might simply lower the interval between Puppet runs. I've met people who are as low as 5 or 10 minutes between runs. On Mon, Jul 14, 2014 at 8:11 AM, Yugan

[Puppet Users] ENC fails on first run - Error reading YAML file: No such file or directory - /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml

2014-07-14 Thread Taylor Leese
Hi all - I setup an ENC and classification works for the most part except on the first run. I've noticed that the yaml file in /var/lib/puppet/yaml/facts doesn't exist on the first run so I receive a warning during Vagrant provisioning similar to below. Note, when I run the Puppet agent a subs

[Puppet Users] Puppet CA Server

2014-07-14 Thread huhm4n
I have three puppet masters with separate CA on each and with their own database. I want to make one as the CA server and have the other two point it, how would i do that? I was trying this page http://docs.puppetlabs.com/guides/scaling_multiple_masters.html but I cannot follow the steps. Is th

Re: [Puppet Users] ENC fails on first run - Error reading YAML file: No such file or directory - /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml

2014-07-14 Thread Taylor Leese
I incorrectly redacted the host name in the error message. Here is the correct version: *==> nexus: **Warning: Unable to fetch my node definition, but the agent run will continue:* *==> nexus: **Warning: Error 400 on SERVER: Failed to find nexus.myhost.com via exec: Exe

[Puppet Users] How do I send notification to Puppet Master in an event of file change?

2014-07-14 Thread Kevin Aloysius
How do I monitor a file for a file change and send an [info] log to the Puppet Master / Puppet Dashboard ? I tried audit but it doesn't really help the case as Puppet does not explicitly send a Notification / Changed Log as it comes under the category of unmanaged resource. Is there any other wa

[Puppet Users] Re: how to trigger puppet run on agents remotely

2014-07-14 Thread Nikolay Georgieff
Mcollective is the right way to trigger puppet run. On Wednesday, October 31, 2012 11:57:42 AM UTC-7, Nishant Jain wrote: > > Hello Everybody, > I am looking for a way to trigger puppet rum > remotely. so that i don't need to login into individual nodes and perform > t

Re: [Puppet Users] Puppet CA Server

2014-07-14 Thread José Luis Ledesma
Hi, Changing the ca means that every node signed with one of the other two will need to regenerate its cert and ask for be signed again(including both not ca puppet masters) In the puppet masters that are not a ca you should add the 'ca' and 'ca_server' parameters in the puppet.conf. stop pup