RE: [Puppet Users] Re: ok.. I am going crazy,,

2015-05-14 Thread Ivan Roseland Roseland
Ahhh excellent, I can make this even better then.. -Original Message- From: "Stephen Marlow" Sent: ‎5/‎14/‎2015 8:31 PM To: "puppet-users@googlegroups.com" Subject: Re: [Puppet Users] Re: ok.. I am going crazy,, For what it's worth, variables with a value of undef will be nil in templat

Re: [Puppet Users] Re: ok.. I am going crazy,,

2015-05-14 Thread Stephen Marlow
For what it's worth, variables with a value of undef will be nil in templates. You can use the .nil? method to check them, so you don't need to make a test variable there. Additionally, you should refer to variables in templates with an @, such as @gemfire_users instead of gemfire_users. Here's a

[Puppet Users] Re: ok.. I am going crazy,,

2015-05-14 Thread ivan roseland
> > > yes, crazy,, "sys_gemfirexd::gemfire_users": [ { "name": "", "password": "password_123" } ], <% if gemfire_users_test != "undef" -%> <% gemfire_users.each do |gemfire_users| -%> <%= gemfire_users['name'] -%>=<%= gemfire_users['password']%> <% end -

[Puppet Users] ok.. I am going crazy,,

2015-05-14 Thread ivan roseland
I have some hiera: "sys_gemfirexd::gemfire_users": { "gemfirexd.user.test": { "password": "XX" } }, I have some puppet : $gemfire_users=hiera_hash('sys_gemfirexd::gemfire_users', undef ) if $gemfire_users == undef { $gemfire_users_test = "undef" } else { $

Re: [Puppet Users] Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)

2015-05-14 Thread Joe Koenig
On Monday, May 11, 2015 at 8:38:23 PM UTC-5, Gabriel Filion wrote: > > > If you're trying to access a puppet URI like > https://puppetmaster:8140/.../ then the master is probably waiting for > you to send a client TLS certificate to authenticate yourself. This is > how the puppet master ensure

[Puppet Users] newbie question - puppet mcollective how to assign a class to a node

2015-05-14 Thread Prem Narayanan
Hi, i am just starting to explore the mcollective. i have a multinode application with lot of interdepencies and is trying to use mcollective to sequence it. the individual pieces i have already coded as puppet classes. i want to apply the class to a node thro mco command, is that possible thx

[Puppet Users] CA Master Woes

2015-05-14 Thread rjl
Hi All, I have spent days trying to get a CA Master configuration setup. I have followed the exactly followed the documentation provided by Puppet cannot seem to determine what I am doing wrong. I have DNS configured to Round Robin between 2 Non-CA Puppet Masters. I have one CA Puppet Master. I

Re: [Puppet Users] Fast track to learning Puppet?

2015-05-14 Thread Dan White
First comment: Do you currently use a tool like Jenkins or Mavin to deploy these Java services ? If so, continue.  If not, consider it. My experience with Puppet is that it is not The Universal Tool That Does Everything.  It does a lot, but there are some things that other tools do better.  C

[Puppet Users] Fast track to learning Puppet?

2015-05-14 Thread Ian Hayes
I've given myself the job of learning Puppet over the next couple of weeks, but to be honest I'm a little overwhelmed by the volume of docs available. I'm hoping that if I describe my learning scenario a few kind folks can point me at the appropriate tutorial docs to help fast track this process

Re: [Puppet Users] create puppet module from software install

2015-05-14 Thread Branan Riley
On Thu, May 14, 2015 at 10:11 AM, wrote: > I have installed apache and tomcat from source in the /opt directory. > Once I completed the install I modified the directory and file ownership > and permissions. > I also modified the .conf and .xml files for both tomcat and apache. > Is there a way to

[Puppet Users] create puppet module from software install

2015-05-14 Thread plueders
I have installed apache and tomcat from source in the /opt directory. Once I completed the install I modified the directory and file ownership and permissions. I also modified the .conf and .xml files for both tomcat and apache. Is there a way to capture a directory structure and the modificatio

[Puppet Users] Re: Learning Custom Types Module

2015-05-14 Thread Trevor Vaughan
Terribly sorry to those of you having trouble with the initial release. I neglected to include the 'tests' directory which is required by the Rakefile. This has been fixed and uploaded to the Forge. Thanks! Trevor On Wed, May 13, 2015 at 10:16 PM, Trevor Vaughan wrote: > Hi All, > > Yesterda

