Re: [Puppet Users] puppet user context

2014-01-29 Thread Robert Turk
Am 28.01.14 18:34, schrieb Jose Luis Ledesma: Could be that the ${plist_name} is undef inside the define? You could try adding a notify inside the define to check which value it has. If I use a notify inside the defined resource I get a duplicate declaration error, so I chnaged the code to

Re: [Puppet Users] puppet user context

2014-01-29 Thread José Luis Ledesma
I think so, but I'm not an expert . Could you try adding the full path $classname::plist_name? Regards El 29/01/2014 09:56, Robert Turk r.t...@reproflex.de escribió: Am 28.01.14 18:34, schrieb Jose Luis Ledesma: Could be that the ${plist_name} is undef inside the define? You could try

Re: [Puppet Users] puppet user context

2014-01-29 Thread Robert Turk
Am 29.01.14 10:05, schrieb José Luis Ledesma: Could you try adding the full path Thanks for your help. Using ${wallpaper_plist::plist_name} does the trick. :) Robert -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this

Re: [Puppet Users] puppet run interval

2014-01-29 Thread Andy Spiegl
Would you please be willing to include some context into your replies? Would YOU please NOT use fullquotes into your replies? Thanks, Andy. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] What is the best replacement for Puppet Dashboard ?

2014-01-29 Thread Jason Antman
For the reporting side, I'm using a Python project called PuppetBoard at the moment - https://github.com/nedap/puppetboard - and it does everything I liked about Dashboard, and also loads pages in a not just reasonable but fast amount of time. It pulls directly from PuppetDB. In terms of the ENC

[Puppet Users] password is not setting up in /etc/shadow included libshadow on ubuntu 12.04 client

2014-01-29 Thread jyotir bhandari
Anyone who faced this type of issue. Jyotit -- 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 view this discussion on

[Puppet Users] Re: password is not setting up in /etc/shadow included libshadow on ubuntu 12.04 client

2014-01-29 Thread Fiddyspence
Your code doesn't actually set the password attribute on the user in the defined resource, so it won't be set. On Wednesday, 29 January 2014 06:33:45 UTC, jyotir bhandari wrote: Hi I have been trying to set password on ubuntu 12.04 which is client. All the neccessary packages of ruby

[Puppet Users] Beginner Question: Structure of a full application

2014-01-29 Thread Kevin Breit
I am trying to make Puppet provision an OpenStack node from a base Ubuntu 12.04 install. Unfortunately, I'm new to Puppet and having problems conceptualizing how the programming logic should work. At this time I have a Puppet master and Puppet agent for script development. Here are the steps I

[Puppet Users] Re: Constructing rvalues from exported resources.

2014-01-29 Thread jcbollinger
On Wednesday, January 29, 2014 12:59:16 AM UTC-6, Krist van Besien wrote: On Tuesday, January 28, 2014 10:11:58 PM UTC+1, jcbollinger wrote: [...] To use that module effectively, it looks like you need to be able to enumerate the cluster members in advance. What would be the

Re: [Puppet Users] puppet run interval

2014-01-29 Thread Matt Zagrabelny
Hi Andy, On Wed, Jan 29, 2014 at 5:07 AM, Andy Spiegl puppet.a...@spiegl.de wrote: Would you please be willing to include some context into your replies? Would YOU please NOT use fullquotes into your replies? Yes, I will. However, my earlier email wasn't a reply in the traditional sense. It

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-29 Thread Rob Reynolds
Hi, I guess I wasn't really clear in my first email. I'm not sure the AutoUpdate would run in 32bit mode, which is what puppet/ruby runs under and your call to powershell will stay in 32 bit mode unless you use sysnative. You would need to find the x64 bit version of PowerShell

Re: [Puppet Users] Constructing rvalues from exported resources.

