Re: [Puppet Users] Re: How to group systems using Puppet and hiera?

2014-07-30 Thread Pete Brown
On 29 July 2014 17:24, Grant Street wrote: > I think my problem was I was trying to set the role variable under a > "parameters:" clause in my group yaml file... e > I'm also trying your method, Pete, but I'm hitting a snag. > > I have certname.yaml file that contains Sorry I composed that em

[Puppet Users] Re: Puppet-dashboard issues

2014-07-30 Thread Benjamin Cayzac
Hi ! Problem fixed ! Syntax wasn't good, i found on old doc but i've search again and i've found another syntaxe to do the same thing : "bundle exec rake db:migrate RAILS_ENV=production" And it works ! the database has been generated. I just want to know how to use the dashboard db with puppe

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-07-30 Thread Jason Antman
I've seen those environments. I've worked in them. A few host types in my current environment are like that. IT IS A BUG. The only valid reason for this is either a bug in your manifests/modules, or that things aren't ordered properly. That being said... don't run via cron. If you're using any sor

Re: [Puppet Users] how to use conditional statements

2014-07-30 Thread Jason Antman
Puppet is idempotent. It doesn't work that way. Puppet declares intended state. So you tell puppet "service should be running and files should be there" and Puppet makes it so. If you have a "thing" that should be implemented/executed in a specific way with specific ordering, that's what custom pro

Re: [Puppet Users] Re: custom function to read inifile

