[Puppet Users] Re: Dynamic Environments and Hiera

2013-01-09 Thread Luke Bigum
Hi Brad, On Tuesday, January 8, 2013 10:30:11 PM UTC, Brad Ison wrote: > > Hi, > > I've been using dynamic environments, one per Git branch, similar to > what's described here: > > http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ > > I've come to really like that workflow, bu

[Puppet Users] Re: Question on defines.

2013-01-09 Thread Luke Bigum
Hi James, On Tuesday, January 8, 2013 11:19:13 PM UTC, jdehnert wrote: > > I want to pass a few variables through to the other files in a module. I > have a define statement that sets one default... > > define redis::install ( $port = 6397, $version ) > > What I am unclear on is how far does

[Puppet Users] Getting " ArgumentError: Invalid resource" Error?

2013-01-09 Thread lalit jangra
Hi, I am trying to install puppet-alfresco module as @ https://github.com/jurgenlust/puppet-alfresco. I have updated site.pp at master node as below. #For alfresco module node 'domU-12-31-39-06-3E-24.compute-1.internal'{ include tomcat include postgres include alfresco } Now i am trying to ins

[Puppet Users] Re: Getting " ArgumentError: Invalid resource" Error?

2013-01-09 Thread lalit jangra
Init.pp as below. # Class: alfresco # # This module manages alfresco # # Parameters: # # Actions: # # Requires: # # Sample Usage: # # [Remember: No empty lines between comments and class definition] class alfresco( $user = "alfresco", $database_name = "alfresco", $database_driver =

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Matthew Burgess
On Wed, Jan 9, 2013 at 1:37 AM, Cody Robertson wrote: > Hello! How is everyone this splendid evening? > > I've recently migrated to the latest Puppet and PuppetDB (using the build in > database) however I'm noticing PuppetDB keeps crashing without any errors > that I can find in the logs. I've ran

Re: [Puppet Users] Splunk Module Development Recommendations

2013-01-09 Thread Brendan Murtagh
Thanks for the input Darin. I did want to question why you don't add or have a place in code for the add forward server? Is it because its contained in templates that you reference? On Tuesday, January 8, 2013 2:12:39 PM UTC-5, Darin Perusich wrote: > > I've broken my splunk module in splunk::c

[Puppet Users] Re: Splunk Module Development Recommendations

2013-01-09 Thread Keiran Sweet
HI There, I'm not sure if Luke's splunk work has hit the forge, but you may find some useful splunk/puppet examples here: http://verypowerful.info/ I know he did talk at the Sydney puppet camp last year about this topic, however i've not been able to locate his slides, his contact details are on

Re: [Puppet Users] puppetdb dashboard

2013-01-09 Thread Luke
Thank you this was the issue. I set host = 0.0.0.0 in /etc/puppetdb/conf.d/jetty.ini and service puppetdb restart. On Tuesday, January 8, 2013 5:03:44 PM UTC-4, Stefan Goethals wrote: > > You need to configure PuppetDB to listen on another address than localhost > for the performance dashboard

Re: [Puppet Users] Splunk Module Development Recommendations

2013-01-09 Thread Brendan Murtagh
Hey Keiran, That's one of my sources that I'm using as a guide when developing our module. I think some of his stuff is excessive for our infrastructure so I'm utilizing bits & pieces from his work and building around it. Thanks, Brendan On Jan 9, 2013, at 8:47 AM, Keiran Sweet wrote: > H

Re: [Puppet Users] Problem: Managing F5 BIG-IP Network Devices with Puppet

2013-01-09 Thread MrTeleBird
Hi I have already solved the issue!! for the record. I forgot to export RUBYLIB path: # export RUBYLIB=/etc/puppet/modules/f5/lib/:$RUBYLIB on both master and proxy. After that it run smoothly. Thanks On Wednesday, January 9, 2013 8:47:58 AM UTC+1, MrTeleBird wrote: > > Hi Christopher, > yes

