[Puppet Users] Re: Best way to do custom facts based on 3rd party data

2014-10-24 Thread 'Kimo Rosenbaum' via Puppet Users
Thanks. Here's a simplified version of what I ended up doing (for anyone searching for a similar thing): In custom_functions/lib/puppet/parser/functions/determine_role.rb: module Puppet::Parser::Functions newfunction(:determine_role, :type => :rvalue) do |args| # args[0] should be a fact n

Re: [Puppet Users] hiera-eyaml - performance implications?

2014-10-24 Thread Ramin K
On 10/24/14 12:01 PM, Tim Skirvin wrote: I've started investigating hiera-eyaml as a tool for managing secrets within our puppet repository. It looks pretty promising, especially in connection with 'show_diff => false'. For those that haven't seen it: http://puppetlabs.com/blog/e

Re: [Puppet Users] hiera-eyaml - performance implications?

2014-10-24 Thread Christopher Wood
On Fri, Oct 24, 2014 at 02:01:27PM -0500, Tim Skirvin wrote: > I've started investigating hiera-eyaml as a tool for managing > secrets within our puppet repository. It looks pretty promising, > especially in connection with 'show_diff => false'. For those that > haven't seen it: > >

[Puppet Users] hiera-eyaml - performance implications?

2014-10-24 Thread Tim Skirvin
I've started investigating hiera-eyaml as a tool for managing secrets within our puppet repository. It looks pretty promising, especially in connection with 'show_diff => false'. For those that haven't seen it: http://puppetlabs.com/blog/encrypt-your-data-using-hiera-eyaml T

[Puppet Users] schedule metaparameter

2014-10-24 Thread Mark Rosedale
Hello, I'm looking to start to implement scheduling for certain resources within puppet. My one question is this. If I have a schedule set on resource 'foo' does that prohibit that resource from being updated if I run puppet agent by hand? What I'm wondering is if I end up needing to do puppe

Re: [Puppet Users] command 'store report' version 2 is deprecated?

2014-10-24 Thread Ken Barber
> I recently changed over to a postgres back end. Now puppetdb.log seems to be > awash in these errors. > > I'm pretty sure everything is up to date: > > > # rpm -qa | grep puppet > puppetlabs-release-6-11.noarch > puppet-server-3.7.2-1.el6.noarch > puppetdb-2.2.2-1.el6.noarch > puppet-3.7.2-1.el6.

[Puppet Users] command 'store report' version 2 is deprecated?

2014-10-24 Thread JonY
I recently changed over to a postgres back end. Now puppetdb.log seems to be awash in these errors. I'm pretty sure everything is up to date: # rpm -qa | grep puppet puppetlabs-release-6-11.noarch puppet-server-3.7.2-1.el6.noarch puppetdb-2.2.2-1.el6.noarch puppet-3.7.2-1.el6.noarch puppetdb-te

Re: [Puppet Users] pull defined type into puppet template?

2014-10-24 Thread Wil Cooley
On Fri, Oct 24, 2014 at 10:07 AM, Wil Cooley wrote: > as Trey suggested, the `concat::fragment` type in the puppetlabs/concat > module, > Er, as James suggested; sorry. Wil -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from

Re: [Puppet Users] pull defined type into puppet template?

2014-10-24 Thread Wil Cooley
On Thu, Oct 23, 2014 at 8:50 AM, Trey Ormsbee wrote: > I working with a dynamic config file template, I have a section for > global options, then a dynamic section that i want to populate with > multiple defined entries. > > example config file > > #global options > config_option1=setting1 > co

Re: [Puppet Users] example hiera.yaml that uses example42-network?

