[Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Andreas Dvorak
Dear all, I would like to find out if a files is managed by puppet. To do that I tried the puppet-ls script. But I get the error: ./puppet-ls grep: /var/lib/puppet/client_data/catalog/*.yaml: No such file or directory In the head of the script I can read "# tested on 0.25". It is the latest

[Puppet Users] Share data between classes/modules, best practices

2013-08-23 Thread François Lafont
Hi, I use Puppet 3.2 with Hiera. I would like to know the best practices when you want to share one data between 2 classes or modules. I take an example. I have: - One "snmp" module which installs and configures snmpd in the hosts. In this module, I must define the community password. - One "mo

RE: [Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Steven Nemetz
You could try the newer module designed to do the same thing. It was written as a puppet face about 6 months ago https://github.com/dalen/puppetls Steven Date: Fri, 23 Aug 2013 01:42:11 -0700 From: andreas.dvo...@googlemail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] puppet-ls

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-23 Thread Miguel Angel Coa Morales
Hello Ken, I make query for check activity and the only database with activity is the postgres. postgres=# SELECT datname,pid,query_start from pg_stat_activity; datname | pid | query_start --+--+--- postgres | 5866 | 2013-08-23 09:17:36.913697

[Puppet Users] [OT] Puppet Users group in Alicante (Spain)

2013-08-23 Thread Juan Sierra Pons
Hello Any Puppet users located in Alicante (Spain) or interested in forming a local Puppet users group? I am in the process of starting my own small business based mostly in puppet and would love to help build a strong local community. Best Regards -

Re: [Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Andreas Dvorak
> > Hi Steven, > thank you for the link. That works a little. puppet ls /etc motd declared in /etc/puppet/git/modules/motd/manifests/init.pp:12 content from a "content" parameter sudoers declared in /etc/puppet/git/modules/sudoers/manifests/init.pp:10 content from a "content" paramete

[Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-23 Thread maling list
Hey everyone, I want to dist-upgrade from squeeze to wheezy. The version will change from puppet 2.6.2 to puppet 2.7.18. Before starting the upgrade I would like to know if there were any syntax changes or stuff that could break my setup because of the version change. I updated my puppet manif

[Puppet Users] Problem using resources and types from puppetlabs/lvm

2013-08-23 Thread Andy Stevens
Hi, I'm struggling to make use of the resources and types provided by puppetlabs/lvm. If I attempt to make use of the various resource types i.e. filesystem, lvm etc. from within my nodes.pp then I have no problem at all. However if I attempt to reference them from a class I have created, whe

Re: [Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Andreas Dvorak
> > Hi, > the usage needs to be like this puppet ls [-r] [] and not like mentioned in the help Bye Andreas -- 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

Re: [Puppet Users] Re: Despite no change in content, agent log file indicates content changed in each catalog run

2013-08-23 Thread Stephen Gran
On 22/08/13 17:50, Ed Young wrote: Regarding that fqdn and uptime_seconds are facts, that is understood. The agent node updating the file and triggered the content change may be obvious to you, but I'm a puppet beginner, and I yet don't have a solid understanding of the catalog run or how, when

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-23 Thread Stig Sandbeck Mathisen
> I want to dist-upgrade from squeeze to wheezy. The version will change > from puppet 2.6.2 to puppet 2.7.18. > > Before starting the upgrade I would like to know if there were any > syntax changes or stuff that could break my setup because of the > version change. Check syslog on your puppet ma

Re: [Puppet Users] Problem using resources and types from puppetlabs/lvm

2013-08-23 Thread Chris McDermott
I'm kind of guessing, but it might be that you need to push out the custom providers to the client. Try putting "pluginsync = true" in the [agent] section of your puppet.conf on that client, and try again. Chris On Fri, Aug 23, 2013 at 8:07 AM, Andy Stevens wrote: > Hi, > > I'm struggling to m

[Puppet Users] Puppet dashboard - having cached catalog runs show up as warnings

2013-08-23 Thread oogs
Hi, I have noticed that when a typo is introduced or a module is plain broken, puppet will run using a cached catalog. This is logged as an error on the local client, however, it is not logged as an error on Puppet Dashboard. How can I change this behavior, so that using the cached catalog wi

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-23 Thread Miguel Angel Coa Morales
When i tried to show all config settings i see the value "incorrect" for example "storeconfig" value is "false" and the "dbadapter" is "sqlite3" but i've already configured the postgres for storeconfig. [root@master manifests]# puppet agent --configprint all| grep dbadapter dbadapter = sqlite3

[Puppet Users] Best practices for infrastructure

2013-08-23 Thread Paul Archer
I'm new to puppet, fixin' to (in Texas parlance) setup a largish installation, and want to make sure I get things right the first time. I have a colo plus several satellite locations, with many more on the way. I'll be using open-source Puppet, as we have way too many nodes to manage (potential

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-23 Thread JeremyCampbell
Eric, thanks. I've spent most of today trying to get this to work but I have to submit again. I've read the linked docs on variables multiple times. As I understand it, with Puppet you cannot assign top-level variables i.e. starting with $::, these are reserved for facts and other built in Pupp

[Puppet Users] Re: Best practices for infrastructure

2013-08-23 Thread Ellison Marks
With hiera, you'll obviously need to sync your hiera data and hierarchy, along with your modules and whatever else, between your masters. For mcollective, There are ways to set up a network of brokers, both to distribute load and to make sure that if a site gets separated, mcollective will stil

Re: [Puppet Users] Best practices for infrastructure

2013-08-23 Thread Martin Langhoff
On Fri, Aug 23, 2013 at 12:03 PM, Paul Archer wrote: > I'm thinking about setting up a master in the colo with a slaved master at > each site, > I would strongly recommend using "master-less" recipes, which are actually "a git repository as a master, and cronjobs running puppet apply as client".

Re: [Puppet Users] Best practices for infrastructure

2013-08-23 Thread Dan White
Much of what I would suggest depends on the exact setup of your servers. Here are a few generic suggestions: You already want to use hiera. That's great, but like any tool, if you do not use it properly, you can booger it all up. I started using puppet before hiera and I can personally vouch

[Puppet Users] Re: Best practices for infrastructure

2013-08-23 Thread Paul Archer
Thanks for your input. There are some good suggestions and advice here. Martin, I will definitely look into a masterless setup, although I think I'll start with the more traditional multi-master setup to start with. -- You received this message because you are subscribed to the Google Groups "P

[Puppet Users] Test the result of a hiera_hash() lookup

2013-08-23 Thread Chris McDermott
Hi folks, Is there a way to test the result of a hiera_hash() lookup in a manifest? I am trying to use hiera to do most of my configuration, like this for example: mysql::grants: 'user1@localhost': privileges: - select_priv 'user2@localhost': privileges: - select_priv

[Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread RedHotChiliPepper
I have the following manifests #/etc/puppet/modules/morefangs/manifests/init.pp class morefangs {} #/etc/puppet/modules/morefangs/manifests/one.pp class one { file {'/tmp/one': ensure => present, content => 'moot', } } #/etc/puppet/modules/morefangs/manifests/two.pp class two {

[Puppet Users] Using hiera lookups with defined types

2013-08-23 Thread Ken Weiss
Hi all, I am trying to use hiera and .yaml files to load parameters into my declared classes. For basic classes it works great. For example: class cron_jobs::logrotate ( $hour, $minute, $weekday ) {... node fqdn: test.my.com I declare the class for my node very simply: class {'cron_jobs::logr

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread François Lafont
Hi, Le 24/08/2013 00:09, RedHotChiliPepper a écrit : > I have the following manifests > > #/etc/puppet/modules/morefangs/manifests/init.pp > class morefangs {} > > #/etc/puppet/modules/morefangs/manifests/one.pp > class one { > file {'/tmp/one': > ensure => present, > content => 'moot

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-23 Thread Ken Barber
> postgres=# SELECT datname,pid,query_start from pg_stat_activity; > datname | pid | query_start > --+--+--- > postgres | 5866 | 2013-08-23 09:17:36.913697-04 > (1 row) That pretty much confirms PuppetDB is not connecting to PostgreSQL at all. T

Re: [Puppet Users] Test the result of a hiera_hash() lookup

2013-08-23 Thread Dan White
Try this (works for me): class custom::mysql::grants { $grantoptions = hiera_hash('mysql::grants’, false) if $grantoptions { create_resources('database_grant', $grantoptions) } } http://docs.puppetlabs.com/references/latest/function.html#hierahash … a default argument in the second p

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-23 Thread Dan White
Does cron_jobs::logrotate::user_cron have just one parameter ? Or are there other parameters that are given default values in the type definition ? On Aug 23, 2013, at 7:01 PM, Ken Weiss wrote: > Hi all, > > I am trying to use hiera and .yaml files to load parameters into my declared > classes

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread Dan White
Two problems: One: http://docs.puppetlabs.com/guides/parameterized_classes.html Your classes have no parameters. Example from the link: class webserver( $vhost_dir, $packages ) { package { $packages: ensure => present } file { 'vhost_dir': path => $vhost_dir

[Puppet Users] Unable to find main/binary-armel/Packages

2013-08-23 Thread Pablo Carranza
Setup: - Puppet master/agent deployment; - the Puppet agent causing trouble is a GuruPlug-type server (a snom ONE SoHoto be exact); - running Debian 6.0 (Squeeze). Greetings: I've

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-23 Thread Miguel Angel Coa Morales
Hello,, With the debug i've the next log -- [root@master lib]# puppetdb-foreground --debug 2013-08-15 00:37:13,737 DEBUG [main] [puppetlabs.utils] Debug logging enabled 2013-08-15 00:37:13,829 DEBUG [main] [puppetlabs.ssl] Loaded PEM object of type 'class org.bouncycastle.jcajce

[Puppet Users] Managing multiple "types" of mounts

2013-08-23 Thread James A. Peltier
Hi All, I have an issue whereby I need to manage a mount that is a physical mount of a device as well as a bind mount entry. Physical Mount == file { "/exports": owner => "root", group => "root", mode => "771", ensure => directory, } file { "/exports/homes": owner => "ro

Re: [Puppet Users] Managing multiple "types" of mounts

2013-08-23 Thread James A. Peltier
- Original Message - | Hi All, | | I have an issue whereby I need to manage a mount that is a physical | mount of a device as well as a bind mount entry. | | | Physical Mount | == | | file { "/exports": | owner => "root", | group => "root", | mode => "771", | ensure

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-23 Thread Ken Barber
> With the debug i've the next log > > 2013-08-15 00:37:13,960 DEBUG [main] [bonecp.BoneCPDataSource] JDBC URL = > jdbc:postgresql://127.0.0.1:5432/puppetdb, Username = pupetdb, partitions = > 1, max (per partition) = 50, min (per partition) = 1, helper threads = 3, > idle max age = 60 min, idle

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-23 Thread Chris McDermott
Well normally you would use hiera_hash() and create_resources() to do it, like this: # yaml data source --- cron_jobs::logrotate::users kenweiss: hour => 5 tomjones: hour => 3 # pp file --- class cron_jobs::logrotate ( $hour, $minute, $weekday ) { ... $user_cron_options = hiera_h

[Puppet Users] Re: How to handle apt-get -f install -y with Puppet

2013-08-23 Thread Andy Coates
Just come across this post after needing to do the exact same thing. I can get it to run independently by making the exec a require of the package, but then it will always run itself as well and I only want to run this exec after the package (but as you said the package fails due to the depend

[Puppet Users] Re: Problem running 3.2.1 master with parser=future

2013-08-23 Thread Nikolay Georgieff
I have the same issue but if I use "puppet apply --parser future" it works. On Monday, May 27, 2013 11:50:50 PM UTC-7, thijso wrote: > > First off, I was under the impression from what I have been able to find > about the future parser that old manifests should remain working. If there > are bac

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-23 Thread maling list
Am Freitag, 23. August 2013 16:57:24 UTC+2 schrieb Stig Sandbeck Mathisen: > > > > I want to dist-upgrade from squeeze to wheezy. The version will change > > from puppet 2.6.2 to puppet 2.7.18. > > > > Before starting the upgrade I would like to know if there were any > > syntax changes or st