Re: [Puppet Users] Puppet on OpenSuSE SLES

2012-10-29 Thread Niels Abspoel
Hi Darin, The puppet package has been updated in systemsmanagement:puppet:devel in opensuse build service to include ruby-shadow. Hope this package will become the new puppet package in opensuse 12.3. en SLES. It works great on my own machine. Maybe we can update the spec file with the spec

[Puppet Users] array and string

2012-10-29 Thread Hiu
hi all, I have an array and i would like to convert it into a string format. e.g. $server = [node1, node2, node3] when I write my puppet codes exec { myscript -S $server: path = } my $server becomes a continual string like: node1node2node3, instead of node1 node2 node3. How can i have

[Puppet Users] Installing zip files

2012-10-29 Thread Luca Gioppo
I have the problem of installing stuff in zip files (that is the tipical way of distributing java stuffs as JBoss, WSO2). Which can be the preferred solution to make such an install: - the only option I see is gettin the zip with curl or wget and than executing a unzip placing the stuff in the

Re: [Puppet Users] array and string

2012-10-29 Thread Johan De Wit
Hi, you can use inline_template, this way you can incorperate ruby code in your manifest $server_string = inline_template(% server.join(' ') %) see http://docs.puppetlabs.com/references/latest/function.html#inlinetemplate hope this helps Grts Jo On 10/29/2012 09:29 AM, Hiu wrote: hi

[Puppet Users] RHEL 6 Protected multilib versions Requirment to have both 32 and 64 bit libs installed.

2012-10-29 Thread Jelle B.
Hi I have seen numerous posts via Google saying this is an issue but not found a puppet based solution for it. Does anyone have an idea how I can make this work ? I do realize I am looking at separate versions and was playing with the idea to force a more locked down versioning to keep them

[Puppet Users] Re: bootstrap aws instance - set server address in instance puppet.conf?

2012-10-29 Thread sajan Tharayil
On Tuesday, 3 July 2012 02:28:28 UTC+5:30, Leej wrote: *Hello, new user here. I'm trying to bootstrap an aws instance and need to change the server setting in puppet.conf on the client/instance that is created. Is there anyway to do this beyond modifying hosts post-hoc?* You can create a

[Puppet Users] Re: hiera broken in puppet-3

2012-10-29 Thread asq
W dniu piątek, 26 października 2012 18:19:22 UTC+2 użytkownik Ellison Marks napisał: I think that might have been renamed... http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#facts-and-built-in-variables Down near the bottom, under parser set variables, there's $module_name

[Puppet Users] Custom fact not loading in puppet...

2012-10-29 Thread Gavin Williams
Afternoon all, I'm having issues with using a custom fact in Puppet. I've done some googling, and found lots of suggestions, but none of them solved my issue... I'm trying to use stdlib and facter_dot_d.rb to read in yaml files that I'm creating and convert them to facts. The facts work

Re: [Puppet Users] array and string

2012-10-29 Thread Erik Dalén
or use the join() function from puppetlabs-stdlib module. -- Erik Dalén On Monday 29 October 2012 at 05:08, Johan De Wit wrote: Hi, you can use inline_template, this way you can incorperate ruby code in your manifest $server_string = inline_template(% server.join(' ') %) see

Re: [Puppet Users] Re: defined types and enc

2012-10-29 Thread jcbollinger
On Friday, October 26, 2012 3:53:42 PM UTC-5, erkules wrote: On Fri, Oct 26, 2012 at 12:24:52PM -0700, jcbollinger wrote: [snip] If not is there a trick to call a class many times for a node. (Maybe by manipulating the name?) You can create classes with

Re: [Puppet Users] Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)

2012-10-29 Thread joe dhonny
Hi Dave, Am 26.10.2012 20:50, schrieb Dave Mankoff: Interesting. It sounds like you're actually advocating _for_ the bash script approach. I wanted to avoid package management systems only because they are way more complicated than a basic install of python requires: wget python.tgz

[Puppet Users] Re: RHEL 6 Protected multilib versions Requirment to have both 32 and 64 bit libs installed.

2012-10-29 Thread jcbollinger
On Monday, October 29, 2012 4:46:56 AM UTC-5, Jelle B. wrote: Hi I have seen numerous posts via Google saying this is an issue but not found a puppet based solution for it. Does anyone have an idea how I can make this work ? I do realize I am looking at separate versions and was playing

[Puppet Users] Re: Installing zip files

2012-10-29 Thread jcbollinger
On Monday, October 29, 2012 3:37:45 AM UTC-5, Luca Gioppo wrote: I have the problem of installing stuff in zip files (that is the tipical way of distributing java stuffs as JBoss, WSO2). Which can be the preferred solution to make such an install: - the only option I see is gettin the zip

