Re: [Puppet Users] Puppet Template for controlling puppet nodes puppet.conf file help

2014-08-08 Thread Matthias Saou
Hi, What I'd recommend is the following in your puppet manifest just before the template() call to your file : $fqdn = downcase($::fqdn) ...and that's it. You will need to puppetlabs-stdlib module. The other solution is to use ruby inside your erb template, with this as the first line of the fi

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-08 Thread Matthias Saou
Hi, This seems like a problem in your yum repositories, or the rpm packages they contain. On a clean system, without running any of this, what does the following do? Does it work? yum install postgresql92-9.2.8-1PGDG.rhel5 Because according to the output you've sent, yum doesn't find the matchin

Re: [Puppet Users] CF3 to PE 3.3 - Hiera Question

2014-08-08 Thread Matthias Saou
Hi, With hiera, you'll need to base all of your logic on fact values. AFAIK, you can't directly use any regexps, but what you could do to achieve to same goal is create a custom fact which would get assigned a specific value if another fact matches a regexp. Another other solution would be uncond

[Puppet Users] Newbie Question on Puppet

2014-08-08 Thread Ganesh Hariharan
Hi All, I have installed Puppet Master and Puppet Agent in two different host machines running CentOS6.5 Generated SSL keys on the client, and exported to server... I could see the agent name in the management console of the master What are the next steps to automate some simple tasks like Ap

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-08 Thread R.I.Pienaar
- Original Message - > From: "Stella" > To: puppet-users@googlegroups.com > Cc: "christopher wood" > Sent: Thursday, August 7, 2014 3:22:29 PM > Subject: Re: [Puppet Users] Install MCollective -- What are the basic > components? > > It works as a charm!!! Many thanks to everyone! > >

[Puppet Users] templates and virtual resources query

2014-08-08 Thread Jason Ball
Hi all, I have a user collection via a custom virtual resource, this allows me to realize users based on their group memberships: Accounts <| unixgroups=="foo" |> this works nicely as centralised authentication is not an option for this particular deployment. I now need to develop a templa

Re: [Puppet Users] Newbie Question on Puppet

2014-08-08 Thread Dan White
Give a look at this: https://forge.puppetlabs.com/puppetlabs/apache Good luck. Let the list know how it turns out. > On Aug 8, 2014, at 2:57 AM, Ganesh Hariharan wrote: > > Hi All, > > I have installed Puppet Master and Puppet Agent in two different host > machines running CentOS6.5 > > Ge

[Puppet Users] How to install GIT on puppet Server

2014-08-08 Thread Satish Katuru
Hi , I wanted to Install GIT on Linux machine using Puppet.I need step by step details.So Can any one help me on this? Where do i download it and where do i need to place these folder...etc Regards, Sathish. -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] Puppetdb query. Search two classes

2014-08-08 Thread Maksim Podlesniy
Thanks, but I says about query like this: ["*and*", ["and", ["=", "type", "Class"], ["=", "title", "Php"]], ["and", ["=", "type", "Class"], ["=", "title", "Nginx"]]] Unfortunately, this query doesn't work. I use generate function and my own python script for puppetdb query.

Re: [Puppet Users] Puppetdb query. Search two classes

