Re: [Puppet Users] Hiera multiple datadirs

2014-05-28 Thread Spencer Krum
I agree. I've posted my thoughts and a janky workaround here: https://tickets.puppetlabs.com/browse/HI-148 On Wed, May 28, 2014 at 11:36 PM, Sergey Arlashin < sergeyarl.maill...@gmail.com> wrote: > Hi! > As far as I know Hiera at the moment doesn't support multiple datadirs. > Does anybody know

[Puppet Users] Hiera multiple datadirs

2014-05-28 Thread Sergey Arlashin
Hi! As far as I know Hiera at the moment doesn't support multiple datadirs. Does anybody know if it is going to support it in future releases? It would be really great if it did. -- Best regards, Sergey Arlashin -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] hiera hash to create_resources bombing - looking for how to troubleshoot

2014-05-28 Thread Dan White
Thanks, gentlemen, for the suggestions. I will try both tomorrow. For the single instance, should I do it explicitly in the dot-pp file or should I do it thru hiera ? If I do not get a response in time, I will try both ways. Looking forward to Puppet Camp in DC next week. On May 28, 2014, at 7

Re: [Puppet Users] hiera hash to create_resources bombing - looking for how to troubleshoot

2014-05-28 Thread Spencer Krum
Creating a single instance of the defined type using the puppet syntax should help you see the errors. On Wed, May 28, 2014 at 3:56 PM, Clayton O'Neill wrote: > I've run into this a few times and I've found that looking at the server > logs, or running the puppet master with --trace usually give

Re: [Puppet Users] hiera hash to create_resources bombing - looking for how to troubleshoot

2014-05-28 Thread Clayton O'Neill
I've run into this a few times and I've found that looking at the server logs, or running the puppet master with --trace usually gives me enough information to work out where the error is being generated. On Wed, May 28, 2014 at 3:23 PM, Dan White wrote: > I found this reported bug: > https://t

[Puppet Users] Upgrade time

2014-05-28 Thread Josh Vaughn
Hello- Its puppet upgrade time. I'm running Puppet Master 3.2.3, with newer-ish agents. I'm also deeply invested in hiera and puppetdb with postgres on the back-end. My current puppet master was laid down with a tar ball, and was installed with ruby 1.8.7.blah, running out of Nginx and Rack/Pass

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-28 Thread Andy Parker
On Tue, May 27, 2014 at 11:33 AM, Kylo Ginsberg wrote: > On Tue, May 27, 2014 at 7:16 AM, Chuck wrote: > >> The ability to turn off the deprecation messages would be great. The >> only things these messages provide are a drain on logging resources, noise >> in the logs, and confusion from end u

Re: [Puppet Users] Using scheduled_task for Windows startup

2014-05-28 Thread Rob Reynolds
On Wed, May 28, 2014 at 10:45 AM, Kurt Wolf wrote: > How would I go about adding this as a feature request? We have a couple > of older applications that we have been able to provide updates for at > system startup. I want to use puppet to manage that scheduled task. > I believe you would need

[Puppet Users] hiera hash to create_resources bombing - looking for how to troubleshoot

2014-05-28 Thread Dan White
I found this reported bug: https://tickets.puppetlabs.com/browse/PUP-1100 Any clue how to debug it ? This hit me when moving from Puppet 3.5.1 on RHEL 5 to Puppet 3.6.0 on RHEL 6 The defined type that it is barfing on is moderately complicated. “Sometimes I think the surest sign that intelligent

[Puppet Users] how to define roles an profiles in my environment

2014-05-28 Thread Supriya Uppalapati
Hi, I have webservers, application servers and in the webservers I have weblogic,soa,esb. and the environments I have are development,testing,production and zones I have are control production,control pre-production,development,testing. What is the best way I can define these in roles and pr

