[Puppet Users] Hiera multiple datadirs

2014-05-29 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

Re: [Puppet Users] Hiera multiple datadirs

2014-05-29 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 if

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

2014-05-29 Thread Spencer Krum
I would do it in a .pp file. Removing as many variables as possible is a good thing. On Wed, May 28, 2014 at 6:03 PM, Dan White y...@comcast.net wrote: 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

[Puppet Users] Re: [SOLVED] Re: Error 400 on SERVER: no 'environments' in {:root_environment=#Puppet::Node::Environment:0x7f784c700668 @name=:*root*, @manifest=/usr/share/puppet/rack/puppetmaster

2014-05-29 Thread Adrián López Tejedor
I am having the same problem but I only have uppet-server-3.6.1, without passenger, dashboard, etc. It works correctly for 10' more or less, then start to give errors like: May 29 14:15:21 HOSTNAME puppet-master[30831]: no 'environments' in

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

2014-05-29 Thread Dan White
Found it ! A stray case change in an exec resource ( command -- Command ) Many thanks. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin Hobbes) On May 29, 2014, at 03:05 AM,

[Puppet Users] Re: [SOLVED] Re: Error 400 on SERVER: no 'environments' in {:root_environment=#Puppet::Node::Environment:0x7f784c700668 @name=:*root*, @manifest=/usr/share/puppet/rack/puppetmaster

2014-05-29 Thread Adrián López Tejedor
Downgrade to 3.5.1 since last message and running without problems. El jueves, 29 de mayo de 2014 14:22:51 UTC+2, Adrián López Tejedor escribió: I am having the same problem but I only have uppet-server-3.6.1, without passenger, dashboard, etc. It works correctly for 10' more or less, then

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

2014-05-29 Thread jcbollinger
On Wednesday, May 28, 2014 10:24:25 AM UTC-5, Jeremy wrote: 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 =

Re: [Puppet Users] Windows Package With Title Containing Square Brackets

2014-05-29 Thread Rob Reynolds
Hi Dan, Which version of Puppet are you using on Windows? We recently fixed some encoding issues that would seem to have been limited by similar issues. Let's try puppet resource package --debug --trace --verbose On Wed, May 28, 2014 at 9:05 AM, Dan Gibbons dangibbons@gmail.comwrote:

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

2014-05-29 Thread jcbollinger
On Wednesday, May 28, 2014 9:16:47 AM UTC-5, smalderma wrote: 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 = `command` out =

[Puppet Users] Tracking orphaned resources

2014-05-29 Thread Martin Langhoff
As the complexity of our $workplace puppet configuration grows, I am increasingly worried that puppet gives us very limited visibility over resources it no longer manages. In practical terms: if I mess up my class include/require/inherit structure so that a node A no longer indirectly includes

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

2014-05-29 Thread jcbollinger
On Tuesday, May 27, 2014 2:26:51 PM UTC-5, mhoey wrote: 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

Re: [Puppet Users] Tracking orphaned resources

2014-05-29 Thread David Schmitt
On 2014-05-29 15:58, Martin Langhoff wrote: As the complexity of our $workplace puppet configuration grows, I am increasingly worried that puppet gives us very limited visibility over resources it no longer manages. In practical terms: if I mess up my class include/require/inherit structure so

[Puppet Users] change jboss port

2014-05-29 Thread Ankita kumari
I want to know how can we change the jboss port no. which is 8080 by default -- 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] Tracking orphaned resources

2014-05-29 Thread Christopher Wood
Not that I've heard of such a tool, but if you archived catalogs somewhere you could compare the lists of resources over time. Or you could turn on catalog hash debugging to grab the current/previous catalog for the same technique:

[Puppet Users] Multiple instances of facter