[Puppet Users] Puppet dashboard not enabling inventory

2013-01-09 Thread Luke
Hello, My puppet dashboard is not enabling the inventory tab / node info even though I have: *enable_inventory_service set to true* * * *Pointing to correct port for puppetdb and server in settings.yml.* * * Everything is wide open in auth.conf and puppetdb is working fine. I mean regardless o

[Puppet Users] Re: Puppet dashboard not enabling inventory

2013-01-09 Thread Luke
I should point out that I restarted the dashboard service after making changes. On Wednesday, January 9, 2013 10:11:11 AM UTC-4, Luke wrote: > > Hello, > > My puppet dashboard is not enabling the inventory tab / node info even > though I have: > > *enable_inventory_service set to true* > * > * >

[Puppet Users] Re: Puppet & F5 Network device

2013-01-09 Thread MrTeleBird
Hi, you have to set RUBYLIB path: # export RUBYLIB=/etc/puppet/modules/f5/lib/:$RUBYLIB on both master and proxy. Cheers, Cesar On Friday, November 2, 2012 11:55:53 AM UTC+1, Gavin Williams wrote: > > Hi all > > I'm trying to test the F5 network device support in Puppet 3.0 > > However I seem

[Puppet Users] Regex matching in fileserver config

2013-01-09 Thread Andreas Hilboll
Hi, in the docs at http://docs.puppetlabs.com/guides/file_serving.html#serving-files-from-custom-mount-points there's an example on how to serve private files via [private] path /data/private/%h allow * However, my private files are identical for classes for webservers, i.e. SSL pri

[Puppet Users] Re: Question on defines.

2013-01-09 Thread jcbollinger
On Tuesday, January 8, 2013 5:19:13 PM UTC-6, jdehnert wrote: > > I want to pass a few variables through to the other files in a module. I > have a define statement that sets one default... > > define redis::install ( $port = 6397, $version ) > > What I am unclear on is how far does this de

[Puppet Users] Re: Cannot see node on Live Management

2013-01-09 Thread Bert Cauwelier
Hello, i am having the same problem after installing Puppet enterprise 2.7 but when i want to use mco ping i get # mco ping The Marionette Collective version 1.2.1 /usr/local/bin/mco: command (options) Known commands: I can't seem to ping or i am doing somethiing worng Op dinsdag 21 februar

[Puppet Users] Re: passing parameters

2013-01-09 Thread jcbollinger
On Tuesday, January 8, 2013 4:15:02 AM UTC-6, Michael Hüttermann wrote: > > Hello, > I don't get that example working. Looks like the variable is not set > although "facter" lists it. In my manifest, I can access all Facter > variables, but not the one I've defined the way described in your pos

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Kirk Steffensen
John, I don't believe there is any name resolution issue. Both the CentOS and Ubuntu base boxes have "192.168.33.1 puppet" in their /etc/hosts. From inside the Vagrant VM, a ping to puppet responds immediately, and a tracepath to puppet returns as quickly as I can hit enter, showing sub-milli

[Puppet Users] Puppet & F5 Connection Refused

2013-01-09 Thread MrTeleBird
Hello, when I run on my proxy server: # puppet device --debug --deviceconf /etc/puppet/device/F5-lb-test.conf I get this error: info: starting applying configuration to F5-lb-test at https://operating:operating4lbtest@F5-lb-test/Common debug: Puppet::Device::F5: connecting to F5 device F5-lb-te

[Puppet Users] Explain Manifests and Modules