2014-01-29 Thread Henrik Lindberg
On 2014-28-01 13:16, Krist van Besien wrote: Hello, I am using the Radez/Paxemaker modules, and this allows me to define a cluster like this: class {'pacemaker::corosync': cluster_name = $control_clu_name, cluster_members = $control_clu_members, require = [

[Puppet Users] Re: hiera-eyaml-gpg gives strange error

2014-01-29 Thread Simon Hildrew
On Wednesday, 29 January 2014 14:43:22 UTC, Dirk Heinrichs wrote: Hi, I'm trying to store some encrypted values in hiera, using either hiera-eyaml or hiera-eyaml-gpg. While hiera-eyaml (PKCS7 encryption) works fine, the agent gives the following error message when using hiera-eyaml-gpg:

Re: [Puppet Users] Puppet client 3.2.X fails to install on Windows 7 x64

2014-01-29 Thread Josh D
On Wednesday, January 29, 2014 12:41:06 AM UTC-7, Rob Reynolds wrote: Josh, I'm glad we were able to get you going. However it is slightly troubling to see that the service flips to automatic after running puppet agent. Also are you overriding the user the agent installed as to a

[Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
Hi All, I'm attempting to distribute TLS certs based on the $hostname fact in my config manifest like so: class bacula::config { file { /etc/bacula/bacula-fd.conf: notify = Service[bacula-fd], owner = root, group = root, mode = 0640, require =

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread José Luis Ledesma
You have to use {}. So it should be something like source = puppet:///modules/${::hostname}/${::hostname}.mydomain.com.key, I've used :: too to avoid looking at the local scope. Regards El 29/01/2014 18:23, Tim Dunphy bluethu...@gmail.com escribió: Hi All, I'm attempting to distribute

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread José Luis Ledesma
Ups. Looking it again you forgot to set the module name in the puppet:// So the {} is not needed although I think is a good practice El 29/01/2014 18:23, Tim Dunphy bluethu...@gmail.com escribió: Hi All, I'm attempting to distribute TLS certs based on the $hostname fact in my config

Re: [Puppet Users] Puppet client 3.2.X fails to install on Windows 7 x64

2014-01-29 Thread Rob Reynolds
Post installation you would change it like with other services on windows (services.msc, find the service, open properties and change user/password). On Wed, Jan 29, 2014 at 11:21 AM, Josh D joshuadavid...@gmail.com wrote: On Wednesday, January 29, 2014 12:41:06 AM UTC-7, Rob Reynolds wrote:

[Puppet Users] Style Guide

2014-01-29 Thread Andrea Cappelli
Hi, today I used puppet-lint (http://puppet-lint.com/) to check my manifests. As a result I obtained a list of error and warnings which in many cases are easy to solve, for example the use of $fqdn instead of $::fqdn What I'm wondering is what are the real best practices you guys adopt

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-29 Thread Josh Cooper
You might also want to try the autoupdate module on the forge: http://forge.puppetlabs.com/liamjbennett/windows_autoupdate Josh On Wed, Jan 29, 2014 at 8:31 AM, Rob Reynolds r...@puppetlabs.com wrote: Hi, I guess I wasn't really clear in my first email. I'm not sure the AutoUpdate would

Re: [Puppet Users] Style Guide

2014-01-29 Thread Kurt Wall
http://docs.puppetlabs.com/guides/best_practices.html On Wed, Jan 29, 2014 at 9:39 AM, Andrea Cappelli a.cappe...@gmail.com wrote: Hi, today I used puppet-lint (http://puppet-lint.com/) to check my manifests. As a result I obtained a list of error and warnings which in many cases are easy to

[Puppet Users] Finally found workaround for problem with German windows clients

2014-01-29 Thread Andy Spiegl
A while ago I asked here for solutions with windows and puppet 3.x I always got this error during the agent run: Could not intern from pson: \xE4 on US-ASCII After trying and debugging for a long time I finally found the right comment in the right bug report:

Re: [Puppet Users] Finally found workaround for problem with German windows clients

2014-01-29 Thread Andy Spiegl
Following up on my own post: One has to patch this file (on ALL client PCs!): C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/timezone.rb + Iconv.iconv(UTF-8, windows-1250,Time.new.zone) - Time.new.zone I

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
Hey all, Yup! You caught it. Managed to notice this as well, so forgive the intrusion on your day. But I was missing the module name. file { /etc/pki/tls/certs/$hostname.mydomain.com.crt: notify = Service[bacula-fd], owner = root, group = root, mode = 04000,

Re: [Puppet Users] Style Guide

2014-01-29 Thread Andrea Cappelli
Il 29/01/2014 19:10, Kurt Wall ha scritto: http://docs.puppetlabs.com/guides/best_practices.html Thank you Kurt -- Andrea Cappelli -- 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

[Puppet Users] Re: Puppet Dashboard Groups

2014-01-29 Thread Richard Berwald
I recently faced the same challenge. I did not want to group by osfamily but by another fact. I came up with this solution: 1) retrieve a list from PuppetDB in format 'nodename:factvalue' for all nodes using puppetdbquery on a puppetmaster (sudo puppet query facts --facts=factname some query

[Puppet Users] Setting node_name/node_name_fact makes reports not include real client hostname...

2014-01-29 Thread Matt W
In our newer hosts, we are using the standard Puppet node classifier system but we override the node_name/node_name_fact settings on the client so that we can decouple hostnames with hosttypes: puppet.conf [main] location on clients: # Use the fact 'puppet_node' as our node classifier

[Puppet Users] Error Message: Could not set present on ensure: Function not implemented

2014-01-29 Thread Jon Jaroker
Hello, Would anyone know what the error message Could not set present on ensure: Function not implemented means. It is appearing in Puppet 2.7.13 on a File resource type. The --debug flag does not give any hints. The complete manifest triggering this error is located here:

Re: [Puppet Users] Style Guide

2014-01-29 Thread Johan De Wit
On 01/29/2014 07:42 PM, Andrea Cappelli wrote: Il 29/01/2014 19:10, Kurt Wall ha scritto: http://docs.puppetlabs.com/guides/best_practices.html Thank you Kurt you are on the right track. We enforce the style guide using commit hooks. if the code is not conform the guide, you can not

Re: [Puppet Users] using facter variables in filenames

2014-01-29 Thread Tim Dunphy
just start using ${variable} when used in a string (double quoted) . and also use explicit scoping. It is a very good habit and you will only benefit from it. ( and everybody else, including you, reading your code) Thanks! I'll make sure to follow your advice. I appreciate your input.

[Puppet Users] Ubuntu Network Proxy via Puppet

2014-01-29 Thread steven . lokie
So we have hit a wall pretty hard here: We have a series of Ubuntu Desktops running 12.04 LTS and we've configured puppet to do enable to Network Proxy and it does the weirdest thing. It will refuse to set the proxy until we do an initial setting in the GUI. (Gnome Desktop) Here's our

Re: [Puppet Users] Constructing rvalues from exported resources.

2014-01-29 Thread jcbollinger
On Wednesday, January 29, 2014 10:41:37 AM UTC-6, Henrik Lindberg wrote: You could try out dalen's puppet-db query module. It allows you to query information from the puppet db and use the result in various ways in your manifests. That addresses the issue of extracting information

[Puppet Users] Re: Beginner Question: Structure of a full application

2014-01-29 Thread jcbollinger
On Wednesday, January 29, 2014 7:05:37 AM UTC-6, Kevin Breit wrote: I am trying to make Puppet provision an OpenStack node from a base Ubuntu 12.04 install. Unfortunately, I'm new to Puppet and having problems conceptualizing how the programming logic should work. You are experiencing

Re: [Puppet Users] Beginner Question: Structure of a full application

2014-01-29 Thread xav
On Wed, 2014-01-29 at 05:05 -0800, Kevin Breit wrote: I am trying to make Puppet provision an OpenStack node from a base Ubuntu 12.04 install. Unfortunately, I'm new to Puppet and having problems conceptualizing how the programming logic should work. At this time I have a Puppet master and

[Puppet Users] Node Corruption

2014-01-29 Thread Doug_F
All, I have a problem where I was mucking about in a Module which failed. One of my Debian nodes I was testing it on started acting funky. Now my single Debian node is getting some weird module activity. Classes defined by $::kernel fact are defined properly. Templates based off $::osfamily

Re: [Puppet Users] Re: Report processor failed: uninitialized constant Puppet::FileSystem::File

2014-01-29 Thread Josh Cooper
On Wed, Jan 22, 2014 at 8:08 AM, Mike Skint jeski...@gmail.com wrote: yes I've seen it on ubuntu 12.04 and Debian 6 nodes installed from puppetlabs repo, had to roll back to 3.4.0 On Tuesday, January 21, 2014 6:53:38 AM UTC-8, ro001 wrote: Hi, I am the deploying the puppet master rpm

[Puppet Users] howto determine a users homedir in a class file

2014-01-29 Thread Andrew
So ... I am tasked with managing ssh keys for which I want to use puppet to do the deployment. I dont know ahead of time which users will using/assigned keys so, my question is. how to determine the homedir of any user? is there a variable present with this info without resorting to an exec?

Re: [Puppet Users] howto determine a users homedir in a class file

2014-01-29 Thread Dan White
I have a solution for this that involves a custom fact, written in Ruby, for the user's homedir. I will gladly post the code for the fact and the manifest code showing how I use it. However, I am posting this from home and all my Puppet code is at my work. I will post it tomorrow. One small

[Puppet Users] Re: CA puppetmaster

2014-01-29 Thread Andrew
On Tuesday, 28 January 2014 09:49:57 UTC+10, Vassiliy Vins wrote: Hi! I have 2 puppetmasters with High availability configuration. If first dead, second starts. Could you tell me which file from $ssl_dir of primary should I copy to secondary puppetmaster that clients recognize it as

Re: [Puppet Users] Re: CA puppetmaster

2014-01-29 Thread vassiliy vins
Thank you, Andrew! I'll try tomorrow. In High Availability I have floating IP (better to say redundant IP). I don't think that we need HA for puppet, but my boss insists on. Regards, Vassiliy On 29 January 2014 21:37, Andrew andrewgray1...@gmail.com wrote: On Tuesday, 28 January 2014

[Puppet Users] Re: ody/pkginventory problem / How do _you_ get a listing of all packages installed on a system?

2014-01-29 Thread Andrew
# every package, name only. rpm -qa --queryformat=%{NAME}\n # or more info ... rpm -qa --queryformat=%{NAME} - %{VERSION} - %{ARCH}\n Hi Stack, have you tried package { kernel.$architecture: ensure = '2.6.32-358.el6', } to make sure it doesnt find the i686 version as well ? Also note

Re: [Puppet Users] howto determine a users homedir in a class file

2014-01-29 Thread Andrew
Thanks for that Ygor, I appreciate the help. On Thursday, 30 January 2014 14:33:59 UTC+10, Ygor wrote: I have a solution for this that involves a custom fact, written in Ruby, for the user's homedir. I will gladly post the code for the fact and the manifest code showing how I use it.

[Puppet Users] Reg : War deployement using Puppet

2014-01-29 Thread krishna bhaskara rao
Hi, Can you provide me examples, how to deploy war in tomcat using puppet. If fails, how to rollback also. With Regards, Krishna. -- 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

[Puppet Users] Reg : War deployment with Puppet

2014-01-29 Thread krishna bhaskara rao
Hi, Can any one share me sample snippets to deploy war in tomcat. if deployment fails, how to rollback. With Regards, Krishna. -- 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,

[Puppet Users] Re: hiera-eyaml-gpg gives strange error

2014-01-29 Thread Dirk Heinrichs
Am 29.01.2014 17:27, schrieb Simon Hildrew: On Wednesday, 29 January 2014 14:43:22 UTC, Dirk Heinrichs wrote: Hi, I'm trying to store some encrypted values in hiera, using either hiera-eyaml or hiera-eyaml-gpg. While hiera-eyaml (PKCS7 encryption) works fine, the agent gives