[Puppet Users] Validating more than one type of data structure at a time

2015-06-02 Thread Jacob McCoy Wade
I am trying to find out how I can validate more than one type of data structure for a given value in a manifest? In particular I would like to be able to have either a string or a hash be a valid data structure. Something like: if ($myvar != false) { validate_string($myvar) || validate_hash($my

Re: [Puppet Users] MCollective - Unable to see/interact with client nodes

2015-06-02 Thread Peter Kristolaitis
You're misunderstanding the nature of "server" and "client" in the mcollective architecture. ;) Every node you want to manage in the cluster is a server (i.e. has a valid server.cfg and is running the daemon), and the node(s) that you are issuing commands from is a client (i.e. has a valid cl

[Puppet Users] hiera 2.4.4 literal function not working

2015-06-02 Thread Pete Brown
Hi everyone, I have been porting my puppet management module to puppet 4 and have run across what seems to be a bug but I am not completely sure. My module manages the hiera.yaml file so I need to be able to setup my hierarchy from a hiera variable When this code was running under puppet 3.x i cou

[Puppet Users] MCollective - Unable to see/interact with client nodes

2015-06-02 Thread Tom Tucker
Puppet Peeps, I am tinkering with the community edition of Puppet (version info below) with MCollective. In my environment I want to test basic MCollective functionality without the SSL overhead. Everything looks fine in the logs, but when I run ‘mco ping’ from either the client or server I o

[Puppet Users] Re: Lucid leaving apt.puppetlabs.com

2015-06-02 Thread Melissa Stone
Lucid packages have officially been removed from apt.puppetlabs.com and will no longer be available for download On Wed, Apr 22, 2015 at 11:40 AM, Melissa Stone wrote: > Ubuntu 10.04 (Lucid Lynx) will reach end of life on 2015-04-30 [1], so we > are no > longer building new packages for it and w

[Puppet Users] Setting puppet.client_cert_path and puppet.client_private_key_path on Windows

2015-06-02 Thread Pablo Gosse
I'm trying to bring up a Vagrant box on a Windows host, and provision it using the puppet agent provisioner. Here's the pertinent section of my Vagrantfile: config.vm.provision "puppet_server" do |puppet| puppet.puppet_server = "pg-uni-puppet-01" puppet.client_cert_path = "F:\vagrant-

RE: [Puppet Users] Stupid hiera.yaml wildcard question.

2015-06-02 Thread Robert Davidson
On Tuesday, June 02, 2015 at 12:55 AM, jamese sent: > If you use calling_class as part of the hierarchy in your hiera.yaml file, you > can have files named after the calling class. > > https://docs.puppetlabs.com/hiera/1/puppet.html#special-pseudo- > variables > > This would allow you to create

[Puppet Users] Need Help to add multiple host entries in yaml file instead of repeating host attribute in manifest.

2015-06-02 Thread Unus Humami
Here is the generic code for host entires: class abcd::hosts ( ) inherits abcd::params { host { 'etc_hosts': ensure => 'present', name => $fqdn, ip => $ip, host_aliases => $host_aliases, } ## above values want to populate from yaml file and

Re: [Puppet Users] Stupid hiera.yaml wildcard question.

2015-06-02 Thread Craig Dunn
On Tue, Jun 2, 2015 at 3:35 PM, jcbollinger wrote: > > > On Tuesday, June 2, 2015 at 2:55:16 AM UTC-5, jamese wrote: >> You can also use calling_module, but that probably wouldn't give the >> granularity that you want. > > > > Yes, one of these is the standard way to approach such problems, provi

Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Dan White
Add the debug flag (--debug) and see what you get. Also, put a dummy notify resource in your module file to get an indication that it is being processed. Like this :                     notify {'here I am': } “Sometimes I think the surest sign that intelligent life exists elsewhere in the unive

Re: [Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Edouard Fazenda
Hi Luke, This is also my first post :) But maybe I can help you. So I have created the same class 'sshd' as you. Here the structure : [vagrant@vm01 modules]$ pwd /etc/puppet/modules [vagrant@vm01 modules]$ tree . └── sshd ├── files │ └── sshd_config ├── manifests │ └── init.

Re: [Puppet Users] Stupid hiera.yaml wildcard question.

2015-06-02 Thread jcbollinger
On Tuesday, June 2, 2015 at 2:55:16 AM UTC-5, jamese wrote: > > If you use calling_class as part of the hierarchy in your hiera.yaml file, > you can have files named after the calling class. > > https://docs.puppetlabs.com/hiera/1/puppet.html#special-pseudo-variables > > This would allow you to

[Puppet Users] Re: Can I use the 'contain' function and relationship ordering?

2015-06-02 Thread jcbollinger
On Monday, June 1, 2015 at 6:21:51 PM UTC-5, Stefan Lasiewski wrote: > > Hello Everyone, > > I'm using Puppet 3.8 and I have a question about containment, anchoring > and relationship ordering. > > I am following the Beginner's Guide to Modules >

[Puppet Users] Puppet Learning VM - Resource Ordering Quest - Task 6/6

2015-06-02 Thread Luke Anderson
Hi, Firstly, apologies if i have started a duplicate topic, this is my first post & I couldn't find a topic that matches my question... I ran into a problem when working on the Ordering quest in the Puppet Learning VM. It is when managing the sshd service, during the final task number 6 the qu

Re: [Puppet Users] Stupid hiera.yaml wildcard question.

2015-06-02 Thread jamese
If you use calling_class as part of the hierarchy in your hiera.yaml file, you can have files named after the calling class. https://docs.puppetlabs.com/hiera/1/puppet.html#special-pseudo-variables This would allow you to create a yaml file named after each class in question. You can also use

Re: [Puppet Users] Any advise on this hiera stuff

2015-06-02 Thread Craig Dunn
On Mon, Jun 1, 2015 at 11:42 AM, Twan wrote: > Hiera: > session_managers: > sm001.guest.lan: > - agent01.guest.lan > - agent02.guest.lan > sm02.guest.lan > - agent03.guest.lan > - agent04.guest.lan > > > I need to get the following: > On session managers a list (comman