[Puppet Users] Module Engineering @ Puppet Labs

2013-07-01 Thread Ryan Coleman
Hello All, Today marks my first full year as product owner for the Puppet Forge. It's been a great year for Forge, made possible by many of you with great module contributions. I'll make an effort to write more regularly to all of you about Forge going forward, but today I'm here to write about ou

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-07-01 Thread Daniel Jung
Hi Wolf, I guess you can use the lookupvar and specifically call the variable from the class where it belongs to. That would be one method of doing it and probably works with Puppet 3.* as well. I just want to get my head around the scope while calling templates from a manifest. Thanks for t

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-07-01 Thread Wolf Noble
Hi Daniel, What I've done in the past is: Foo.erb <% foobar = scope.lookupvar('::somefact') othervar = scope.lookupvar('class::variable') lastvar = scope.lookupvar('myclass::myvar') fqdn = scope.lookupvar('::fqdn') -%> #this file generated automatically by puppet for <%=fqdn%> #manual change

Re: [Puppet Users] Inheriting variables from supernode into lower nodes

2013-07-01 Thread Dan White
Node inheritance does not work like class inheritance. http://docs.puppetlabs.com/puppet/3/reference/lang_node_definitions.html#inheritance "Nodes can inherit from other nodes using the inherits keyword. Inheritance works identically to class inheritance. This feature is not recommended; see the

[Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-07-01 Thread Daniel Jung
hi, trying to understand the scope for templates -- after reading http://docs.puppetlabs.com/guides/templating.html, got a question about the following, class test::foo { file { content => template ("footemplate.erb"), } } class test::foo2 { $var = blah,

Re: [Puppet Users] Password policy for creating users manifest for puppet windows

2013-07-01 Thread Josh Cooper
On Sun, Jun 30, 2013 at 10:48 PM, mac wrote: > Hi, > > I want to implement a password policy such as min_age & max_age users > manifests for puppet windows. > > What will be the correct syntax for the same. > > Thanks > > -- > You received this message because you are subscribed to the Google Gro

Re: [Puppet Users] Weird encoding error: "0xF3" to UTF-8 in conversion from ASCII...

2013-07-01 Thread Josh Cooper
On Mon, Jul 1, 2013 at 8:02 AM, David Schmitt wrote: > On 01.07.2013 13:06, Álvaro Acción - CiTIUS wrote: > >> > I've deployed the puppet windows clients. They are also using version >> 3.2.2, directly taken from open source puppet installation providers. >> After getting dns resolution working

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-07-01 Thread Tim Mooney
In regard to: Re: [Puppet Users] passing an environment variable to a...: On Jun 28, 2013 2:06 PM, "Tim Mooney" wrote: works fine, but on hosts where we use our mysql module with the custom types and provider, we can't do that. We instead have to sudo su - puppet agent --tes

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-07-01 Thread Tim Mooney
In regard to: Re: [Puppet Users] passing an environment variable to a...: On Fri, Jun 28, 2013 at 2:03 PM, Tim Mooney wrote: We have some custom types & providers related to mysql (mysql_user, mysql_grant, mysql_db) written by an admin that's no longer here. The provider just uses the mysql

[Puppet Users] Inheriting variables from supernode into lower nodes

2013-07-01 Thread Boudewijn Ector
Hi Guys, I'd like to have some default values which are used in templates to be inherited from the basenode hosts. I tried, but I can't get it to work. This is my setup: Currently, I'm trying to do something like this: node basenode { include ntp include postfix inclu

[Puppet Users] Re: upgrading puppet managed app

2013-07-01 Thread James Loosli
In the past, I've used Jenkins to automate package builds. It can be set up to trigger a new build after git updates, then just have puppet ensure latest on that package. Setting up new packages wasn't usually that bad, as the script wasn't that different between the apps. I'll admit spec files

Re: [Puppet Users] package installation failure

2013-07-01 Thread Jakov Sosic
On 01/29/2013 09:24 AM, GRANIER Bernard (MORPHO) wrote: > change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e > 0 -y install java-1.6.0-openjdk' returned 1: Error: Nothing to do > > > > Is there a way to have the full yum output : > > “Loaded plugins: fastestmirror > Loadi

Re: [Puppet Users] Puppet error while serving /etc/sudoers file using puppet

2013-07-01 Thread Jakov Sosic
On 01/23/2013 01:34 PM, Pradeep Chhetri wrote: > err: > /Stage[main]//Node[tcp-handler-base]/Users::Sudoers[sudoers-file]/File[/etc/sudoers]/content: > change from {md5}0897462d4d48fb9dedaafbaf91a9ceae to > {md5}3298e302080d0e63a5697dd39556ca66 failed: Could not rename temporary > file /etc/sudoer

[Puppet Users] upgrading puppet managed app

2013-07-01 Thread Rance Hall
We have an issue with a puppet manifest that installs a web app The install works fine, but we need a way to upgrade the app when new versions are released. We manage a git repo with the source code for the web app. The puppet manifest downloads from the git repo and all is well. We need a wa

Re: [Puppet Users] puppetlabs-products yum checksum failing

2013-07-01 Thread Jakov Sosic
On 01/24/2013 01:54 PM, Kristopher Spring wrote: > Alrighty, I didn't change a thing on my end but the problems seems to > have magically resolved itself this morning. Probably some http cache in front of your server... -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] puppet-lint -- learning stuff about style but also generating questions

2013-07-01 Thread Jakov Sosic
On 04/11/2013 05:22 PM, Dan White wrote: > puppet-lint does not like template files at all. > I keep getting this: ERROR: Syntax error (try running `puppet parser validate > `) puppet-lint checks adherence to codestyle. For erb's you can check syntax with something like this: $ erb -x -T - my

Re: [Puppet Users] How to setup /etc/resolv.conf dependent on network

2013-07-01 Thread Jakov Sosic
On 04/12/2013 10:44 AM, ForumUser wrote: > Hello, > > I am a beginner in puppet so please excuse my lack of knowledge. > (I use puppet 3.1). > > We have nodes in different networks - they use different DNS servers. > I'd like to set up its /etc/resolv.conf dependent on network they are in. > > W

Re: [Puppet Users] puppetlabs-apache please help me to understand ssl_key & allow-ovverride

2013-07-01 Thread Hunter Haugen
Hello! Sorry for the confusion. It appears that the parameters you're referencing are from the master branch of the github repo, but are installing the older version from the forge (which has far less attention). The documentation on https://github.com/puppetlabs/puppetlabs-apache is only in refer

Re: [Puppet Users] Puppet with Mcollective, which modules and how ? (TheForeman)

2013-07-01 Thread Dick Davies
There's an mcollective mailing list if you need more detail, but real quick: mco is the client, you run that whereever you want (ours is on the puppetmaster but that's not required) mcollectived is going to run on your nodes (same as puppetd) they communicate via a STOMP exchange, that's the Acti