2014-05-29 Thread Shree
Does anyone know how to deal with duplicate instances of facter which causes errors on the client like below. I am using Oracle Linux 6.3 and free puppet. $ sudo puppet agent -t info: Retrieving plugin Could not retrieve macaddress: undefined method `exec_ifconfig' for Facter::Util::IP:Module

[Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Mark McFate
I'm probably going about this all wrong, but I have an instance where I've employed a Puppet module and need to *sometimes* add a creates attribute to one of the exec's defined there. My code (below) is probably all wrong, but I think you'll see what I am trying to do... if $creates != nil

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Peter Bukowinski
On May 29, 2014, at 10:23 AM, Mark McFate summitt.dwel...@gmail.com wrote: I'm probably going about this all wrong, but I have an instance where I've employed a Puppet module and need to sometimes add a creates attribute to one of the exec's defined there. My code (below) is probably all

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread José Luis Ledesma
I have not tried with the creates param, but if its undef ( I.e. no one have set it) you can use it directly exec { drush-${title} : command = drush ${command} ${root_option} ${uri_option} ${force_option} ${additional_options}, path= [ '/bin', '/usr/bin' ], creates =

[Puppet Users] Re: [Puppet-dev] Tracking orphaned resources

2014-05-29 Thread Erik Dalén
There is /var/lib/puppet/state/state.yaml that records all resources ever managed and when they were last checked synced. However it only has the type and title of the resources, so it might be tricky to actually find out what they were in some cases. I'm not aware of any tools that make good

Re: [Puppet Users] Windows Package With Title Containing Square Brackets

2014-05-29 Thread Dan Gibbons
Hi Rob, Thanks for getting back to me. Agent version 3.4.3, here's the output: C:\Program Files (x86)\Puppet Labs\Puppet\binpuppet resource package --debug -- trace --verbose Debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist Debug:

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Mark McFate
Thanks Peter, but I can't make that work either. Puppet doesn't seem to like the defined( ) function inside the exec attributes list. It's kicking back a syntax error of the form: Error: Syntax error at 'defined'; expected '}' at /tmp/vagrant-puppet-1/modules-0/drush/manifests/exec.pp:65

[Puppet Users] Hiera / YAML Hash question

2014-05-29 Thread Christopher Fitchett
Hi, I have a YAML file constructed like this: servers: server1: host: 1.1.1.1 node: 1 server2: host: 1.1.1.2 node: 2 I have an erb template that needs the node id where the it address belongs to the machine it is running on. Is there a way in ruby to select

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Mark McFate
And thank you Joes Luis, but I'm also unable to make this work. It seems the $creates parameter must be declared in my module and when left with a blank or nil value Puppet kicks back this error: Error: Parameter creates failed on Exec[drush-drush-download-modules]: creates must be a fully

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread José Luis Ledesma
Have you tried to set it to undef? El 29/05/2014 17:13, Mark McFate summitt.dwel...@gmail.com escribió: And thank you Joes Luis, but I'm also unable to make this work. It seems the $creates parameter must be declared in my module and when left with a blank or nil value Puppet kicks back this

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

2014-05-29 Thread Kylo Ginsberg
On Wed, May 28, 2014 at 1:53 PM, Andy Parker a...@puppetlabs.com wrote: On Tue, May 27, 2014 at 11:33 AM, Kylo Ginsberg k...@puppetlabs.com wrote: On Tue, May 27, 2014 at 7:16 AM, Chuck cssc...@gmail.com wrote: The ability to turn off the deprecation messages would be great. The only

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Mark McFate
Ah, I misunderstood and didn't realize that Puppet's 'undef' bareword is effectively equivalent to a Ruby 'nil'. Thanks for the follow-up! I'm not all the way there yet, but yes, I believe this approach is working. Thanks. Just to be clear, I added a parameter definition to the module so

Re: [Puppet Users] Conditional Creates Attribute

2014-05-29 Thread Mark McFate
Confirmed... defaulting the parameter to the bareword 'undef' does the trick. Thanks again for the assist. -Mark On Thursday, May 29, 2014 10:32:10 AM UTC-5, Mark McFate wrote: Ah, I misunderstood and didn't realize that Puppet's 'undef' bareword is effectively equivalent to a Ruby 'nil'.

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

2014-05-29 Thread Clayton O'Neill
On Thu, May 29, 2014 at 11:30 AM, Kylo Ginsberg k...@puppetlabs.com wrote: I think a 'deprecation-level' setting might be more in keeping with logging. It defaults to warn, but can be turned down to debug if you don't want to normally see them. This seems like it might cause some confusion

Re: [Puppet Users] Multiple instances of facter

2014-05-29 Thread Josh Cooper
On Wed, May 28, 2014 at 4:13 PM, Shree shreeraj.karul...@gmail.com wrote: Does anyone know how to deal with duplicate instances of facter which causes errors on the client like below. I am using Oracle Linux 6.3 and free puppet. $ sudo puppet agent -t info: Retrieving plugin Could not

Re: [Puppet Users] Re: [SOLVED] Re: Error 400 on SERVER: no 'environments' in {:root_environment=#Puppet::Node::Environment:0x7f784c700668 @name=:*root*, @manifest=/usr/share/puppet/rack/puppetma

2014-05-29 Thread Josh Cooper
On Thu, May 29, 2014 at 6:08 AM, Adrián López Tejedor adrian...@gmail.comwrote: Downgrade to 3.5.1 since last message and running without problems. El jueves, 29 de mayo de 2014 14:22:51 UTC+2, Adrián López Tejedor escribió: I am having the same problem but I only have uppet-server-3.6.1,

Re: [Puppet Users] change jboss port

2014-05-29 Thread Rich Burroughs
Are you using a Puppet module to configure JBOSS? Rich On Thursday, May 29, 2014, Ankita kumari ankia...@gmail.com wrote: I want to know how can we change the jboss port no. which is 8080 by default -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] Re: Setting mountpoints as immutable

2014-05-29 Thread jcbollinger
On Tuesday, May 27, 2014 3:04:50 PM UTC-5, nix wrote: I would like puppet be able to set the immutable attribute on selected directory mount points before mounting on CentOS. That's not gonna happen unless you can be certain that Puppet will run only when there isn't yet anything

[Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
I am trying to use hiera to populate a defined type to feed the puppet-logstash module. So far, I have been unable to send the data from my hiera file to my defined type. I have tested my defined type and it is working, I just can't seem to populate the variables. It tells me that $content and

Re: [Puppet Users] Problem with duplicate params

2014-05-29 Thread Miguel Angel Coa M.
Hi everyone, I understand the problem and solved create the new subclass add_group and calling it from my add_users with include (include 'users::add_group') Thanks. 2014-05-28 13:39 GMT-04:00 jcbollinger john.bollin...@stjude.org: On Wednesday, May 28, 2014 5:20:19 AM UTC-5, Jose Luis

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
profiles::logstash::config: input_file: content: 'this is a test' order: '10' Should probably be profiles::logstash::config: content: 'this is a test' order: '10' On Thu, May 29, 2014 at 10:27 AM, Brian Wilkins bwilk...@gmail.com wrote: I am trying to use hiera to populate

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

2014-05-29 Thread Andy Parker
On Thu, May 29, 2014 at 8:30 AM, Kylo Ginsberg k...@puppetlabs.com wrote: On Wed, May 28, 2014 at 1:53 PM, Andy Parker a...@puppetlabs.com wrote: On Tue, May 27, 2014 at 11:33 AM, Kylo Ginsberg k...@puppetlabs.com wrote: On Tue, May 27, 2014 at 7:16 AM, Chuck cssc...@gmail.com wrote: The

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Oh ok, makes sense. I did that and now I get can't convert String into Hash at /etc/puppet/modules/profiles/manifests/logstash/shipper.pp:15 My shipper.pp class profiles::logstash::shipper() { $shipper_config = hiera('profiles::logstash::config', {})

[Puppet Users] Re: change jboss port

2014-05-29 Thread Ankita kumari
Yes I am using puppet to configure jboss -- 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: change jboss port

2014-05-29 Thread Ankita kumari
Yes I am using puppet module to configure jboss -- 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

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
Try setting your notice(${shipper_config}) before create resources and see what it prints out. On Thu, May 29, 2014 at 10:47 AM, Brian Wilkins bwilk...@gmail.com wrote: Oh ok, makes sense. I did that and now I get can't convert String into Hash at

Re: [Puppet Users] Hiera / YAML Hash question

2014-05-29 Thread Christopher Wood
Sounds like you want @servers[@hostname]['node'] ? If you want to match on the ip address that sounds like you'd have to loop over it or build an ip=hostname mapping. http://docs.puppetlabs.com/guides/templating.html#referencing-variables On Thu, May 29, 2014 at 08:08:53AM -0700, Christopher

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
It prints out: order10contentthis is a test It concatenated it all together. On Thursday, May 29, 2014 12:59:09 PM UTC-4, Doug_F wrote: Try setting your notice(${shipper_config}) before create resources and see what it prints out. On Thu, May 29, 2014 at 10:47 AM, Brian Wilkins

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
Just a thought try changing $shipper_config = hiera('profiles::logstash::config', {}) = $shipper_config = hiera_hash('profiles::logstash::config', {}) On Thu, May 29, 2014 at 11:01 AM, Brian Wilkins bwilk...@gmail.com wrote: It prints out: order10contentthis is a test It concatenated it

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Same problem. I see it concatenated in the notice. On Thursday, May 29, 2014 1:05:39 PM UTC-4, Doug_F wrote: Just a thought try changing $shipper_config = hiera('profiles::logstash::config', {}) = $shipper_config = hiera_hash('profiles::logstash::config', {}) On Thu, May 29, 2014 at

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
FYI this is how I ended up doing my logstash config module. It works but the content is not in Hiera we have flat files we manage. $logstash_configs = [ 'app1', 'app2', 'app3', ] logstash::configfile { Banner: source =

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
If you use hiera on the server does it show up as a hash? On Thu, May 29, 2014 at 11:08 AM, Brian Wilkins bwilk...@gmail.com wrote: Same problem. I see it concatenated in the notice. On Thursday, May 29, 2014 1:05:39 PM UTC-4, Doug_F wrote: Just a thought try changing $shipper_config

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
On puppetmaster: $ sudo hiera --debug profiles::logstash::config ::fqdn=hostname DEBUG: Thu May 29 13:12:56 -0400 2014: Hiera YAML backend starting DEBUG: Thu May 29 13:12:56 -0400 2014: Looking up profiles::logstash::config in YAML backend DEBUG: Thu May 29 13:12:56 -0400 2014: Looking for

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
Maybe try your hiera command right inside your create_resources. On Thu, May 29, 2014 at 11:13 AM, Brian Wilkins bwilk...@gmail.com wrote: On puppetmaster: $ sudo hiera --debug profiles::logstash::config ::fqdn=hostname DEBUG: Thu May 29 13:12:56 -0400 2014: Hiera YAML backend starting

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Same problem. It seems like I am close. If only it didn't put all the data together as one string. On Thursday, May 29, 2014 1:17:07 PM UTC-4, Doug_F wrote: Maybe try your hiera command right inside your create_resources. On Thu, May 29, 2014 at 11:13 AM, Brian Wilkins

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-29 Thread Rich Burroughs
Yeah I think masterless is probably the way to go for autoscaling. Even with autosigning on you have to deal with the cert issue somehow. I have a vagrant environment I hacked together for some testing and I re-use hostnames there. My solution was to have the agent execute a puppet cert clean on

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
I think I figured out what was wrong. Dynamic data bindings may be mapping the inputs to the profiles::logstash::config defined type. Also I was in error in modifying your hiera data. Try this: create_resources('profiles::logstash::config', hiera_hash('profiles::logstash::config_settings')) In

[Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-05-29 Thread Christopher Wood
(I'm not sure how to phrase my question precisely, so this may not all be totally clear.) Has anybody else successfully moved away from using params.pp and default values, and if so, what did you do and how did it go? If not, what made you go back? The only answer I can come up with is to

[Puppet Users] Re: Conditional Creates Attribute

2014-05-29 Thread jcbollinger
On Thursday, May 29, 2014 9:23:54 AM UTC-5, Mark McFate wrote: I'm probably going about this all wrong, but I have an instance where I've employed a Puppet module and need to *sometimes* add a creates attribute to one of the exec's defined there. My code (below) is probably all wrong,

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Hmm, that's not working either. Doesn't look like it is populating my define now. Hmm On Thursday, May 29, 2014 1:56:43 PM UTC-4, Doug_F wrote: I think I figured out what was wrong. Dynamic data bindings may be mapping the inputs to the profiles::logstash::config defined type. Also I was in

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Doug Forster
Does it show up properly if you lookup on the server? On Thu, May 29, 2014 at 12:09 PM, Brian Wilkins bwilk...@gmail.com wrote: Hmm, that's not working either. Doesn't look like it is populating my define now. Hmm On Thursday, May 29, 2014 1:56:43 PM UTC-4, Doug_F wrote: I think I

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Yep! $ sudo hiera --debug profiles::logstash::config_settings ::fqdn=hostname DEBUG: Thu May 29 14:24:29 -0400 2014: Hiera YAML backend starting DEBUG: Thu May 29 14:24:29 -0400 2014: Looking up profiles::logstash::config_settings in YAML backend DEBUG: Thu May 29 14:24:29 -0400 2014: Looking

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-05-29 Thread Brian Wilkins
Solved it using this tip.. it's odd but it works: http://serverfault.com/a/538877/26514 shipper.pp class profiles::logstash::shipper() { $shipper_array = hiera_array('profiles::logstash::config_array') define hash_extract() { $shipper_hash =

[Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-05-29 Thread Sans
I have two identical nodes - serv106 and serv107 - one of which is working just fine but the other one failing with these error message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `include?' for nil:NilClass on node warning: Not using cache on

Re: [Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-05-29 Thread Felix Frank
Hi, this error can me pretty much anything - you're likely hitting some kind of bug (perhaps just a lack of error handling). Run the puppet master with the --trace flag to get more details on what's happening specifically. Felix On 05/29/2014 09:57 PM, Sans wrote: I have two identical nodes

Re: [Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-05-29 Thread Sans
Thanks Felix for the heads up. Sorry for the long post. That's all I get using --trace option but I still can't figure out what's going wrong. notice: Starting Puppet master version 2.7.23 info: access[^/catalog/([^/]+)$]: allowing 'method' find info: access[^/catalog/([^/]+)$]: allowing $1

Re: [Puppet Users] Tracking orphaned resources

2014-05-29 Thread Henrik Lindberg
On 2014-29-05 15:58, Martin Langhoff wrote: As the complexity of our $workplace puppet configuration grows, I am increasingly worried that puppet gives us very limited visibility over resources it no longer manages. In practical terms: if I mess up my class include/require/inherit structure so

Re: [Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-05-29 Thread Henrik Lindberg
On 2014-29-05 21:57, Sans wrote: I have two identical nodes - serv106 and serv107- one of which is working just fine but the other one failing with these error message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `include?' for