[Puppet Users] Re: creating a list of files from an external define

2012-10-29 Thread jcbollinger
On Sunday, October 28, 2012 8:23:30 AM UTC-5, danielt wrote: The definition doesn't need to be in its own module, but it should be in its own *file* within the module (which is what puppet-lint was telling you), I know but having a definition which just copys files in a global name

Re: [Puppet Users] Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)

2012-10-29 Thread jcbollinger
On Friday, October 26, 2012 1:50:53 PM UTC-5, Dave Mankoff wrote: [...] I wanted to avoid package management systems only because they are way more complicated than a basic install of python requires: wget python.tgz tar -xzvf python.tgz cd python ./configure

[Puppet Users] how to intercept a catalog and perform a diff

2012-10-29 Thread Kevin G.
I'm re-reading the puppet docs http://docs.puppetlabs.com/learning/manifests.html and just noticed this footnote If you drastically refactor your manifest code and want to make sure it still generates the same configurations, you can just intercept the catalogs and use a special diff tool on

Re: [Puppet Users] how to intercept a catalog and perform a diff

2012-10-29 Thread Brice Figureau
On Mon, 2012-10-29 at 08:25 -0700, Kevin G. wrote: I'm re-reading the puppet docs http://docs.puppetlabs.com/learning/manifests.html and just noticed this footnote If you drastically refactor your manifest code and want to make sure it still generates the same configurations, you can

Re: [Puppet Users] how to intercept a catalog and perform a diff

2012-10-29 Thread R.I.Pienaar
- Original Message - From: Kevin G. kgo...@bepress.com To: puppet-users@googlegroups.com Sent: Monday, October 29, 2012 3:25:08 PM Subject: [Puppet Users] how to intercept a catalog and perform a diff I'm re-reading the puppet docs

Re: [Puppet Users] Puppet 3.0 rspec and custom resources

2012-10-29 Thread Nathan Huff
A super simple module that just has a file and anchor resources works fine so it isn't that things aren't getting loaded at all. I am going to start ripping things out of my more complex module and see if I can track down the trigger. On Friday, October 26, 2012 5:35:07 PM UTC-5, Jeff McCune

