Re: [Puppet Users] What's your hiera tree look like?

2013-03-22 Thread Keith Burdis
Hi Andy, When trying to implement something like Craig Dunn's roles and profiles pattern with hiera I ended up with: :hierarchy: - %{hostname} - roles/%{role} - profiles/%{software1} - profiles/%{software2} - profiles/%{software3} - profiles/%{software4} - profiles/%{software5} -

Re: [Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-22 Thread Keith Burdis
Most of the classes take a config hash parameter so this would be: $ntp = { 'servers' => ['ntp1.domain.com'], } class { 'system::ntp': config => $ntp, } I use this internally and Byron showed me an example of how he used it with Foreman. - Keith On 22 March 2013 18:46, John Smith wrote

[Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 403 on SERVER: Forbidden request:

2013-03-22 Thread Red Cricket
Hi All, I am trying to follow the documentation at this link: http://docs.puppetlabs.com/pe/latest/quick_start.html When I get to the part where one runs ... sudo puppet agent --test I get this error message ... err: Could not retrieve catalog from remote server: Error 400 on SERVER: Error 40

Re: [Puppet Users] What's your hiera tree look like?

2013-03-22 Thread Ramin K
On 3/20/2013 3:37 PM, Andy Parker wrote: On Tue, Mar 19, 2013 at 2:30 PM, Larry Fast mailto:lfast1...@gmail.com>> wrote: My Hiera tree is turning into a chaotic mess. I'm guessing that my tree structure is one problem source. So I'm wondering how other real users have setup hiera. H

[Puppet Users] Re: What's your hiera tree look like?

2013-03-22 Thread Aaron Mills
Late to the party, but wanted to add my $.02 We also keep hiera, manifests, and modules in a single repository at the moment. Since we use dynamic environments for development (as outlined here: https://puppetlabs.com/blog/git-workflow-and-puppet-environments), we also have a node-level variabl

Re: [Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-22 Thread Gonzalo Servat
On Sat, Mar 23, 2013 at 9:47 AM, Gonzalo Servat wrote: > On Fri, Mar 22, 2013 at 9:11 PM, Dominic Cleal wrote: > >> Perhaps ideally, lenses could be bundled with the software responsible >> for the config file formats themselves so they're more easily kept in >> sync. There are a small number

Re: [Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-22 Thread Gonzalo Servat
On Fri, Mar 22, 2013 at 9:11 PM, Dominic Cleal wrote: > Perhaps ideally, lenses could be bundled with the software responsible > for the config file formats themselves so they're more easily kept in > sync. There are a small number of projects that do this (libvirt, > libguestfs, corosync), but

[Puppet Users] Re: Custom Package Provider Issue

2013-03-22 Thread Adam Venturella
I am running into the EXACT same issue. If I change my provider code and re-sync, the provider works. If I run the configuration immediately after it successfully completes, it fails with: Failed to apply catalog: Parameter provider failed: Invalid package provider... Did you ever solve this i

[Puppet Users] puppet and execution order

2013-03-22 Thread Dan
Hi All, I have a module that executes ifup and ifdown on interfaces. The node file contains the following entries node ip::addr{ "eth0": } node ip::addr{ "bond0": } node ip::addr{ "eth1": } node ip::addr{ "vlan2": } The problem I have is that vlan2 is sat on top of bond0,

[Puppet Users] puppet augeas with more than one array in a single key

2013-03-22 Thread iamauser
I am trying to put together a set of puppet policies for grub/menu.lst. The serial::grubmenulst looks like this : define serial::grubmenulst ( $value ) { $key = $title $context = "/files/boot/grub/menu.lst" augeas { "grubmenulst/${key}": context => "$context",

Re: [Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-22 Thread John Smith
On Friday, March 22, 2013 8:54:50 AM UTC-7, Keith Burdis wrote: > > Good news. I'd encourage people to file bug or feature requests on GitHub > if they run into problems or have ideas for improvements. Tutorial > documentation is coming Real Soon Now (TM) :-) > > - Keith > Keith, What's th

Re: [Puppet Users] facter fact within a custom provider

2013-03-22 Thread Stefan Schulte
On Fri, 22 Mar 2013 10:29:22 -0700 (PDT) Jist Anidiot wrote: > I have a custom package provider. However within the ruby code, I > need access a custom facter fact (which has the path to the > executable which handles the package installation). > > I tried doing lookupvar('bin_path' ) but it c

[Puppet Users] Re: PuppetDB SSL error

2013-03-22 Thread Hugh Cole-Baker
On Friday, March 22, 2013 10:47:15 AM UTC, Russell Parsloe wrote: > I'm running PuppetDB 1.1.1 with Puppet 3.1, both on the same server. > Occasionally nodes report this error: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: >> Could not retrieve resources from the P

[Puppet Users] facter fact within a custom provider

2013-03-22 Thread Jist Anidiot
I have a custom package provider. However within the ruby code, I need access a custom facter fact (which has the path to the executable which handles the package installation). I tried doing lookupvar('bin_path' ) but it complained "undefined method `lookupvar'" So how do I reference a fact

Re: [Puppet Users] disable puppet hostname resolution in standalone

2013-03-22 Thread Keith Burdis
Try adding an entry for your hostname in /etc/hosts - for example: 127.0.0.1 server1 - Keith On 22 Mar 2013 08:38, "bibop554" wrote: > > Hi, > > > > I am using puppet 2.6.2-5 in debian 6.0.3. > > I would like to execute puppet in standalone, with "puppet apply", but > puppet does not start

[Puppet Users] Rake tests for hiera

2013-03-22 Thread Maarten Thibaut (mthibaut)
Hi, I'm having a hard time figuring out how to make rake spec tests work correctly with hiera and puppet 3. Should I just give up for now until the various gems work with puppet 3? -- maarten -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. T

Re: [Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-22 Thread Keith Burdis
Good news. I'd encourage people to file bug or feature requests on GitHub if they run into problems or have ideas for improvements. Tutorial documentation is coming Real Soon Now (TM) :-) - Keith On 22 March 2013 15:46, John Smith wrote: > thank you very much!!! > working much better now :

[Puppet Users] Re: syntax problems trying to use Keith Burdis's erwbgy/system module without Hiera

2013-03-22 Thread John Smith
thank you very much!!! working much better now :) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this gro

[Puppet Users] Re: Still problem using Chocolatey provider on Windows

2013-03-22 Thread wernerbahlke
I got it to work on Windows 7. On Windows 8 it would not find the provider. But the provider does not install the package completely for me yet. As a workaround I am using an exec of a powershell script. On Wednesday, March 20, 2013 6:04:30 PM UTC-4, wernerbahlke wrote: > > As some before me on

[Puppet Users] Re: how to call a class from different module than current

2013-03-22 Thread jcbollinger
On Friday, March 22, 2013 3:49:38 AM UTC-5, MrTeleBird wrote: > > Hi dear Users, > > I've been looking in internet and on the puppet wiki website but i am > still confused about this. > > Lets say I have 2 Modules: A and B > > What I want to do is call a class on module A directly from module B.

[Puppet Users] Re: Windows agent got a 'puppet:///' file source error

2013-03-22 Thread RAM
Yes: [root@LUXMKTaimvm2 files]# pwd;ls -l /etc/puppet/modules/tableau/files total 568648 -rwxr-xr-x 1 root root 0 Mar 21 13:30 TableauServer.exe On Thursday, March 21, 2013 6:20:27 PM UTC-5, Ellison Marks wrote: > > Are the permissions ok on that file? That is, is it readable by the ma

[Puppet Users] Re: apt-get update before installing a package. The right way?

2013-03-22 Thread jcbollinger
On Thursday, March 21, 2013 6:16:07 PM UTC-5, Sam Morrison wrote: > > Hi, > > I've been battling with trying to get our puppet to do the following: > > Install all sources.list, apt-keys > then: > Run an apt-get update > then: > install Packages > > I've tried a few ways. > > 1. Set a default req

[Puppet Users] Re: Nested case

2013-03-22 Thread Dragos R
Thanks, Its not mentioned and I tried, did not work. No problem, if's are ok too. Dragos On Friday, March 22, 2013 3:35:12 PM UTC+2, llowder wrote: > > > > On Friday, March 22, 2013 8:23:31 AM UTC-5, Dragos R wrote: >> >> Can I make use of nested cases like this ? >> >> case $operatingsystem: {

[Puppet Users] Re: Nested case

2013-03-22 Thread llowder
On Friday, March 22, 2013 8:23:31 AM UTC-5, Dragos R wrote: > > Can I make use of nested cases like this ? > > case $operatingsystem: { >case $kernelmajorversion: { > '6.1' : { code } > '6.2' : { code } > default >} > } > > Have you tried? If you put

[Puppet Users] Nested case

2013-03-22 Thread Dragos R
Can I make use of nested cases like this ? case $operatingsystem: { case $kernelmajorversion: { '6.1' : { code } '6.2' : { code } default } } Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Re: LSB Fact resolution in the absence of -lsb package

2013-03-22 Thread jcbollinger
On Wednesday, March 20, 2013 12:07:22 PM UTC-5, Wolf Noble wrote: > > > Well, the motivation behind this is easy collaboration. All my modules > really care about is lsbmajdistrelease and > lsbdistid/osfamily/operatingsystem. > Stepping back a bit though, the underlying question is what's the

[Puppet Users] Re: Need a puppet manifest to initialize a puppetmaster

2013-03-22 Thread Daniel Schaefer
I found the answer to my "search keyword question": http://lmgtfy.com/?q=bootstrap+puppetmaster The solutions range from bash scripts to puppet manifests that can be run by "puppet apply". I hope this helps others. -- You received this message because you are subscribed to the Google Groups "P

Re: [Puppet Users] Announce: Puppet Dashboard 1.2.23 Available

2013-03-22 Thread Dan White
Excellent ! “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) - Original Message - From: "Moses Mendoza" To: puppet-users@googlegroups.com Sent: Friday, March 22, 2013 12

Re: [Puppet Users] apt-get update before installing a package. The right way?

2013-03-22 Thread Brian Lalor
On Mar 21, 2013, at 7:16 PM, Sam Morrison wrote: > Install all sources.list, apt-keys > then: > Run an apt-get update > then: > install Packages With the Puppet apt module, apt-get update gets called after installing a new source. Or at least that's how I've managed to make it work. But it do

[Puppet Users] Re: how to call a class from different module than current

2013-03-22 Thread Russell Parsloe
You can just call the full reference to the class. So if you want to call the class *dofunkystuff *from *modulea *in *moduleb*, put this in one of your module B manifests: include modulea::dofunkystuff Is this what you needed? -- You received this message because you are subscribed to the G

[Puppet Users] PuppetDB SSL error

2013-03-22 Thread Russell Parsloe
I'm running PuppetDB 1.1.1 with Puppet 3.1, both on the same server. Occasionally nodes report this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not retrieve resources from the PuppetDB at > puppet.mydomain.local:8081: SSL_connect SYSCALL returned=5 er

Re: [Puppet Users] Agent nodes not appearing in Enterprise live management

2013-03-22 Thread Martin Alfke
Hi Steve, On 22.03.2013, at 10:49, Steve F wrote: > Hi all, > > First off, I'm very much a new user when it comes to Puppet, just trying to > get my head around all that it can do so I'm assuming I've missed something > extremely obvious. > > I have a small setup consisting of three virtual m

[Puppet Users] Agent nodes not appearing in Enterprise live management

2013-03-22 Thread Steve F
Hi all, First off, I'm very much a new user when it comes to Puppet, just trying to get my head around all that it can do so I'm assuming I've missed something extremely obvious. I have a small setup consisting of three virtual machines on the same subnet who can all happily talk to each other

Re: [Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-22 Thread Dominic Cleal
On 22/03/13 04:02, Gonzalo Servat wrote: > Hi All, > > I just ran into a frustrating Augeas problem, which I thought I'd share > with you all. > > We run a cron every morning to fetch the latest RPMs (for the packages > we're interested in) from various places such as rpmforge, EPEL, etc. > > Th

[Puppet Users] Re: Puppet master on Apache Passenger No such file or directory - config/environment.rb

2013-03-22 Thread chenzhen yu
I met the same problem with you.Thank you for solving this problem.I'm in this trouble from several days. 在 2012年7月26日星期四UTC+8上午2时56分32秒,banjer写道: > I solved it. My puppetmaster and puppet-dashboard apache configs were > conflicting. Looks like it was related to RackBaseURI and RailsBaseUR

[Puppet Users] how to call a class from different module than current

2013-03-22 Thread MrTeleBird
Hi dear Users, I've been looking in internet and on the puppet wiki website but i am still confused about this. Lets say I have 2 Modules: A and B What I want to do is call a class on module A directly from module B. I know it is possible to call different classes within a module by using inh

[Puppet Users] disable puppet hostname resolution in standalone

2013-03-22 Thread bibop554
Hi, I am using puppet 2.6.2-5 in debian 6.0.3. I would like to execute puppet in standalone, with "puppet apply", but puppet does not start because it can't resolv the hostname to any IP (which is normal since i have no reason to have a hostname that resolves to an IP) Is it possible to somehow

[Puppet Users] new puppet user with metadata problem

2013-03-22 Thread ericmlarkin
I'm getting this on a number of my systems, some rhel 5 and some rhel 6. Some new and some old. Any thoughts? thanks [root@x yum.repos.d]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) [root@x yum.repos.d]# yum clean all Loaded plugins: rhnplugin, security Cleaning