[Puppet Users] Re: Puppet agent run error "couldnt find valid string"

2021-05-15 Thread earthgecko
Hi avenk I think you just need to change from declaring *undef* to using an empty array. The code will throw the error where the class is *NOT called* with *$enable_ipv6_localhost = true*, Change: *$my_localhost6_aliases = undef* to *$my_localhost6_aliases = []* As your own code is throwing

[Puppet Users] Re: Ubuntu Desktop

2014-04-13 Thread earthgecko
Just for FYI sake if, may help someone that stumbles across this thread. On ubuntu at least, desktop users must have a uid > 1000 to be able to login to the desktop via gnome. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe fro

[Puppet Users] Re: Internal server error

2013-01-04 Thread earthgecko
Hi Mamta This is not really a puppet issue, you have no space left on the device. What puppet master files can you delete, well reports would be one, if you have them enabled and if you wanted to. They normally reside: /var/lib/puppet/reports//*.yaml However you may want the data in the futur

[Puppet Users] Re: for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Hi John Thanks, that will solve my immediate requirement. Trying to keep it as puppet DSL and simple as possible. However, I will check out the create_resources() function further. Thanks for the pointers. -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Re: for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Apologies app::thing { 'foo': config_templates = ['foo.conf', 'foo.more.conf'] } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/tsXtAlEp-8sJ. To post to

[Puppet Users] for i in array do something - iteration irritation

2012-11-07 Thread earthgecko
Hi I am sure that there is some way to iterate an array and do something for each in. It must be a wheel that has been invented (even if in a ruby function)? I have needed to do something like this a few times now and I reckon someone clever has already done it :) Using a normal bash type fo

Re: [Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread earthgecko
OK then. command => "mkdir -p $(dirname ${home})", That does it. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/1LLoBIiTMZ4J. To post to this group,

[Puppet Users] Re: Class Execution order

2012-08-14 Thread earthgecko
Dreaded. I have found that using the .dot files that puppet --graph option produces sometimes helps see those dreaded dependency cycle issues (and some times it does not). I recommend graphviz for anyone on linux for generating png files for the .dot files (not sure for Windows). On my setup

[Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread earthgecko
So as a variable I get passed in $home and it may be for example > /first/second/userdirectory where first and second may not exist. > > So I wanted to do a simple exec command which does the following if I were > to do it at the command line: > > mkdir -p ${home%/*} > > ...this would make /fi

[Puppet Users] Re: Passing special characters to exec's command - syntax help!!

2012-08-14 Thread earthgecko
There are a number of ways to achieve that. One would be to. file { [ '/first', '/first/second' ]: ensure => directory, owner => 'root', group => 'root', mode => '0755', before => User['julia'], } user { 'juila': ensure => present, gid => 'julia', groups=> ['u

Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-25 Thread earthgecko
Once again Stefan, thanks. That explanation makes sense. "The thing between <% and %> will be interpreted as ruby code but you mix > in erb syntax inside this ruby fragment. > I once read somewhere that erb was really flexible. I guess not that flexible :) Regards Gary -- You received this

Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread earthgecko
he each do context. However, for the time being problem solved, thanks for the time. Regards Gary On Tuesday, July 24, 2012 6:12:27 PM UTC+1, Stefan Schulte wrote: > > On Tue, Jul 24, 2012 at 08:08:30AM -0700, earthgecko wrote: > > Quick erb question: > > > > Can you use a if

[Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-24 Thread earthgecko
Quick erb question: Can you use a if val in an each do iteration? And if so... how :/ If someone knows and is kind enough to shed some light. Trying to figure what will work and the following do NOT work. <% hosts.each do |val| %><% if val != "<%= hostname %>" %> host (<%= val %>);<% end %>

Re: [Puppet Users] Environment and layout questions

2012-07-12 Thread earthgecko
Hi Tim I had a similar question in https://groups.google.com/forum/?fromgroups#!topic/puppet-users/fhHYT3LkBoE but spent a while figuring out and testing what is possible. Hopefully this will help you or someone work their way around a corner. Puppet Environments * Common modules, environmen

[Puppet Users] Re: configure apache passenger problem

2012-07-08 Thread earthgecko
Sound like you only have the passenger gem installed, it needs to install the apache module. Here is a snippet from a Centos puppet build. init.pp # # modules/passenger/manifests/init.pp class passenger { package { 'rack': ensure => '1.1.0', provider => 'gem', re

[Puppet Users] Re: Correct way to handle node-specific variable values in puppet 2.7

2012-06-19 Thread earthgecko
Due to the documentation not being specifically clear with regards to node level variables and scoping. In 2.7 node variables they are local scope. Therefore in your templates you call the ldap_server variable NOT ::ldap_server as it is not a top scope variable. As I say, the document is not s

[Puppet Users] Re: Question regarding variables

2012-06-08 Thread earthgecko
Possibly the templates in question are being evaluated before the module_vars.pp Check the master log for something like: "Could not look up qualified variable 'module::module_vars::var'; class module has not been evaluated" G -- You received this message because you are subscribed to the Goog

[Puppet Users] puppet environments - environment specific configs and templates

2012-04-13 Thread earthgecko
I just want to sanity check this before reinventing the wheel or more importantly doing something outside the "norm" which may come back to bite me on another puppet version release. Current versions - master 2.7.12, client 2.7.13. It appears that although puppet environments allows for environme

[Puppet Users] Changing the puppetca CA password

2012-01-10 Thread earthgecko
Currently the puppetca CA password is set to 'secret' How would one go about changing it? I agree with puppetlabs documentation that you should be an SSL expert to implement your own CA. I am not. However I would like to use puppet's CA PKI infrastructure with ActiveMQ over TLS and it is seems