2014-08-08 Thread Ken Barber
> Thanks, but I says about query like this: > > ["and", > ["and", > ["=", "type", "Class"], > ["=", "title", "Php"]], > ["and", > ["=", "type", "Class"], > ["=", "title", "Nginx"]]] Think about what this does behind the scenes on the resources endpoint (see the query here: http

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-08 Thread Dan White
package { 'git': ensure => present, } Or a more detailed approach is available at https://forge.puppetlabs.com/puppetlabs/git  Also, check out : https://docs.puppetlabs.com/puppet_core_types_cheatsheet.pdf and "The Trifecta" “Sometimes I think the surest sign that intelligent life exists els

Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-08 Thread Stella
Jose, thank you for the two side notes, very helpful. Will do. On Thursday, August 7, 2014 5:26:51 PM UTC-4, Jose Luis Ledesma wrote: > > Hi, > > A couple of side notes. > 1. You can use the mcollective::plugin defined type to install the > different agents > > 2. It's recommended to use SSL for

[Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-08 Thread Helmut Rickel
Hello John, I made the situation as simple as possible and - unfortunatly - I still can reproduce the problem. I have two nodes called BGHW-DS-T-AA1 and BGHW-DS-T-SA1 and two modules called java and tomcat. The only task of the modules is to copy one file to the node. The module java is used on

[Puppet Users] NIC Module

2014-08-08 Thread Don Dorman
Good morning everyone. I am looking to create a puppet 3.2.4 modules to scan all available IP routes across a lot os servers, and to save the information to a report. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this gro

[Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Stella
Hi all, I installed and configured MCollective 2.5.3 yesterday. Also I have installed several agent plugin: yum install mcollective-filemgr-agent yum install mcollective-nettest-agent yum install mcollective-package-agent yum install mcollective-service-agent yum install mcollective-puppet-agent

Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Christopher Wood
Things to check: Have you installed the mcollective-puppet-agent package on the server and restarted mcollective there? Have you installed mcollective-puppet-client on the client? If you check your package list, some (not all) of the plugins have a separate -client package which you need for y

Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Stella
Hi Chris, Yes, I have installed the mcollective-puppet-agent package on the server and restarted mcollective there (I learned the lesson yesterday that you need to restart). But I have NOT installed mcollective-puppet-client on the client. I am not aware of it at all. After I installed mcolle

Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Johan De Wit
If you are looking for a book : http://shop.oreilly.com/product/0636920032472.do Learning MCollective - Parallel Server Management in Puppet and Chef On 08/08/14 15:56, Stella wrote: Hi Chris, Yes, I have installed the mcollective-puppet-agent package on the server and restarted mcollecti

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-08 Thread Mark Rosedale
Hey Matthias, Thanks for the response. So I do see some additional information that may help. So it appears that puppet does successfully install postgresql and postgresql-server and postgres92, and that explains what did get installed. Notice: /Stage[pre]/Yum::Repo/Exec[refresh-yum-cache]:

Re: [Puppet Users] Access to apt.puppetlabs.com slow for some IP addresses

2014-08-08 Thread Matthaus Owens
Johannes, I don't see anything on our end that would be causing the issue you're seeing. I have enabled some additional logging on the apt repos to get us extra information about what might be going on. I have also opened a ticket https://tickets.puppetlabs.com/browse/CPR-60 to track this issue. P

Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Stella
Thank you Johan! For now, I just need to evaluate if we need to proceed with MCollective. If yes, I will take a look at this book. Thank you for the recommendation. Have a good weekend. On Friday, August 8, 2014 10:35:04 AM UTC-4, Johan De Wit wrote: > > If you are looking for a book : > http:

[Puppet Users] What is the best way to have puppet send email notification?

2014-08-08 Thread Stella
Hi guys, I am now having a working Puppet 3.6.2 environment with Dashboard and MCollective. Now I am wondering what is the best way to have puppet send email notification if an event happens, such as package installed, service stopped, file changed, etc. I googled and it seems there is no de

Re: [Puppet Users] What is the best way to have puppet send email notification?

2014-08-08 Thread José Luis Ledesma
Hi, Look at the tagmail feature https://docs.puppetlabs.com/puppet/latest/reference/config_file_tagmail.html Hth, El 08/08/2014 21:59, "Stella" escribió: > Hi guys, > > I am now having a working Puppet 3.6.2 environment with Dashboard and > MCollective. > > Now I am wondering what is the best

Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-08 Thread José Luis Ledesma
Hi, If I understand correctly you have an include java|tomcat inside the init.pp of each class definition? I don't really know what is happening but I bet that if you remove these lines it will start to work correctly. Regards, El 08/08/2014 15:12, "Helmut Rickel" escribió: > Hello John, > I m

Re: [Puppet Users] What is the best way to have puppet send email notification?

2014-08-08 Thread Stella
Sweeet! It works. I just configured the most basic one without creating 'explicit tag". Very clear document. Thank you Jose! Have a good weekend! On Friday, August 8, 2014 4:03:31 PM UTC-4, Jose Luis Ledesma wrote: > > Hi, > > Look at the tagmail feature > > > https://docs.puppetlabs.com/pu

Re: [Puppet Users] What is the best way to have puppet send email notification?

2014-08-08 Thread Dan White
https://docs.puppetlabs.com/guides/reporting.html “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) On Aug 08, 2014, at 03:59 PM, Stella wrote: Hi guys, I am now having

[Puppet Users] hiera-mysql working with hiera cli but not through puppet agent

2014-08-08 Thread Daniel Kinon
Hello, I'm running opensource hiera 1.3.4 and puppet 3.6.2. I'm attempting to use hiera-yaml and hiera-mysql backends at the same time. When I run hiera on the command line I retrieve the values I expected from both yaml and mysql but when an agent checks in (daemon or manual), it isn't