[Puppet Users] Re: puppet module search using an HTTP proxy
no Stephen this doesnt work is there any other way of installing puppet modules? through yum? On Sunday, December 1, 2013 9:10:15 AM UTC+5:30, Stephen Wallace wrote: Maybe something as simple as using httpS? The puppet module face requires https when downloading I believe. Try 'export https_proxy=my.proxy.com' I hope this helps. Stephen -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/5d640621-d1e3-40f2-a3ee-f40db3c7b27a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.
Hi, I've taken a look into the issue and it would appear that your root problem is wrong template syntax. The below is not strictly valid: On 11/27/2013 02:40 PM, David Portabella wrote: file.txt.erb var from file.txt.erb: %= @var % What works as expected: var from file.txt.erb: %= var % or var from file.txt.erb: %= scope.lookupvar(var) % The fact that the member variable syntax @var works at all is confusing, and may be considered a bug. Will update Redmine accordingly. I believe that the support for such templates should be deprecated if possible. Thanks, Felix -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/529B0A5E.7000202%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.
Hi, What works as expected: var from file.txt.erb: %= var % using var instead of @var produces this warning on puppet 3: *Warning: Variable access via 'var' is deprecated. Use '@var' instead. * and it's explained here: http://docs.puppetlabs.com/guides/templating.html *Historically, all of the variables visible in the current scope were also available as Ruby methods — that is, fqdn, memoryfree, operatingsystem, etc., without the prepended @ sign. This style of reference caused problems when variable names collided with Ruby method names; its use emits deprecation warnings as of Puppet 3 and will be removed in Puppet 4. Please update any existing code which uses it and start any new code out with the @fqdn instance-variable syntax.* var from file.txt.erb: %= scope.lookupvar(var) % yes, we need to use this function if we need to access someothermodule::var, or a hiera variable. however, using this function for all variables in the current scope would be ugly. The fact that the member variable syntax @var works at all is confusing, and may be considered a bug. yes. that's what we are saying. dynamic lookup in templates should show a warning in puppet 2.7, and stop working on puppet 3. Regards, David On Sunday, December 1, 2013 11:07:26 AM UTC+1, Felix.Frank wrote: Hi, I've taken a look into the issue and it would appear that your root problem is wrong template syntax. The below is not strictly valid: On 11/27/2013 02:40 PM, David Portabella wrote: file.txt.erb var from file.txt.erb: %= @var % What works as expected: var from file.txt.erb: %= var % or var from file.txt.erb: %= scope.lookupvar(var) % The fact that the member variable syntax @var works at all is confusing, and may be considered a bug. Will update Redmine accordingly. I believe that the support for such templates should be deprecated if possible. Thanks, Felix -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/6e2b0d75-b9d6-4fb9-8823-f102c2ccc81e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.
Absolutely! Sorry I had missed the deprecation warning earlier. Full agreement on all points. Debugging away... :-) On 12/01/2013 11:21 AM, David Portabella wrote: Hi, What works as expected: var from file.txt.erb: %= var % using var instead of @var produces this warning on puppet 3: /Warning: Variable access via 'var' is deprecated. Use '@var' instead. / and it's explained here: http://docs.puppetlabs.com/guides/templating.html /Historically, all of the variables visible in the current scope were also available as Ruby methods — that is, fqdn, memoryfree, operatingsystem, etc., without the prepended @ sign. This style of reference caused problems when variable names collided with Ruby method names; its use emits deprecation warnings as of Puppet 3 and will be removed in Puppet 4. Please update any existing code which uses it and start any new code out with the @fqdn instance-variable syntax. / var from file.txt.erb: %= scope.lookupvar(var) % yes, we need to use this function if we need to access someothermodule::var, or a hiera variable. however, using this function for all variables in the current scope would be ugly. The fact that the member variable syntax @var works at all is confusing, and may be considered a bug. yes. that's what we are saying. dynamic lookup in templates should show a warning in puppet 2.7, and stop working on puppet 3. Regards, David -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/529B0E5E.6090403%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Hiera - override variable
Hi guys, I've a class-x, which should overwrite or use the parameters of class-y which are saved in an Hiera .yaml-file. How can I do that? I really need your help! -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/bef777a5-dc9d-48b2-b36d-900e64974432%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Nsclient install
Hi Felix, The DisplayName from the registry key HKEYY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NSClientpp\DisplayName is NSClient++ (x64) in binary it is A hexdump of whats in my puppet manifest on linux gives 534e 6c43 6569 746e 2b2b 2820 3678 2934 000a while what regedit says its storing is 4e 00 53 00 43 00 6c 00 69 00 65 00 6e 00 74 00 2b 00 2b 00 20 00 28 00 78 00 36 00 34 00 29 00 00 00 Is it possible its a windows utf16 to utf8 on Linux issue? On Friday, November 29, 2013 1:01:25 PM UTC, Felix.Frank wrote: Kaustubh's remarks may still have merit, though. Perhaps there is a subtle typo (think trailing space or similar). Have you copy-pasted the name from an authoritative source? Regards, Felix On 11/29/2013 01:41 PM, Jeffrey Smith wrote: The service name is NSClient++ (x64) and its listed there its just not starting it as its saying it cant find it. On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote: from what i have seen, this means you are not using the correct service name. Install NS Client on a windows box manually, go to run - services.msc - Look for NS service in the properties of that you will see the service Name, Use this service name if your code! Hope this help! -Kaustubh -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/8a6ba694-1308-4276-aea0-bab2ac00a8cc%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Custom Functions and hash as parameter
On Wednesday, November 27, 2013 11:13:52 PM UTC+1, Henrik Lindberg wrote: On 2013-27-11 17:33, Israel Calvete wrote: Hi all, I try write a custom function My code: / $gluster = {/ /'10.241.5.6' = '/data/gv0/brick1',/ /'10.241.5.7' = '/data/gv0/brick1',/ / }/ / / / $a = glusterFunctions($gluster)/ / / / notify{$a:}/ My simple custom function: /require 'rubygems'/ / / /module Puppet::Parser::Functions/ / / /class GlusterFunctions/ / / / def initialize(gluster)/ /@gluster = gluster/ / end/ / / / def formatBricks()/ /r = ''/ /@gluster.each do |k,v|/ / r += #{k}:#{v} / /end/ /return r[0..-2]/ / end/ /end/ / / / newfunction(:glusterFunctions, :type = :rvalue) do |args|/ /gluster = args *# with one argument args isn't an arra*y/ / / /g = GlusterFunctions.new(gluster)/ /return g.formatBricks()/ / end/ /end/ The notify: /notice: 10.241.5.7/data/gv0/brick110.241.5.6/data/gv0/brick1:/ It's seems like if hash paremeter is converted in a string Why? Any solutions? All functions get their arguments as an array. The first argument passed is found in args[0], the second in args[1], etc. You probably want to do this: gluster = args[0] unless gluster.is_a? Hash raise ArgumentError, glusterFunctions(): first arg must be a hash end Regards - henrik Somehow, the code was being cached in my pool of puppet masters. In my tests, with only one argument, this is valid gluster = args Thanks. -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/c598f02a-9eec-438b-93c2-149cd17d1b15%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] best way to distribute puppet manifests
Hi Everyone, I am currently trying to learn puppet through this book called Puppet 3 Beginners Guide by John Arundel and it talks about distributing puppet manifests using git. As I'm going through it, it looks a little pieced together and complex. I was wondering what was the best way? Using the puppet-master or through git? Just wondering what everyone else does to distribute their manifests? Any advice would be appreciated. Thanks! -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/3cf047fa-9e8e-46dd-9105-6ee9e2150e9e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Nsclient install
On Sunday, December 1, 2013, Jeffrey Smith wrote: Hi Felix, The DisplayName from the registry key HKEYY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NSClientpp\DisplayName is NSClient++ (x64) in binary it is A hexdump of whats in my puppet manifest on linux gives 534e 6c43 6569 746e 2b2b 2820 3678 2934 000a while what regedit says its storing is 4e 00 53 00 43 00 6c 00 69 00 65 00 6e 00 74 00 2b 00 2b 00 20 00 28 00 78 00 36 00 34 00 29 00 00 00 Is it possible its a windows utf16 to utf8 on Linux issue? On Friday, November 29, 2013 1:01:25 PM UTC, Felix.Frank wrote: Kaustubh's remarks may still have merit, though. Perhaps there is a subtle typo (think trailing space or similar). Have you copy-pasted the name from an authoritative source? Regards, Felix On 11/29/2013 01:41 PM, Jeffrey Smith wrote: The service name is NSClient++ (x64) and its listed there its just not starting it as its saying it cant find it. On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote: from what i have seen, this means you are not using the correct service name. Install NS Client on a windows box manually, go to run - services.msc - Look for NS service in the properties of that you will see the service Name, Use this service name if your code! Hope this help! -Kaustubh -- 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 javascript:_e({}, 'cvml', 'puppet-users%2bunsubscr...@googlegroups.com');. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8a6ba694-1308-4276-aea0-bab2ac00a8cc%40googlegroups.com . For more options, visit https://groups.google.com/groups/opt_out. You'll want to use the short name of the service not the display name: http://docs.puppetlabs.com/references/latest/type.html#service-attribute-name The easiest way to find out what name puppet uses is to run 'puppet resource service' when the service is installed and see what comes back. Josh -- Josh Cooper Developer, Puppet Labs -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3DC9E1gOoVp-8Rzj9aYCQJ0%3DKvC_8eMGyVF9PbYzpcSTg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Custom Functions and hash as parameter
Hi, I don't fully understand how the problems you mention are connected, but the observed caching behavior may be due to https://projects.puppetlabs.com/issues/17210. HTH, Felix On 12/01/2013 04:44 PM, Israel Calvete wrote: Somehow, the code was being cached in my pool of puppet masters. In my tests, with only one argument, this is valid gluster = args -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/529BBA96.8000806%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: agent hangs at: Caching certificate_revocation_list for ca
Hey mate. I am getting the same problem as you. Have you fixed id? Thanks! On Tuesday, November 19, 2013 12:13:08 AM UTC+11, Sans wrote: Dear all, I just upgraded the OS of my PuppetMaster from Debian Squeeze to Wheezy (on AWS/EC2) and since then all the clients hangs at: Info: Caching certificate_revocation_list for ca and then eventually fails with Timeout error. I think, it did work until I rebooted the Master. In addition, I did puppet cert clean on the master for that particular node and removed the ssl directory from the agent (so that it asks for a new certificate) and ran puppet agent -tvand it fails with these: Info: Creating a new SSL key for ip-10-0-8-43.eu-west-1.compute.internal Info: Caching certificate for ca Info: Creating a new SSL certificate request for ip-10-0-8-43.eu-west-1.compute.internal Info: Certificate Request fingerprint (SHA256): 32:0E:84:F3:EA:8D:49:48:43:85:08:55:64:6D:F8:D5:A1:E7:73:4F:82:70:7B:0B:B1:7F:E5:A4:F4:35:7A:ED Info: Caching certificate for ip-10-0-8-43.eu-west-1.compute.internal Info: Caching certificate_revocation_list for ca Error: Failed to apply catalog: Timeout::Error Any idea what am I missing? This thing is stopping me form upgrading the OS on the PuppetMaster for long. JFI, using Puppet v3.3.2, if that important. Amy help is greatly appreciated. Cheers, Santanu -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/310a57ab-1609-49e8-9e46-4222840cdbd7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Dynamic hiera.yaml
Hi, I want Puppet to take each module's own hiera.yaml-file, which is in the module-directory. That works if I use puppet agent --apply --binder --hiera_config=/path/to/module_hiera.yaml -e 'include classxy' but Puppet doesn't find the parameters if I use puppet agent --test How can I fix this? -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/86562c09-cd8c-4e72-8a6e-94b5e2fea275%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Multiple server roles using hiera and facts
I want to implement a scenario where I can mix and match multiple roles on any managed node. The particular roles played by a node are available as facts (role1=webserver, role2=appserver etc )In development all the roles will be played by one host, and in production a server might play only one role. I was hoping there will be some way I can implement this in hiera. Any clues or pointers would be much appreciated. Cheers, Shiva -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/51570212-30a1-4ea2-8ce3-a2b7dbea7eee%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Providing hiera with module data
Same problem here :( On Sunday, December 1, 2013 2:27:42 AM UTC-5, Steven Jonthen wrote: Hi, I have this problem: Hiera only looks inside data/common.yaml-file, which is in my module-directory. When i put other data into another yaml file data/example.yaml, then Puppet doesn't find that data. What's the cause for this problem? -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/0e6b1aca-7bdb-4946-8fce-6fdf1440a11b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Providing hiera with module data
I recommend you run the master with --debug and --no-daemonize, you should be able to see all hiera searches for each parameter. At least that helped me a lot. On 12/02/2013 06:32 AM, Igor Berger wrote: Same problem here :( On Sunday, December 1, 2013 2:27:42 AM UTC-5, Steven Jonthen wrote: Hi, I have this problem: Hiera only looks inside data/common.yaml-file, which is in my module-directory. When i put other data into another yaml file data/example.yaml, then Puppet doesn't find that data. What's the cause for this problem? -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/0e6b1aca-7bdb-4946-8fce-6fdf1440a11b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 the web visit https://groups.google.com/d/msgid/puppet-users/529C3C67.9020106%40cscs.ch. For more options, visit https://groups.google.com/groups/opt_out.