[Puppet Users] Low catalog duplication rate

2013-07-12 Thread ak0ska
Hello, We have some performance issues with PuppetDB and I believe our low catalog duplication rate is partly responsible (7.5% atm). I would like to understand this problem better, and ask what's the best way to track down catalogs that change too often. I assumed the catalog hash (in certnam

Re: [Puppet Users] Fwd: [Module team] Much ado about modules

2013-07-12 Thread Alessandro Franceschi
On Tuesday, July 9, 2013 6:23:39 PM UTC+2, jcbollinger wrote: > > > > On Monday, July 8, 2013 11:02:25 AM UTC-5, Ashley Penney wrote: >> >> >> This is definitely something we want to do and need to do. I've been a >> little hesitant to wade down into the whole "these are the specific >> parame

[Puppet Users] ERB template pain

2013-07-12 Thread Ivailo Tanusheff
Hi, I have stupid situation that I may workaround but I think there is an elegant way to deal with. Still I need the community help. In some class X I have: $control = { dev => { id => 7, name => 'GG' }, prod => { id => 1, name => 'Info' } } In some other class, which I

[Puppet Users] Same package name for gem and deb

2013-07-12 Thread Markus "Shorty" Uckelmann
Hi all, I want to do the following: package { 'zookeeper-deb': ensure => 'installed', name => 'zookeeper', } package { 'zookeeper-gem': ensure => 'installed', name => 'zookeeper', provider => 'gem', } This just fails with "Cannot alias Package[zookeeper-gem] t

Re: [Puppet Users] Unable to send puppet reports to foreman

2013-07-12 Thread Med
for the record I'm reply to this old thread. in the setting page, change the trusted_puppetmaster_hosts to include your puppet hostname. eg: ['ssfpuppetd01'] Le vendredi 8 février 2013 20:40:41 UTC+1, David Schmitt a écrit : > > On 2013-02-07 22:50, Jagga Soorma wrote: > > Hi Guys, > > > > I

[Puppet Users] Cisco Networkdevice Module

2013-07-12 Thread Markus Burger
We just released an internally developed puppet-networkdevice module in the hope that some other folks might be interested in it :). It's currently still in an early stage but should be pretty usable for the basic usecases. -> https://github.com/uniak/puppet-networkdevice ## Overview The Cisc

[Puppet Users] Puppet master permissions

2013-07-12 Thread Piotr Jasiulewicz
Hi All, Having a problem with puppet master. Started crashing for no real reason and then after fiddling aroung started to get a permission problem: root@puppet:/etc# puppet master --debug --verbose --no-daemonize debug: Failed to load library 'selinux' for feature 'selinux' debug: Puppet::Type:

[Puppet Users] Purged packages cause servers to always list as "changed" in Dashboard

2013-07-12 Thread Kim Scarborough
So I have a module that set several packages to "purged". This generates messages like this in the log on every run: puppet-agent[27671]: (/Stage[main]/Foo/Package[ghostscript]/ensure) created That doesn't bother me in and of itself, but the problem is that those messages mark the server as "Ch

[Puppet Users] Re: Same package name for gem and deb

2013-07-12 Thread Paul Tötterman
> > I understand that from the Puppet point of view both are package resources with the same name. But from the human(my) side this doesn't > make much sense. > May I suggest a couple of workarounds? - Use fpm to convert the gem to a deb. - Use fpm to create a deb package called zookeeper-d

[Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Christian Flamm
Hi, I'm having trouble understanding the added value Virtual Resources provide. Let's say I'm having two different modules (that usually are assigned to different agents) that both contain a common resource (let's say a user). If I want to easily make it possible to assign both modules to the sa

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Matthew Burgess
On 12 July 2013 15:45, Christian Flamm wrote: > > My question: How is that different, more convenient or more flexible than > extracting that admin user into its own module? > I guess the main advantage is one of containing the knowledge of that user into the thing that needs to know about it.

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Nan Liu
On Fri, Jul 12, 2013 at 7:45 AM, Christian Flamm < christian.le.fl...@gmail.com> wrote: > Hi, > I'm having trouble understanding the added value Virtual Resources > provide. Let's say I'm having two different modules (that usually are > assigned to different agents) that both contain a common reso

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Christian Flamm
Am Freitag, 12. Juli 2013 17:03:11 UTC+2 schrieb Nan Liu: > > On Fri, Jul 12, 2013 at 7:45 AM, Christian Flamm > > > wrote: > >> Hi, >> I'm having trouble understanding the added value Virtual Resources >> provide. Let's say I'm having two different modules (that usually are >> assigned to di

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Nan Liu
On Fri, Jul 12, 2013 at 8:11 AM, Christian Flamm < christian.le.fl...@gmail.com> wrote: > > > Am Freitag, 12. Juli 2013 17:03:11 UTC+2 schrieb Nan Liu: > >> On Fri, Jul 12, 2013 at 7:45 AM, Christian Flamm >> wrote: >> >>> Hi, >>> I'm having trouble understanding the added value Virtual Resources

[Puppet Users] Permission problem on puppet master

2013-07-12 Thread Piotr Jasiulewicz
Hi, having some problems running puppet: root@puppet:/etc# puppet master --debug --verbose --no-daemonize debug: Failed to load library 'selinux' for feature 'selinux' debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderDirectoryservic

Re: [Puppet Users] Puppet master permissions

2013-07-12 Thread Brian Mathis
Do you have SELinux enabled on the server? See if that file has the correct tags by using "ls -Z'. You can also see if you have any errors by checking the selinux audit log, usually in /var/log/audit. ❧ Brian Mathis On Fri, Jul 12, 2013 at 8:26 AM, Piotr Jasiulewicz wrote: > Hi All, > > H

[Puppet Users] PUPPETDB and pgpool II

2013-07-12 Thread Robert Bachmann
I am trying to set up puppet in an HA environment using pgpool to connect to the postgres DB and I get this kind of thing in the pgpool log any ideas? 2013-07-12 11:56:45 LOG: pid 12275: DB node id: 1 backend pid: 732 statement: DISCARD ALL 2013-07-12 11:57:47 LOG: pid 1: connection rec

Re: [Puppet Users] PUPPETDB and pgpool II

2013-07-12 Thread Ken Barber
Looks like a fault with pgpool specifically. The PuppetDB error is just an effect of a forced disconnection. Perhaps you need to reach out to the pgpool/postgresql mailing lists for advice? I can certainly help with PuppetDB related items, but if pgpool is segfaulting I'm pretty sure its a bug on

Re: [Puppet Users] Purged packages cause servers to always list as "changed" in Dashboard

2013-07-12 Thread Stefan Schulte
On 12.07.2013 06:57, Kim Scarborough wrote: > So I have a module that set several packages to "purged". This generates > messages like this in the log on every run: > > puppet-agent[27671]: (/Stage[main]/Foo/Package[ghostscript]/ensure) created > > That doesn't bother me in and of itself, but the

[Puppet Users] ssh_authorized_key - does not show up in "puppet resource"

2013-07-12 Thread Dan White
I am getting into managing user accounts with Puppet - and having a blast ! I stumbled on this and wanted to ask: If I type : I get: puppet resource user The expected puppet list of all the logins. puppet resource file Error: Could not run: Listi

Re: [Puppet Users] ssh_authorized_key - does not show up in "puppet resource"

2013-07-12 Thread Stefan Schulte
On 12.07.2013 20:06, Dan White wrote: > I am getting into managing user accounts with Puppet - and having a blast ! > > I stumbled on this and wanted to ask: > > If I type : I get: > puppet resource user The expected puppet list of all the logins. > puppet re

Re: [Puppet Users] dashboard groups