2014-07-30 Thread Jason Antman
Before you get any further, you do understand that the inifile has to be on the *master*, right? Just checking, because I've seen a lot of people trying to write functions, and only later realizing that the data they want is on the node, not the master. When I've come up with issues like this (mai

[Puppet Users] Work around for dynamic environments and modules with custom types

2014-07-30 Thread Chris Gibbs
Just wondering if anyone has a work around for this bug https://tickets.puppetlabs.com/browse/PUP-1515 Im trying to use the puppetlabs-mysql module, specifically with the mysql::db custom type. Keep gettng a 400 error. Using r10k to populate environments and pull modules. cheers, -- You re

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

2014-07-30 Thread Jason Antman
Just in case anyone comes by this in the future, maybe I'm missing something, but why not keep this really simple (did you read the type reference docs for host?): @@host { "${::hostname}_exported" : name=> $::hostname, ensure => present, ip => $secondary_ip, } host { $::

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

2014-07-30 Thread Jason Antman
Agreed with everything Schmitt said. This isn't what mcollective is for, that's not how it works, there are tools made especially for this, etc. I'm not saying it isn't possible if you jump through enough hoops. I'm just saying it's an incredibly bad idea. On Mon, Jul 14, 2014 at 2:41 PM, Andrii

Re: [Puppet Users] Wrap Package in a define

2014-07-30 Thread Jason Antman
For future reference... (1) if at all possible (I assume you did this) hacking up upstream modules is bad (2) I'd use pip2pi (https://github.com/wolever/pip2pi) to create a mirror of the modules you want, and then have puppet manage /root/.pip/pip.conf (assuming puppet is running as root) and set:

Re: [Puppet Users] use client_data/catalog/.json for nagios check?

2014-07-30 Thread Jason Antman
I've used two different ways of doing this, depending on whether or not you have this stuff installed/running: (1) if you have PuppetDB, just use that. I probably have a (Python) check plugin for this somewhere if you need it. (2) use `mco puppet status` and parse the output of that These also hav

[Puppet Users] Re: Manifest does work

2014-07-30 Thread jcbollinger
On Tuesday, July 29, 2014 3:28:27 PM UTC-5, Juliano Resende wrote: > > Hi, > > I'm beginner in puppet and i have a problem in implementation using puppet > version 3.4.2, i setup the master and the agent, but the manifests does not > apply on agent. > > [...] > Debug: Using cached certific

[Puppet Users] Re: how to use conditional statements

2014-07-30 Thread jcbollinger
On Tuesday, July 29, 2014 7:58:32 AM UTC-5, Satish Katuru wrote: > > Hi > > Here is my flow: > > Stop service-->copy required files from Master server-->Start service > > Once this is done,I am taking a copy of files on Master Server and > removing the files from original location. > Why? I

Re: [Puppet Users] Re: custom function to read inifile

2014-07-30 Thread Ritesh Nanda
Thanks Jason , i had that thing in mind , i made it part of the function itself to download the file and then read it . Thanks for the concern. Regards, Ritesh On Wed, Jul 30, 2014 at 5:37 AM, Jason Antman wrote: > Before you get any further, you do understand that the inifile has to be > on

Re: [Puppet Users] use client_data/catalog/.json for nagios check?

2014-07-30 Thread Brian Wilkins
We use this one : https://github.com/liquidat/nagios-icinga-checks/blob/master/check_puppetagent But you have to modify it if you are using an earlier version of Python for the date time code to get the difference. It's also good if you check the report file for errors. Rather than just the s

[Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Karolis Pabijanskas
Hi All, I am sure this is going to be something completely stupid, but I just can't find the issue :) I have a very simple module that that needs a different filepath depending on the operating system, so I'm trying to call: $global_bashrc_file = hiera("global_bashrc_file") from my module. The

Re: [Puppet Users] http://yum.puppetlabs.com/el/7Server ?

2014-07-30 Thread Melissa Stone
Hi Louis, el/7Server is now a link to el/7, see https://yum.puppetlabs.com/el/7Server/ On Tue, Jul 29, 2014 at 3:11 AM, Louis Coilliot wrote: > Hello, could you please add a link or copy from el/7 to el/7Server ? > > Like you have for el5 and el6 : > > http://yum.puppetlabs.com/el/6/ > http://

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Johan De Wit
Hi, always use quotes when using facts etc in hiera : :hierarchy: - "%{operatingsystem}" - default hth Johan On 30/07/14 18:21, Karolis Pabijanskas wrote: Hi All, I am sure this is going to be something completely stupid, but I just can't find the issue :) I have a very simple module

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Garrett Honeycutt
On 7/30/14 1:23 PM, Johan De Wit wrote: > Hi, > > always use quotes when using facts etc in hiera : > > :hierarchy: > - "%{operatingsystem}" > - default > > hth > > Johan > > On 30/07/14 18:21, Karolis Pabijanskas wrote: >> Hi All, >> >> I am sure this is going to be something completely s

[Puppet Users] Websphere profile creation with Puppet

2014-07-30 Thread randal cobb
Hello all, I can't seem to find any sort of solution while googling, so here goes: I'm fairly new to Puppet and understand the concepts and solutions I've researched so far. I'm even successfully building servers with all needed software packages. But I'm struggling a bit with one install: W

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Karolis Pabijanskas
Thanks! I knew it was something simple! I just did not restart the puppet master that was all.. hiera works fine with or without the quotes though and they are not required. Thanks again for the tip! Karolis On 30 July 2014 19:03, Garrett Honeycutt wrote: > On 7/30/14 1:23 PM, Johan De Wi

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Christopher Wood
On Wed, Jul 30, 2014 at 08:47:23PM +0100, Karolis Pabijanskas wrote: >Thanks! I knew it was something simple! I just did not restart the puppet >master that was all.. hiera works fine with or without the quotes >though and they are not required. I've had some troubles using all-num

Re: [Puppet Users] http://yum.puppetlabs.com/el/7Server ?

2014-07-30 Thread Louis Coilliot
Nice thanks ! Louis Coilliot 2014-07-30 19:05 GMT+02:00 Melissa Stone : > Hi Louis, > > el/7Server is now a link to el/7, see > https://yum.puppetlabs.com/el/7Server/ > > > On Tue, Jul 29, 2014 at 3:11 AM, Louis Coilliot > wrote: > >> Hello, could you please add a link or copy from el/7 to el/

[Puppet Users] puppet enterprise install error

2014-07-30 Thread Luis Lopez
I'm do this steps: - install puppetmaster in host puppetmaster.domain - configure /etc/puppet/puppet.conf [agent] certname=puppetmaster.domain [master] server=puppetmaster.domain ## FQDN del servidor puppetmaster - restart puppetmaster service - download puppet-enterprise-3.3.0-ubuntu-14

[Puppet Users] Wrap class around define and use it as Require

2014-07-30 Thread yamakasi . 014
Hi Guys, I'm using an ENC to define all my nodes including some modules I want to load, I have the following class/define for this: class mymodule::modules::enable ( $enable_modules = undef ) { $modules_split = split($enable_modules, ',') enableModules { $modules_split: }

[Puppet Users] Dashboard can't find classes

2014-07-30 Thread Stella
I followed this document to install and configure Puppet 3.6.2 and Dashboard 1.2.23 on Red Hat Linux 6.5, both using Apache as web server. http://docs.puppetlabs.com/guides/install_puppet/pre_install.html http://docs.puppetlabs.com/guides/install_puppet/install_el.html http://docs.puppetlabs.com/

[Puppet Users] Re: Dashboard can't find classes

2014-07-30 Thread Stefan Heijmans
Hi, >>However those classes on my puppet master are not being parsed into the dashboard. There is no classed shown in dashboard, even I am sure I downloaded a few modules. You mean, you have not added classes manually to the Dashboard? If so, you do need to do this. Modules available on your Pu