Re: [Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-28 Thread Felipe Salum
I use a different approach to clean up certificates and the node on the puppet dashboard, but it is a ugly hack. I'm writing something in python to read the autoscaling termination message posted to SNS->SQS and I should have something up tonight. I will share here and get feedback, I'm planning to

Re: [Puppet Users] Problem with duplicate params

2014-05-28 Thread jcbollinger
On Wednesday, May 28, 2014 5:20:19 AM UTC-5, Jose Luis Ledesma wrote: > > The problem is that you have more than one user in the same group, so you > are declaring the same group more than one time. > Yes. > The solution could be make use of virtual resources for your groups and > realize

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-28 Thread jcbollinger
On Tuesday, May 27, 2014 6:23:41 AM UTC-5, Hugh Cole-Baker wrote: > > > Am I missing a configuration option in the manual to somehow disable SSL >> certificate validation? Does everybody add a cron job to their puppet >> master to stop the puppetmaster daemon and blow away its SSL directory the

Re: [Puppet Users] Using scheduled_task for Windows startup

2014-05-28 Thread Kurt Wolf
How would I go about adding this as a feature request? We have a couple of older applications that we have been able to provide updates for at system startup. I want to use puppet to manage that scheduled task. On Thursday, December 5, 2013 5:01:34 PM UTC-5, Rob Reynolds wrote: > > > On Wed, D

[Puppet Users] Indianapolis Meetup

2014-05-28 Thread Garrett Honeycutt
Hello, Started a new users group meetup in Indy. Our first meeting will be on June 12th at 18:30. Looking forward to building community around us all learning about Puppet from each other. http://www.meetup.com/Indy-Puppet-Meetup Best regards, -g -- Garrett Honeycutt @learnpuppet Puppet Traini

Re: [Puppet Users] is there any any wat to create directoryies using hiera

2014-05-28 Thread Jeremy T. Bouse
On 28.05.2014 11:03, Supriya Uppalapati wrote: Hi, I have created directories in puppet/manifests/init.pp more init.pp class createdirectory { file { [ "/u01/app/","/u01/oracle", "/u01/oracle/product", ]: ensure => "directory", owner => "oracle", group => "oinstall", recurse => true, mod

[Puppet Users] is there any any wat to create directoryies using hiera

2014-05-28 Thread Supriya Uppalapati
Hi, I have created directories in puppet/manifests/init.pp * more init.ppclass createdirectory { file { [ "/u01/app/","/u01/oracle", "/u01/oracle/product", ]: ensure => "directory", owner => "oracle", group => "oinstall", recurse => true, mode => 755,

Re: [Puppet Users] Re: Calculating network address - boolean opertors

2014-05-28 Thread Brian Mathis
I did some more work on this and got it to accept a dotted-quad formatted subnet mask, so you don't need to use CIDR format: $host = "10.122.3.177" $mask = '255.255.255.128' ### Convert netmask to CIDR bits $mask_cidr_bits = { '255' => '8', '254' => '7', '252' => '6',

[Puppet Users] Custom Fact Help? Works in ruby, but not facter...

2014-05-28 Thread smalderma
Hi, I'm working on custom fact that uses Facter::Util::Resolution.exec to run a command that returns output I want to parse with regex. If I write up a ruby shell script like: #!/usr/bin/ruby out = `` out = out.gsub!(//, "\\1\\3") puts "#{out}" The desired output comes to the screen, every t

[Puppet Users] Windows Package With Title Containing Square Brackets

2014-05-28 Thread Dan Gibbons
Hi, We're trying to install a package but the title has got square brackets which seems to make Puppet blow up, for example: package { "Windows Server AppFabric v1.1 CU4 [KB 2800726]": ensure => installed, source => $fullInstallerPath, install_options => $install_

[Puppet Users] Re: Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type jdk7::javaexec

2014-05-28 Thread Srinidhi krishnamurthy
Hi Supriya , i encountered similar issue while installing weblogic , i have resolved this by calling the class file seperatly like below. create a new file in orawls module and add below lines and call using "puppet apply -v --modulepath= test.pp" test.pp >> include orawls class{'orawls::web

Re: [Puppet Users] Problem with duplicate params

2014-05-28 Thread Toni Schmidbauer
At Tue, 27 May 2014 12:07:30 -0700 (PDT), Mike wrote: > Error 400 on SERVER: Duplicate declaration: Group[test] is already > declared in file /etc/puppet/modules/users/manifests/add_user.pp:11; > cannot redeclare at /etc/puppet/modules/users/manifests/add_user.pp:11 > on node master.example.com a

[Puppet Users] Implicit conversion of string to integer error with ec2_userdata

2014-05-28 Thread mhoey
I recently installed a puppet 3.4.3 puppetmaster. I am working on a project to convert all of our manifests over from 2.7 to 3.4.3. While trying to run a master/agent setup on the puppetmaster itself, I am getting the following error: "Error: Could not retrieve catalog from remote server: Error

[Puppet Users] Setting mountpoints as immutable

2014-05-28 Thread nix
I would like puppet be able to set the immutable attribute on selected directory mount points before mounting on CentOS. I already have the mountpoints managed by puppet, so their existence is ensured prior to the mount, but how do I add the immutable flag? I know puppet does not natively supp

Re: [Puppet Users] PostgreSQL INSERT

2014-05-28 Thread Dirk Heinrichs
Am 27.05.2014 14:01, schrieb Felix Frank: > Exec is mainly a crutch for places in which no provider is yet > available. It can be worthwile in some instances, of course, but in the > majority of applications, there is a strong case for type support. While I surely agree with you here, the problem

Re: [Puppet Users] PostgreSQL INSERT

2014-05-28 Thread zerozerounouno
Il giorno martedì 27 maggio 2014 13:54:18 UTC+2, Dirk Heinrichs ha scritto: > I wonder what's wrong with exec? I use for example: > Thank you, I'll try to adapt your example to my needs (I'm on Linux so some of your parameters won't fit), although I have the same feeling Felix expressed. But

Re: [Puppet Users] Problem with duplicate params

2014-05-28 Thread José Luis Ledesma
The problem is that you have more than one user in the same group, so you are declaring the same group more than one time. The solution could be make use of virtual resources for your groups and realize them when needed, or make use of the "evil" defined function. Regards, El 27/05/2014 21:07, "m

Re: [Puppet Users] Squeeze and Wheezy

2014-05-28 Thread Christopher Wood
Try the lsbdistdescription fact. You'll need to install lsb-release to get it though. On Wed, May 28, 2014 at 01:37:11AM -0700, AAB !! wrote: >Hi, > I want the puppet agent to check replace some file if the OS is debian >squeeze and if it is debian wheezy then these changes should not

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-28 Thread Hugh Cole-Baker
Here is the code that we use to pull Auto Scaling messages off an SQS queue and add/remove the respective nodes to autosign.conf and sign or clean up their certificates. https://gist.github.com/sigmaris/bda78c1857034031eb76 It's copied and pasted out of a larger application that handles various

Re: [Puppet Users] Changes for Squeeze and not for Wheezy

2014-05-28 Thread Felix Frank
Hi, your manifest should make this distinction based on the $::operatingsystemrelease fact. HTH, Felix On 05/28/2014 10:47 AM, AAB !! wrote: > Hi, > I want the puppet agent replace some file if the OS is debian squeeze > and if it is debian wheezy then these changes should not be implemented. >

[Puppet Users] Changes for Squeeze and not for Wheezy

2014-05-28 Thread AAB !!
Hi, I want the puppet agent replace some file if the OS is debian squeeze and if it is debian wheezy then these changes should not be implemented. Could someone help me ? Regards -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe

[Puppet Users] Squeeze and Wheezy

2014-05-28 Thread AAB !!
Hi, I want the puppet agent to check replace some file if the OS is debian squeeze and if it is debian wheezy then these changes should not be implemented. Could someone help me ? Regards -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To u