2013-07-12 Thread Peter Berghold
On Fri, Jul 12, 2013 at 2:22 AM, David Schmitt wrote: > >> > Usually that is handled by adding a class or variable to the group and > checking on that. > > I actually tried that and ran into an issue. Here's the setup: global ---> all hosts belong to this | + email::masterd

[Puppet Users] Hiera Dummy Question

2013-07-12 Thread Brian Warsing
Hi, I have a simple hiera data file: # /etc/puppet/hiera/defaults.yaml --- test: message: This message brought to you by hiera I run `sudo hiera test` and get: {"message"=>"This message brought to you by hiera"} I then create a test class: # test.pp class test ($message) { notify {"Param

Re: [Puppet Users] Hiera Dummy Question

2013-07-12 Thread Dan White
What is in your /etc/puppet/hiera.yaml configuration file ? “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: "Brian Warsing" To: puppet-u

[Puppet Users] is there a way to declare all classes in a namespace?

2013-07-12 Thread m4lk4v
Say I have the following classes: foo foo::bar::one foo::bar::two Is there a way to declare all classes in the foo::bar namespace at once? I would like a way to easily add resources to a namespace in a module by just adding a proper file in modules/foo/bar/three.pp and then letting some statem

Re: [Puppet Users] ssh_authorized_key - does not show up in "puppet resource"

2013-07-12 Thread Dan White
Great answer.. On the second point -- how to generate an answer -- in /etc/ssh/sshd_config is a paramer named AuthorizedKeysFile which defaults to ~/.ssh/ authorized_keys That is a starting point ! Thanks for responding. “Sometimes I think the surest sign that intelligent life exists el

Re: [Puppet Users] ssh_authorized_key - does not show up in "puppet resource"

2013-07-12 Thread Stefan Schulte
On 12.07.2013 21:45, Dan White wrote: > Great answer.. > > On the second point -- how to generate an answer -- in > /etc/ssh/sshd_config is a paramer named AuthorizedKeysFile which > defaults to > > ~/.ssh/authorized_keys > > That is a starting point ! > Yeah you're probably right that you cou

[Puppet Users] Re: is there a way to declare all classes in a namespace?