2013-01-09 Thread jim
Hello all, Can someone please explain why there is a manifests folder in /etc/puppetlabs/puppet e.g. /etc/puppetlabs/puppet/manifests If there is a manifests folder within each modules folder in /etc/puppetlabs/puppet e.g. /etc/puppetlabs/puppet/modules/ntp/manifests Is this directory /etc/pu

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Ken Barber
Damn, I thought John had it :-(. Here's a question I hadn't asked - whats your plugin sync performance like on the puppetmaster node itself? ie. clear all synced files and run it locally and time it, comparing to the other nodes. On Wed, Jan 9, 2013 at 4:02 PM, Kirk Steffensen wrote: > John, I

[Puppet Users] Re: Puppet & F5 Connection Refused

2013-01-09 Thread Gavin Williams
Hi there, I've done some work with the F5 network device support in our env, and haven't had any issues with self-signed certs... Sounds more likely that it's a network/firewall issue... Can you telnet from the puppet server to F5 on port 443? Cheers Gavin On Wednesday, 9 January 2013 16:2

[Puppet Users] Re: ParsedFile & Multi-line...

2013-01-09 Thread Gavin Williams
Anyone got any ideas??? My next thought is to use something like puppet-concat with an ERB template... However not sure how effective that's going to be... Cheers Gavin On Friday, 4 January 2013 16:33:17 UTC, Gavin Williams wrote: > > Afternoon all, > > I'm currently working on adding oranfs

Re: [Puppet Users] Explain Manifests and Modules

2013-01-09 Thread Ken Barber
Normally /etc/puppetlabs/puppet/manifests would contain the main entry point 'site.pp'. These days though with, Exported Node Classification (ie. the dashboard ENC) not everyone uses it and its now become optional. If you don't use an ENC, you can create a site.pp for example - and include a bunch

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Kirk Steffensen
Ken, thanks. Unfortunately, (from a troubleshooting standpoint), it only took one or two seconds to sync stdlib on the local box. rm -rf /var/lib/puppet/lib/* puppet agent --test I saw the same stream of File notices, but they streamed by in real time, instead of taking 10 seconds per notice.

Re: [Puppet Users] Regd:Change of Login Message

2013-01-09 Thread Ryan Coleman
On Tue, Jan 8, 2013 at 9:20 PM, yarlagadda ramya wrote: > *Hi all, > > Can some one please help me with this > > Declare a file resource in a manifest and apply it! Try changing the login > message by setting the content of /etc/motd.* This exercise is suggesting you manage a particular file

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Ken Barber
> Ken, thanks. Unfortunately, (from a troubleshooting standpoint), it only > took one or two seconds to sync stdlib on the local box. > > rm -rf /var/lib/puppet/lib/* > puppet agent --test > > I saw the same stream of File notices, but they streamed by in real time, > instead of taking 10 seconds

Re: [Puppet Users] Re: Dynamic Environments and Hiera

2013-01-09 Thread Brad Ison
On Wed, Jan 9, 2013 at 3:11 AM, Luke Bigum wrote: > > :backends: > - yaml > :hierarchy: > - %{fqdn} > - %{role}_role > - %{pop} > - global > :yaml: > :datadir: /etc/puppet/environments/%{environment}/hiera/ > > So if I push a new feature to branch new_feature, I get Puppet environment

Re: [Puppet Users] How to do partial update for my configurations?

2013-01-09 Thread Ryan Coleman
Hello, Is there a particular need to use an exec for managing your files? Have you considered using templates or managing the static files directly? Here's a doc on templates: http://docs.puppetlabs.com/learning/templates.html If that doesn't work for you, please be more specific as to what prob

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Chris Price
You could also try `puppetdb-foreground --debug` for some more verbose logging. And, is there anything at all in /var/log/puppetdb? On Wednesday, January 9, 2013 3:11:19 AM UTC-8, Matthew Burgess wrote: > > On Wed, Jan 9, 2013 at 1:37 AM, Cody Robertson > > > wrote: > > Hello! How is everyone

Re: [Puppet Users] passenger-3.0.18 command(s) setting env variables to run commands anywhere.

2013-01-09 Thread DJames
created it, but running the commands anywhere still doesnt work. cat /etc/profile.d/pass.sh PATH=$PATH:/usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin ln -s /usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin /usr/bin On Monday, January 7, 2013 6:31:22 PM UTC-5, denmat wrote: > > Hi, > > Option

[Puppet Users] Puppet Enterprise Versioning

2013-01-09 Thread John Julien
Hi, I'm looking for a place to keep current on planned feature and big fixes being included in Puppet Enterprise and the expected release date. I'm also curious if features are cherry picked from Puppet Community. Example, feature 11044 is in Puppet Community 3.0.0. Do I have to wait until PE mov

[Puppet Users] Puppet Enterprise Versioning

2013-01-09 Thread John Julien
Hi, I'm looking for a place to keep current on planned feature and big fixes being included in Puppet Enterprise and the expected release date. I'm also curious if features are cherry picked from Puppet Community. Example, feature 11044 is in Puppet Community 3.0.0. Do I have to wait until PE mov

[Puppet Users] concat and ordering

2013-01-09 Thread David Kerr
I'm attempting to work with the puppetforge haproxy module. The module uses concat and I get how it works, but I'm having some problems with the sequencing. What the module does is: For the listener: order => "20-${name}" // ${name} is the name of the listening service For the balancermember

[Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Wolf Noble
Hi Gang, My colleagues and I are contemplating refactoring our modules to take advantage of the "roles/profiles" paradigm suggested by Craig Dunn in his blog post found here: http://www.craigdunn.org/2012/05/239/ Before we jump feet-first into adopting this paradigm, I thought it a good idea t

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Gary Larizza
The professional services team at Puppet Labs has been using that with customers, and many customers have been happy with what that affords you. You effectively create a series of abstraction layers so that more junior sysadmins can look at a 'Role' and quickly see what's on the node without wadin

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Roman Shaposhnik
Hi! On Wed, Jan 9, 2013 at 1:34 PM, Wolf Noble wrote: > Hi Gang, > > My colleagues and I are contemplating refactoring our modules to take > advantage of the "roles/profiles" paradigm suggested by Craig Dunn in his > blog post found here: > http://www.craigdunn.org/2012/05/239/ I think I've se

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Kirk Steffensen
Here is the strace output from one of the 10-second periods while waiting for the File notice to appear. https://gist.github.com/4497263 The strace output came in two bursts during this 10-seconds. The thing that leaps out at me is that of the 4061 lines of output, 3754 of them are rt_sigpro

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Craig Dunn
On 09/01/2013 13:56, Roman Shaposhnik wrote: I think I've seen this one before and got curious about it as well. It seems that Craig is advocating 1-1 mapping between nodes and roles and that makes me think of the 'roles' as a sort of poor man's ENC. As such, I'd be very curious to hear what ki

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Josh Cooper
Hi Kirk, Do you happen to have SRV lookups enabled via the `use_srv_records` setting? You may want to run tcpdump and look for extraneous DNS lookups. Josh On Wed, Jan 9, 2013 at 2:00 PM, Kirk Steffensen wrote: > Here is the strace output from one of the 10-second periods while waiting > for th

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-09 Thread Josh Cooper
On Wed, Jan 9, 2013 at 2:56 AM, Евгений Верещагин wrote: > OK, I try this; > > 1. Create site.pp with strings: > > file { 'D:/тест.txt': > content => 'Hello, world!', > } > > 2. Run Puppet Agent. > 3. Make file on D: with unreadable name (screenshot) This is definitely a bug in ruby 1.8.7. I can

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-09 Thread Kirk Steffensen
Josh, use_srv_records is not set in puppet.conf. 'puppet config print use_srv_records" shows it set to the default of false. I ran tcpdump from inside the Vagrant VM during pluginsync. On eth1, where the VM is connecting to the puppet master running on the host, the only calls are puppet ca

[Puppet Users] Announce: Puppet 3.1.0-rc1 available

2013-01-09 Thread Matthaus Owens
Puppet 3.1.0-rc1 is a feature release for the 3.x series of Puppet. To see a list of the issues addressed by this release, check out the 3.1.0 version in our issue tracter at: https://projects.puppetlabs.com/versions/288 This is the first "minor" release in the Puppet 3 series. It introduces some

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Cody Robertson
There is nothing in the logs as previously noted. It simply crashed quietly. This is the same for when I'm running it in the foreground with --debug or when it's a daemon. It simply quietly crashes. -- 013-01-09 18:00:15,841 DEBUG [command-proc-89] [bonecp.PreparedStatementHandle] SELECT timest

Re: [Puppet Users] extending an existing type

2013-01-09 Thread Ken Barber
> I am trying to add a property to the User type in order to be able to turn > off the screen saver of the managed users. Everything I have found on custom > types has been around creating an entirely new type rather than extending an > existing one -- except for one sentence on the Custom Types pa

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Ken Barber
Do you get a core dump? Does it seriously just silently 'stop' with no SEGV or anything - even in the forground? On Wed, Jan 9, 2013 at 11:07 PM, Cody Robertson wrote: > There is nothing in the logs as previously noted. It simply crashed quietly. > > This is the same for when I'm running it in th

[Puppet Users] Re: Announce: Puppet 3.1.0-rc1 available

2013-01-09 Thread Eric Sorenson
Hi all, I screwed up and didn't give haus the latest version of the release notes before the release ship sailed -- just a couple of tweaks below that will be important if you want to browse the YARD api docs: # Puppet 3.1 Release Notes ## A word about versioning This is the first "minor" rel

[Puppet Users] Re: Thoughts on roles/profiles class paradigm

2013-01-09 Thread Schofield
I was in a position to build a puppet environment from scratch. After lots of studying and trying different suggestions the profile/role paradigm is proving flexible enough to meet any challenge we have faced thus far. We apply a role to nodes that should be identical (typically clusters of n

[Puppet Users] How to increase performance of managed directories?

2013-01-09 Thread Schofield
I have several directories that are installed and managed with puppet. I am finding the majority of the time of the puppet run is spent validating the directory. Are there any tricks to improve the performance of managed directories? Or a better way than simple file resource with ensure => d

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Cody Robertson
I have no core dumps however I need to make sure I have it set to allow them. It literally just goes kaput - very strange. I've yet to have time to strace it yet today however I did it briefly and it was merely doing a bunch of waits. On Wednesday, January 9, 2013 6:43:05 PM UTC-5, Ken Barber w

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Ken Barber
> I have no core dumps however I need to make sure I have it set to allow > them. Yeah check ulimit -a for the puppetdb user, might need ulimit -c unlimited or some such. > It literally just goes kaput - very strange. I've yet to have time to > strace it yet today however I did it briefly and it

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Roman Shaposhnik
On Wed, Jan 9, 2013 at 2:08 PM, Craig Dunn wrote: > The point was not a 1-1 mapping between nodes and roles (although that was > mentioned), the key point I was trying to make is to add layers of classes > to provide abstraction between your node definition (whether thats in an ENC > or site.pp) a

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-09 Thread Евгений Верещагин
> > This is definitely a bug in ruby 1.8.7. I can see, using Process > Monitor, that ruby is calling CreateFile with a mangled filename. > I think, that bug is in Windows codepage. In Russian console it is cp866. I can change codepage to UTF: chcp 65001, but it work in current session of cmd

Re: [Puppet Users] How to increase performance of managed directories?

2013-01-09 Thread Denmat
Smaller directories? :) But seriously Puppet sucks at distributing large directories (you should see posts to the list going back years on this topic). If you look at the file type resource docs (http://docs.puppetlabs.com/references/stable/type.html#file)you can see you can change the checksum

Re: [Puppet Users] How to increase performance of managed directories?

2013-01-09 Thread Peter Brown
I used to manage a few directories recursively and it was very slow and cumbersome. I just manage the directories themselves if i need to and the files individually. It makes it a bit more complex initially but you get fine grained control over things and it's so much faster. If you really need to