2014-10-24 Thread Wil Cooley
On Fri, Oct 24, 2014 at 7:49 AM, Anthony Clark wrote: > Hi All, > > Does anyone use example42-network with Hiera? I'm trying to find an > example in Hiera that configures that module. > > https://forge.puppetlabs.com/example42/network/readme > > So far I've tried, in .yaml (Hiera works OK with h

Re: [Puppet Users] Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Wil Cooley
On Thu, Oct 23, 2014 at 9:52 AM, Andreas Dvorak wrote: > Dear all, > > since today the puppet agent does not work anymore if it is executed by > service. > I prints out: > Could not retrieve local facts: Could not find fact 'define_fact' > > If I run puppet agent -t I do not get the message. > I

Re: [Puppet Users] Re: Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Andreas Dvorak
Hi, thank you for the answer. No I don't have multiple facter installed. find / -name facter /usr/bin/facter /usr/lib/ruby/site_ruby/1.8/facter /var/lib/puppet/lib/facter Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe f

[Puppet Users] Re: Questions about puppet classes and parameters

2014-10-24 Thread liu.cy
in general, /etc/puppet/manifests/site.pp is the entry point of puppet manifests, the content always be [import 'nodes/*.pp']. create pp file in /etc/puppet/manifests/nodes directory to save your all node definitions. node definition contains variables, expressions, classes. it defines which fun

[Puppet Users] Error: Could not run: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A

2014-10-24 Thread Jeff Sparrow
I am trying to copy a current Puppet Master server on one domain and move it to another. Im finding that its very hard to try to change all the config remanence. Is there an easy way to do this, or a step by step best practice? I have grepped most of the old fqdn name and changed it to the ne

[Puppet Users] Re: pull defined type into puppet template?

2014-10-24 Thread Trey Ormsbee
James thanks for suggesting concat, it worked perfectly; the examples on the page were more then enough to get me going. Thanks, On Friday, October 24, 2014 9:08:18 AM UTC-5, Trey Ormsbee wrote: > > Concat might work, let me toy with this, ill post back if i get a > working example. > >

[Puppet Users] example hiera.yaml that uses example42-network?

2014-10-24 Thread Anthony Clark
Hi All, Does anyone use example42-network with Hiera? I'm trying to find an example in Hiera that configures that module. https://forge.puppetlabs.com/example42/network/readme So far I've tried, in .yaml (Hiera works OK with hostname, environment, etc etc) --- network::interfaces_hash: eth

Re: [Puppet Users] It's possible create fact search messages error

2014-10-24 Thread Felix Frank
On 10/21/2014 06:06 PM, New wrote: > Hello > I need create fact that check the messages log and find any error with > every execution of puppet. > The objective is check if any error appear in any execution of puppet > and return the name of the class fail. > Thanks!!! Hi, have you tried storing

[Puppet Users] Re: pull defined type into puppet template?

2014-10-24 Thread Trey Ormsbee
Concat might work, let me toy with this, ill post back if i get a working example. -- 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...@go

Re: [Puppet Users] Re: Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Kylo Ginsberg
On Fri, Oct 24, 2014 at 5:43 AM, Andreas Dvorak wrote: > After downgrade facter to 1.7.1 the error is gone. > Then I did the update again and the error was back again. > Can you double-check that this server doesn't have multiple versions of facter installed? E.g. this can happen with one instal

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Christopher Webber
Maybe do something with create_resources and hiera? It has been a while since I have done it so I don’t have code handy but it is worth looking at. — cwebber > On Oct 24, 2014, at 5:41 AM, Denny wrote: > > thanks, but this would be far to much work for like 100 vhosts, which I want > to sort

[Puppet Users] Re: Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Andreas Dvorak
After downgrade facter to 1.7.1 the error is gone. Then I did the update again and the error was back again. I have many server that already have the version 2.1, without an update. I don't understand why the update does not work. -- You received this message because you are subscribed to the G

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Denny
thanks, but this would be far to much work for like 100 vhosts, which I want to sort into 2-3 groups of vhosts in fact, it's probably easier to put them into different directories Am Freitag, 24. Oktober 2014 14:27:47 UTC+2 schrieb cwebber: > > Ok, > > So when you call `access_log_file => “wordp

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Christopher Webber
Ok, So when you call `access_log_file => “wordpress_${access_log_file}”` puppet is pulling $access_log_file from the scope in which you called apache::vhost what you probably want to do is something like: $vhost_name = ‘vhost.example.com' $vhost_type = ‘wordpress’ apache::vhost {$vhost_name:

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Denny
puppetlabs-apache (v1.1.1) Am Freitag, 24. Oktober 2014 13:35:23 UTC+2 schrieb cwebber: > > Denny, > > Which apache module are you using? > > — cwebber > > On Oct 24, 2014, at 12:32 AM, Denny > > wrote: > > Hi there, > > this is - for sure - pretty easy to solve but I'm a bit stuck right now... >

Re: [Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Christopher Webber
Denny, Which apache module are you using? — cwebber > On Oct 24, 2014, at 12:32 AM, Denny wrote: > > Hi there, > > this is - for sure - pretty easy to solve but I'm a bit stuck right now... > > I want to add a prefix to my apache-vhost access and error logs depending on > what kind of appli

[Puppet Users] Re: Puppet development IDE (Geppetto) integrated within Eclipse using puppet & hiera - puppet module

2014-10-24 Thread soumen trivedi
Apologies for the delay in response. This module will install eclipse and install Geppetto, Ruby DLTK, etc. as features into Eclipse. Required in situations where you are building dev environments frequently and want to give dev the capability to start all over again if something goes wrong wit

[Puppet Users] unable to establish connection between agent and master.

2014-10-24 Thread hunkeelin
I know this question has been asked before in many different variant. I read all the post related to the problem but I cannot get agent and master talking to each other. I boot up 2 vm via vmwork station both running on linuxmint 17. I'll start this thread by telling what's my /etc/hosts and /e

[Puppet Users] apache::vhost add prefix to logfiles

2014-10-24 Thread Denny
Hi there, this is - for sure - pretty easy to solve but I'm a bit stuck right now... I want to add a prefix to my apache-vhost access and error logs depending on what kind of application is installed on this vhost Right now my config looks something like this: apache::vhost { 'vhost.example.co

[Puppet Users] Re: pull defined type into puppet template?

2014-10-24 Thread james . eckersall
Hi Trey, You could always use the concat module. https://forge.puppetlabs.com/puppetlabs/concat Create the global fragment in the class and then use a defined type to create a concat fragment for each entry that you want. You can pass a template to each fragment. -- You received this message