2013-07-12 Thread llowder
On Friday, July 12, 2013 11:21:09 AM UTC-7, m4l...@gmail.com wrote: > > Say I have the following classes: > > foo > foo::bar::one > foo::bar::two > > Is there a way to declare all classes in the foo::bar namespace at once? > Not really, but you can have foo::bar look like: class foo::bar { i

Re: [Puppet Users] Purged packages cause servers to always list as "changed" in Dashboard

2013-07-12 Thread Kim Scarborough
On Friday, July 12, 2013 2:04:36 PM UTC-4, Stefan Schulte wrote: > Are you running on RedHat (or some other OS that uses yum)? You may hit > https://projects.puppetlabs.com/issues/11450 in this case. Specifying an > ensure state of `absent` should work as a workaround on these platforms. > > I

[Puppet Users] Re: Hiera Dummy Question

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 2:04:36 PM UTC-5, Brian Warsing wrote: This: > Error: Could not find data item test::message in any Hiera data file and > no default supplied at /etc/puppet/manifests/test.pp:17 on node node.foo.bar Tells you exactly what the problem is. Puppet is trying to look up a

[Puppet Users] Re: is there a way to declare all classes in a namespace?

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 3:20:05 PM UTC-5, llowder wrote: > > > > On Friday, July 12, 2013 11:21:09 AM UTC-7, m4l...@gmail.com wrote: >> >> Say I have the following classes: >> >> foo >> foo::bar::one >> foo::bar::two >> >> Is there a way to declare all classes in the foo::bar namespace at once?

Re: [Puppet Users] Purged packages cause servers to always list as "changed" in Dashboard

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 3:35:09 PM UTC-5, Kim Scarborough wrote: > > On Friday, July 12, 2013 2:04:36 PM UTC-4, Stefan Schulte wrote: > >> Are you running on RedHat (or some other OS that uses yum)? You may hit >> https://projects.puppetlabs.com/issues/11450 in this case. Specifying an >> ensu

[Puppet Users] Re: [Puppet-dev] Windows Specific Facts

2013-07-12 Thread Eric Sorenson
Agreed, the sp_ prefix is unfortunate. It's to indicate they came from System Profiler. On Jul 12, 2013, at 2:43 PM, "Dustin J. Mitchell" wrote: > On Thu, Jul 11, 2013 at 9:21 PM, Rob Reynolds wrote: >> My initial thought is that we should use something like win_ but I wanted to >> check to s

[Puppet Users] Re: Same package name for gem and deb

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 8:21:01 AM UTC-5, Markus Shorty Uckelmann wrote: > > Hi all, > > I want to do the following: > > package { 'zookeeper-deb': > ensure => 'installed', > name => 'zookeeper', > } > package { 'zookeeper-gem': > ensure => 'installed', > name

[Puppet Users] Re: ERB template pain

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 7:48:36 AM UTC-5, Ivailo Tanusheff wrote: > > Hi, > > I have stupid situation that I may workaround but I think there is an > elegant way to deal with. > Still I need the community help. > > In some class X I have: > $control = { > dev => { > id => 7, > name =>

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread jcbollinger
On Friday, July 12, 2013 11:09:49 AM UTC-5, Nan Liu wrote: > > On Fri, Jul 12, 2013 at 8:11 AM, Christian Flamm > > > wrote: > >> >> >> Do you mean something like this? >> >> > cat $modulesdir/virtual/manifests/**init.pp >> class virtual { >> @user { ['a', 'b', 'c', 'd']: ensure => present }

[Puppet Users] Re: PUPPETDB and pgpool II

2013-07-12 Thread Jared Curtis
If you're using pgpool from the EPEL repository (or version 3.2.0) and you've enabled the query cache feature then that's the probably the problem you're seeing. Upgrade to a newer release or disable the cache. On Friday, July 12, 2013 10:32:34 AM UTC-7, Robert Bachmann wrote: > > I am trying to

[Puppet Users] Module team update: 2013-07-07 - 2013-07-12

2013-07-12 Thread Ashley Penney
Hello! Now that we're two weeks in it's time for another update on what's been going on in the module team. We focused on puppetlabs-ntp and puppetlabs-firewall as our two primary modules, but also merged in fixes to passenger, rabbitmq, mysql, apt, and apache. As a result of this work we've rel

[Puppet Users] Re: Purged packages cause servers to always list as "changed" in Dashboard

2013-07-12 Thread Robert Esser
We worked around the issue by creating a (cringe-worthy) defined type that checks to see if the package exists first. It was quicker and easier than some of the alternatives we came up with and worked fine for our needs on both CentOS 5 and 6. # XXX: Quietly purge a package while waiting for b

[Puppet Users] ERB Template Newb Question

2013-07-12 Thread towen27
I'm trying to write my first puppet template, but I am running into some issues. The following is my template: *# Managed by Puppet* *CONFIG_FILE=/etc/rabbitmq/rabbitmq* *<% if @rabbitmq_port != 'UNSET' -%>* *NODE_PORT=<%= @rabbitmq_port %>* *<% end -%>* *<% if @rabbitmq_address != 'UNSET' -%>* *

[Puppet Users] Re: Hiera Dummy Question

2013-07-12 Thread Brian Warsing
Thanks, I knew it was something silly. On Friday, 12 July 2013 14:23:03 UTC-7, jcbollinger wrote: > > > > On Friday, July 12, 2013 2:04:36 PM UTC-5, Brian Warsing wrote: > This: > >> Error: Could not find data item test::message in any Hiera data file and >> no default supplied at /etc/puppet/man