RE: [Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-29 Thread Esther Hanko
Does anyone remember the following deprecation warning: DEPRECATION NOTICE: Files found in modules without specifying 'modules' in file path will be deprecated in the next major release. Please fix module 'zabbix_agent' when no 0.24.x clients are present I believe I had the same problem

Re: [Puppet Users] how to intercept a catalog and perform a diff

2012-10-29 Thread Henrik Lindberg
On 2012-29-10 16:25, Kevin G. wrote: I'm re-reading the puppet docs http://docs.puppetlabs.com/learning/manifests.html and just noticed this footnote If you drastically refactor your manifest code and want to make sure it still generates the same configurations, you can just intercept the

Re: [Puppet Users] multiple puppetmasters, single ca

2012-10-29 Thread Jeff McCune
On Sun, Oct 28, 2012 at 9:53 PM, ryan wallner wallnerr...@gmail.com wrote: HI all, I am currently setting up a HA devops configuration using puppet. I want to be able to run a single puppet master as the CA and the rest act as peering puppet masters. I have each puppet master running on

Re: [Puppet Users] Connection Timed Out updating node on 3g mobile broadband device

2012-10-29 Thread Steve
The fix was lowering the MTU. I ran ifconfig ppp0 mtu 1000 and puppet runs without any problem. I didn't think this fixed it in my last post because I made some changes on the puppet master. Once I fixed those changes I lowered the MTU and it works!! On Friday, October 26, 2012 11:05:40

[Puppet Users] Re: hiera broken in puppet-3

2012-10-29 Thread asq
ok, i got it working with this patch: https://github.com/Fewbytes/puppet/commit/71d9449464d5f10042b9cc31aea1586f98363293 however, if i apply the rest of this PR it breaks again. so beware :) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] help with creating self.instances for puppetlabs-lvm providers

2012-10-29 Thread Corey Osman
Hi, I have been adding support for the puppetlabs-lvm module so that I can use puppet resource lvm_type. I have most of the coding done but can't seem to get certain parameters in the output. https://github.com/logicminds/puppetlabs-lvm/commit/deb258231f5a4dc6da7c0d65a7153846b8766b3e

Re: [Puppet Users] Puppet 3.0 rspec and custom resources

2012-10-29 Thread Nathan Huff
OK so I have what I think is a minimal test case here: https://github.com/nhuff/spec-failure The readme has a list of gems I have installed in it. You seem to need spec tests for two classes, one of which is in a sub namespace of the other. In this case 'test' and 'test::c'. With both spec

Re: [Puppet Users] RHEL 6 Protected multilib versions Requirment to have both 32 and 64 bit libs installed.

2012-10-29 Thread Tim Mooney
In regard to: [Puppet Users] RHEL 6 Protected multilib versions Requirment...: (/Stage[main]/Libstdc/Package[libstdc++.i686]/ensure) change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install libstdc++.i686' returned 1: Error: Protected multilib versions:

Re: [Puppet Users] Puppet 3.0 rspec and custom resources

2012-10-29 Thread Nathan Huff
Looks like the subnamespace thing isn't important either. Just having two classes triggers this as well. On Monday, October 29, 2012 1:13:05 PM UTC-5, Nathan Huff wrote: OK so I have what I think is a minimal test case here: https://github.com/nhuff/spec-failure The readme has a list of

[Puppet Users] help with scoping variable into a template

2012-10-29 Thread mparrad
Hi guys, I'm working on puppet for windows, and now I have to work on a template that use the value from a variable set it on a class, the problem that i got is always I got undef value on the result file. I checked this URL without no results

[Puppet Users] Re: bootstrap aws instance - set server address in instance puppet.conf?

2012-10-29 Thread Martijn
Here's another option for people who are not using Puppet Cloud Provisioner, but for example EC2's autoscaling or launching test-instances by hand.: Ubuntu and Amazon Linux images include a tool called CloudInit, which makes it easy to perform bootstrapping tasks on a new instance. It's built

[Puppet Users] how to install a module from github

2012-10-29 Thread Kevin G.
I seem to be missing something. I've copied the files from this module https://github.com/torrancew/puppet-cron into my modulepath $ puppet master --configprint modulepath /etc/puppet/modules:/usr/share/puppet/modules so it looks like this: /etc/puppet/modules/cron-job/

[Puppet Users] Re: how to install a module from github

2012-10-29 Thread Jenner La Fave
cron::daily is actually a defined resource type, so you need to declare that resource as opposed to including a class. If you have multiple nodes that you would like to include the same cron job on, you can write your own class that declares a cron resources and include that. It's hard to say

[Puppet Users] Re: how to install a module from github

2012-10-29 Thread Kevin G.
On Monday, October 29, 2012 4:19:11 PM UTC-7, Jenner La Fave wrote: cron::daily is actually a defined resource type, so you need to declare that resource as opposed to including a class. If you have multiple nodes that you would like to include the same cron job on, you can write your own

[Puppet Users] intercept/pre-process cert request?

2012-10-29 Thread Lou
I'm assuming this is possible, but I can't find a good starting point anywhere, so I'm hoping someone here can help. What I want to do is, somewhere in the cert approval process, run an extra check before saying yes. I have a puppet master running with auto sign turned on, I bring up a puppet

[Puppet Users] Re: how to install a module from github

2012-10-29 Thread Jenner La Fave
Oh, right. You need to rename /etc/puppet/modules/cron-job/ to cron/ The outermost directory needs to match the module name which needs to be cron. http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html On Monday, October 29, 2012 4:31:53 PM UTC-7, Kevin G. wrote: On

[Puppet Users] Re: how to install a module from github

2012-10-29 Thread Kevin G.
On Monday, October 29, 2012 4:38:07 PM UTC-7, Jenner La Fave wrote: Oh, right. You need to rename /etc/puppet/modules/cron-job/ to cron/ The outermost directory needs to match the module name which needs to be cron. Aha! That's it, thank you!

[Puppet Users] Platform Support at {apt,yum}.puppetlabs.com

2012-10-29 Thread Matthaus Owens
Both apt and yum have old flavors of debian, ubuntu, and fedora which will be removed shortly. Here is a list of the affected platforms. Fedora 15 support ended 2012-06-26 Debian 5 (Lenny) support ended 2012-02-06 Ubuntu 10.10 (Maverick) support ended 2012-04-10 In general, we will maintain

Re: [Puppet Users] Have Class Only Perform Actions When There Is Work To Do (i.e. Making Them Idempotent)

2012-10-29 Thread John Warburton
On 30 October 2012 01:59, jcbollinger john.bollin...@stjude.org wrote: On Friday, October 26, 2012 1:50:53 PM UTC-5, Dave Mankoff wrote: [...] I wanted to avoid package management systems only because they are way more complicated than a basic install of python requires: There is a bit of a