Re: [Puppet Users] Weird encoding error: "0xF3" to UTF-8 in conversion from ASCII...

2013-07-01 Thread David Schmitt
On 01.07.2013 13:06, Álvaro Acción - CiTIUS wrote: > I've deployed the puppet windows clients. They are also using version 3.2.2, directly taken from open source puppet installation providers. After getting dns resolution working and tested, I fired the puppet agent in order to check if the clie

[Puppet Users] [Solved] Scope variable name is a NilClass

2013-07-01 Thread Mario van der Linde
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you, thats it! :) Am 01.07.2013 16:34, schrieb Erik Dalén: > that should be <%= scope.lookupvar('var') %>, note the quotes > around var. > > > On 1 July 2013 09:10, > wrote: > > > Once again... > > > 1 class

Re: [Puppet Users] Scope variable name is a NilClass

2013-07-01 Thread Erik Dalén
that should be <%= scope.lookupvar('var') %>, note the quotes around var. On 1 July 2013 09:10, wrote: > > Once again... > > > 1 class test { > 2 $var1 = 'foo' > 3 $var2 = 'bar' > 4 $vars = ["var1","var2"] > 5 notice($var1) > 6 notice($var2) > 7 notice($vars) > 8 each($vars) |$var| { > 9

[Puppet Users] Weird encoding error: "0xF3" to UTF-8 in conversion from ASCII...

2013-07-01 Thread Álvaro Acción - CiTIUS
Hello, My name is Álvaro Acción and I'm currently an student trainee at CiTIUS. My task is to adapt and integrate the current configuration management software (CMS from now on), which is completely based on puppet (only a few minor one-liners are used for smoe specific

[Puppet Users] Password policy for creating users manifest for puppet windows

2013-07-01 Thread mac
Hi, I want to implement a password policy such as min_age & max_age users manifests for puppet windows. What will be the correct syntax for the same. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and s

Re: [Puppet Users] Scope variable name is a NilClass

2013-07-01 Thread linde . mvdl
Once again... 1 class test { 2 $var1 = 'foo' 3 $var2 = 'bar' 4 $vars = ["var1","var2"] 5 notice($var1) 6 notice($var2) 7 notice($vars) 8 each($vars) |$var| { 9$vardata = inline_template("<%= scope.lookupvar(var) %>") 10notice("$var: $vardata") 11 } 12 } -- You received

[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-07-01 Thread linde . mvdl
A way to work around your problem may be to use stages: class { repos: stage => first } #you may define stages before So all repositories will be available before the first packet will be installed. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

[Puppet Users] Puppet with Mcollective, which modules and how ? (TheForeman)

2013-07-01 Thread yamakasi . 014
Hi All, I have a working installation of a Puppet Master (CA) with Puppet agents, this using The Foreman. I really see the usage of Puppet this way but because The Foreman supports pushing your classes/templates to you nodes (agents) and uses the depricated Run/Kick for it I'm looking into Mco

Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)

2013-07-01 Thread Stefan Pommerening
Hi Wolf, indeed that 'exec' solution is what I've found when searching for a solution. In my situation this won't help - unfortunately. Nevertheless I tracked down the main problem to be caused by different usage scenarios for yum. When upgrading I have to specify only the main varnish package

Re: [Puppet Users] The handy Grail of Modules Standards

2013-07-01 Thread Alessandro Franceschi
On Monday, July 1, 2013 5:21:44 AM UTC+2, Ryan Coleman wrote: > > Hi Al, et al. I apologize for being so late to this party but I'm loving > all the conversation around this. I've read through the Google Doc and > found lots of cool ideas on class parameter names. Please forgive me > though, m

Re: [Puppet Users] Scope variable name is a NilClass

2013-07-01 Thread Mario van der Linde
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I've just seen that the scambled Quotations are not a problem of my Mailclient - so I put it here again better formatted... I would be really happy if anyone had a clue. Regards Mario Am 28.06.2013 18:08, schrieb Mario van der Linde: [...]