[Puppet Users] Re: Anyone really using Postgres for a Hiera backend?

2015-05-14 Thread Corey Osman
What is the use case for a SQL hiera backend? This seems like an oxymoron. Do you have some sort of UI wrapped around it for data input? Also you could just create a data binding terminus for postgres. example: https://github.com/domcleal/foreman_data_binding Corey On Wednesday, May 13, 201

[Puppet Users] Re: Convert Floating point to integer

2015-05-14 Thread Bob Vergeer
Thanks, John. I didn't have another purpose for the shm_size variable. Wasn't using the mount because I'm a rookie and still learning. Bob On Thursday, May 14, 2015 at 10:13:13 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, May 13, 2015 at 2:55:03 PM UTC-5, Bob Vergeer wrote: >> >> Two is

[Puppet Users] Re: Convert Floating point to integer

2015-05-14 Thread jcbollinger
On Wednesday, May 13, 2015 at 2:55:03 PM UTC-5, Bob Vergeer wrote: > > Two issues, removing the decimal places and appending a character. > Trying to generate a /dev/shm line in /etc/fstab that is set to 1G less > than available RAM. > > The line should appear as follows in /etc/fstab: > ... >

Re: [Puppet Users] Anyone really using Postgres for a Hiera backend?

2015-05-14 Thread jcbollinger
On Wednesday, May 13, 2015 at 3:10:29 PM UTC-5, Martin Marcher wrote: > > Funny, I'd rather ask: is anyone *not* using Postgres? > Postgres for PuppetDB for sure, but for an Hiera back end? I'm sure there indeed are people who use a Postgres-based Hiera back end, but I have seen no evidence t

[Puppet Users] Re: error message when I tried to run puppet and apply changes to the system

2015-05-14 Thread jcbollinger
On Wednesday, May 13, 2015 at 4:16:16 PM UTC-5, Chris Zou wrote: > > I am new to Puppet, and I am trying to follow Quest Learning Machine from > Puppet Lab. > > However, every time I tried to run > puppet apply cowsayings/tests/cowsay.pp > > Error message comes up like this: > > Warning:

RE: [Puppet Users] Upgrade puppetdb goes wrong

2015-05-14 Thread Arpin Dominique (Nter)
You are right need more coffee. Thanks! :) Dominique -Message d'origine- De : puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] De la part de Ken Barber Envoyé : 14 mai, 2015 07:22 À : Puppet Users Objet : Re: [Puppet Users] Upgrade puppetdb goes wrong >

[Puppet Users] Re: New MCollective Plugin for OpenSCAP Scanning

2015-05-14 Thread Adam Craig
Thanks for sharing, Trevor. This is an exciting project, and I thoroughly enjoyed your talk on Tuesday. Best, -- Adam On Wednesday, May 13, 2015 at 10:10:48 PM UTC-4, Trevor Vaughan wrote: > > Hi All, > > I presented a piece on a proof of concept that I put together to perform > OpenSCAP scans

Re: [Puppet Users] Upgrade puppetdb goes wrong

2015-05-14 Thread Ken Barber
> Here my setup : > puppetdb-terminus-2.2.2-1.el6.noarch > puppetdb-2.2.2-1.el6.noarch > postgresql93-libs-9.3.6-1PGDG.rhel6.x86_64 > postgresql93-server-9.3.6-1PGDG.rhel6.x86_64 > postgresql93-contrib-9.3.6-1PGDG.rhel6.x86_64 > postgresql93-9.3.6-1PGDG.rhel6.x86_64 > Centos 6.6 > > I try to upgrad

Re: [Puppet Users] Registering a puppet agent node with alternate short hostname or alias

2015-05-14 Thread Anil Aix
Hi Rilindo, Thank you for the reply, let me explain the issue more clearly. We have gcloud instances whose private IPs are DNS registered in our company network as .mycompany.com But these google cloud instances seem to have their own local domain as c. and thus hostname --fqdn gives .c. this

Re: [Puppet Users] Registering a puppet agent node with alternate short hostname or alias

2015-05-14 Thread Anil Aix
Hi Rilindo, Thank you for the reply, let me explain the issue more clearly. We have gcloud instances whose private IPs are DNS registered in our company network as .mycompany.com But these google cloud instances seem to have their own local domain as c. and thus hostname --fqdn gives .c. this