Re: [Puppet Users] yum.puppetlabs.com re-do
This doesn't seem to have been done yet any progress? I'd like to look at a 2.7.2 upgrade fairly soon and there seems no properly consistent way to get the RPM's for this. Thanks Chris On 15 July 2011 21:35, Michael Stahnke stah...@puppetlabs.com wrote: I'd like to reorganize yum.puppetlabs.com. As it is, it's a little cluttered, and it's unclear what each folder and such are for. Here's what I'd like to do: yum.puppetlabs.com/ /el /4 /5 /6 /fedora /14 /15 /sles /11 Under each of those we'll have products -- stuff we actually create as puppet labs dependencies -- stuff that we use in order to maximize our usage of Puppet Labs products then i386, x86_64 and SRPMS under each of those I'd like to have puppetlabs-release rpm as well, that will let you install this. All RPMS will be signed by the Puppet Labs signing key. This work will take place next week. Mike -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] module creation
Hi all, I need to create puppet modules for apache2, php5 and mysql. Please help me to create these module. right now I am using sed command for editing configuration files. thanks in advance Roni -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] puppet not installing relevant library files
On 26-07-11 06:57, KarthiKeyan. Kesavan wrote: Hi, I tried to exec dpkg cmd to install the deb file in my puppet debian client . I am getting error due to related library files. Please suggest me how to automate the same. Dpkg is not meant to resolve those dependencies for you, it just does what you tell it to: install a single deb package. APT is made for what you want. Due to security reasons i cant enable repo urls in my /etc/apt sources-list file. You could install the dependencies with 'package' resources, and have the dpkg-exec depend on those. Best regards, Martijn Grendelman -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] module creation
Hi Roni, best to start with learning puppet: http://docs.puppetlabs.com/learning/ If you look for special modules you want to check the module forge: http://forge.puppetlabs.com/ There you will find lots of modules also covering apache, php and mysql. hth, Martin On 07/26/2011 01:52 PM, Rony KB wrote: Hi all, I need to create puppet modules for apache2, php5 and mysql. Please help me to create these module. right now I am using sed command for editing configuration files. thanks in advance Roni -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] 2.7.2rc changed the way variable names are parsed
In 2.7.2rc2 the '-' is now parsed as part of the variable name. Is this a deliberate change? #! /usr/bin/puppet apply $hello = hello $world = world $hello- = SURPRISE notice($hello-$world) notice(${hello}-$world) # result: # # ./surprise1.pp # notice: Scope(Class[main]): SURPRISEworld # notice: Scope(Class[main]): hello-world # notice: Finished catalog run in 0.18 seconds -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: 'requires' dependency in file-fragments pattern was not honored
On Jul 25, 9:47 am, vagn scott vagnsc...@gmail.com wrote: On 07/25/2011 08:47 AM, jcbollinger wrote: Puppet should not, and typically doesn't, apply resources that require a failed resource. The content of the file managed by File[Make_Sudo_File_Live] is not directly relevant. I wonder what would happen if he spelled his dependency chain like this: ### Validate sudo file before making live Exec[Assemble_Sudo_Fragments] ~ Exec[Validate_Check_File] ~ File[Make_Sudo_File_Live] Fair question. It is conceivable that the bug is related to chaining, and in that case it might indeed be triggered by the mixing of relationship operators. Note a string of ~, rather than a mixed string. Is ~ - even sensible? Shoudn't puppet turn that 2nd dependency from - into ~? No, it shouldn't. The language guide specifically says that mixed operators are OK (it gives an example mixing - and -), and that chains are interpreted pairwise. Thus the OP's chain should be equivalent to two separate statements: Exec[Assemble_Sudo_Fragments] ~ Exec[Validate_Check_File] Exec[Validate_Check_File] - File[Make_Sudo_File_Live] There's nothing unreasonable about that, except maybe that the OP's version is potentially confusing to humans. Even though the correct interpretation is documented, however, it is possible that Puppet is buggy here. My money is still on the problem relating to the Exec being refresh- only, triggered by something about the particular pattern of relationships involved. But we may never know, as it seems the OP may have bowed out. John -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet/facter and update reporting
On Mon, Jul 25, 2011 at 10:19 PM, Scott Smith sc...@ohlol.net wrote: Mcollective uses a message queue. If the host isn't online, it just won't show up. If your laptop is turned off, it wouldn't be reporting either way. Right, but I'm wondering if I need something that's a little more consistent because of the transitive nature of laptops/desktops. With facter I get information when the laptop connects again, as soon as it dumps it's facts during a run and I can see what workstations in my report haven't reported and subsequently what information is current or not. I'll look into the message queue. I guess a big question now is: Does anyone know offhand if the message queue timeouts can be configured for mcollective? My initial searches don't reveal much. On Mon, Jul 25, 2011 at 7:04 PM, Khoury Brazil khoury.bra...@gmail.com wrote: On Sat, Jul 23, 2011 at 8:15 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Fri, 22 Jul 2011 19:28:37 -0700, Khoury wrote: Hi All, Does anyone have any experience with debian/ubuntu and or OS X with regard to reporting on updates? I'm interested in getting update (specifically security) states for compliance (SOX, PCI, etc) purposes. I know there's spacewalk for things like this, but I'm kind of hoping to avoid going the centos/redhat route for my servers. I'm thinking of using unattended-upgrade --debug --dry-run on Debian/ Ubuntu and maybe softwareupdate on OS X to build custom facts. Thanks in advance. Best, Khoury Sounds like you want the collection functionality that you get with MCollective. I'm afraid I haven't played around with it as much as I'd like, but I'm sure others can chime in with details. -- Jacob Helwig , | Join us for PuppetConf, September 22nd and 23rd in Portland, OR | http://bit.ly/puppetconfsig ` -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQGcBAEBAgAGBQJOK45iAAoJEHJabXWGiqEBtMgMALpWYg+B9DqmcVgZMkg1sNVo MGQaIXL9WGtZWH37CeTdP92SDIXK2GPUUFL7GZCzEBf0sSAbjg1FI5UaGUduH5/K 6USlI/85NEBdf84iwhJ/MUIKcjaGkYZPlHJe7vFeKry3+TEpPWgNAfXk9s+IoqVS XAECFczwJOJZbgJ9zPG8fayXe5cMjHhvHYvWKO9selMxAVEFkteOamQ/hjKKEb92 C9hKuYOfwOdgodzEPn5KQYb3OQLQ1yqP09mcaKlNjdBoYvGuIUNM0tyBkuH3YqT2 rvLz0cBfrQ4IbTnbI4oLIApzRgqbAwUXP9J2Aou18AydTMhVmLxoBTCsVCz+lG13 WmcgLyc1ly1tzGptDVZc+0z/6cTZSbpUg6qW2JLTEOzKjiR1DhYs8n2MlOuKNE53 FulPKJmeiGAnSTH+noeOlfpSXlkigAVBY+jMs4aUsAUfamEkdSD1cnvZtnDhnee0 XSfGcS6Qmrz2Ghgnb9RH2wbYS+elqsDUrbBa0vBycQ== =QUn5 -END PGP SIGNATURE- Unfortunately mcollective wouldn't really work for me. It would, for servers, for the most part. So I might utilize it for those. But I'm looking at managing OS X clients too, many of which are laptops. My understanding of mcollective is that it requires the connectivity between the servers to be always on. That wouldn't work well for laptops. Thanks for the recommendation though. I'd completely spaced that mcollective existed. -- -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] puppet not installing relevant library files
Hi, Thanks for your info . Could you please explain with some example. Regards chebrian On Tue, Jul 26, 2011 at 5:34 PM, Martijn Grendelman mart...@iphion.nlwrote: On 26-07-11 06:57, KarthiKeyan. Kesavan wrote: Hi, I tried to exec dpkg cmd to install the deb file in my puppet debian client . I am getting error due to related library files. Please suggest me how to automate the same. Dpkg is not meant to resolve those dependencies for you, it just does what you tell it to: install a single deb package. APT is made for what you want. Due to security reasons i cant enable repo urls in my /etc/apt sources-list file. You could install the dependencies with 'package' resources, and have the dpkg-exec depend on those. Best regards, Martijn Grendelman -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet/facter and update reporting
On Mon, Jul 25, 2011 at 10:46 PM, Ohad Levy ohadl...@gmail.com wrote: On Tue, Jul 26, 2011 at 5:04 AM, Khoury Brazil khoury.bra...@gmail.com wrote: On Sat, Jul 23, 2011 at 8:15 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Fri, 22 Jul 2011 19:28:37 -0700, Khoury wrote: Hi All, Does anyone have any experience with debian/ubuntu and or OS X with regard to reporting on updates? I'm interested in getting update (specifically security) states for compliance (SOX, PCI, etc) purposes. I know there's spacewalk for things like this, but I'm kind of hoping to avoid going the centos/redhat route for my servers. I'm thinking of using unattended-upgrade --debug --dry-run on Debian/ Ubuntu and maybe softwareupdate on OS X to build custom facts. a few couple of years ago I built a simple web UI [1] for tracking down packages / versions / hosts. it should probably work, while you can either use mcollective, or a simple cron or whatever to send the packages data into that service. Ohad [1] - https://github.com/ohadlevy/dish That's actually very useful, regardless of whether or not it solves my particular problem. I'm definitely going to have to check it out. Thanks in advance. Best, Khoury Sounds like you want the collection functionality that you get with MCollective. I'm afraid I haven't played around with it as much as I'd like, but I'm sure others can chime in with details. -- Jacob Helwig , | Join us for PuppetConf, September 22nd and 23rd in Portland, OR | http://bit.ly/puppetconfsig ` -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQGcBAEBAgAGBQJOK45iAAoJEHJabXWGiqEBtMgMALpWYg+B9DqmcVgZMkg1sNVo MGQaIXL9WGtZWH37CeTdP92SDIXK2GPUUFL7GZCzEBf0sSAbjg1FI5UaGUduH5/K 6USlI/85NEBdf84iwhJ/MUIKcjaGkYZPlHJe7vFeKry3+TEpPWgNAfXk9s+IoqVS XAECFczwJOJZbgJ9zPG8fayXe5cMjHhvHYvWKO9selMxAVEFkteOamQ/hjKKEb92 C9hKuYOfwOdgodzEPn5KQYb3OQLQ1yqP09mcaKlNjdBoYvGuIUNM0tyBkuH3YqT2 rvLz0cBfrQ4IbTnbI4oLIApzRgqbAwUXP9J2Aou18AydTMhVmLxoBTCsVCz+lG13 WmcgLyc1ly1tzGptDVZc+0z/6cTZSbpUg6qW2JLTEOzKjiR1DhYs8n2MlOuKNE53 FulPKJmeiGAnSTH+noeOlfpSXlkigAVBY+jMs4aUsAUfamEkdSD1cnvZtnDhnee0 XSfGcS6Qmrz2Ghgnb9RH2wbYS+elqsDUrbBa0vBycQ== =QUn5 -END PGP SIGNATURE- Unfortunately mcollective wouldn't really work for me. It would, for servers, for the most part. So I might utilize it for those. But I'm looking at managing OS X clients too, many of which are laptops. My understanding of mcollective is that it requires the connectivity between the servers to be always on. That wouldn't work well for laptops. Thanks for the recommendation though. I'd completely spaced that mcollective existed. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: ruby dsl, loading files from within the modules
I'm all for writing facts but I dont think it is the best solution in this given problem. You can easily create a variable at top level to identify where the file is and use it but that is not really elegant either. With file definitions I can use the template function to read in from a module but it doesnt seem to be working for me in outside of the file resource. On Jul 26, 12:16 am, Scott Smith sc...@ohlol.net wrote: Sounds like a good use case for writing a custom fact. On Mon, Jul 25, 2011 at 5:09 PM, Matt mjbl...@gmail.com wrote: Is there a way to load a file from within the module in Ruby DSL? The idea I have is to load a file similar to like how template works. I'm trying to read in a database properties file and I would like to keep within the module instead of hard coding paths. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] 2.7.2rc changed the way variable names are parsed
On Tue, Jul 26, 2011 at 5:29 AM, vagn scott vagnsc...@gmail.com wrote: In 2.7.2rc2 the '-' is now parsed as part of the variable name. Is this a deliberate change? I'm trying to track down the actual bug where this got resolved, but yes, I believe this was deliberately done, and primarily because we allow hyphens in class names, and so fully qualified variables like $foo::bar-baz::variable weren't working. Allowing a trailing hyphen doesn't seem like the most optimal solution though #! /usr/bin/puppet apply $hello = hello $world = world $hello- = SURPRISE notice($hello-$world) notice(${hello}-$world) You really should be using curlies with any interpolated string like above. # result: # # ./surprise1.pp # notice: Scope(Class[main]): SURPRISEworld # notice: Scope(Class[main]): hello-world # notice: Finished catalog run in 0.18 seconds -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@** googlegroups.com puppet-users%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/** group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en . -- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * http://www.bit.ly/puppetconfsig Sept 22/23 Portland, Oregon, USA. * * -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet/facter and update reporting
On Tue, Jul 26, 2011 at 4:59 PM, Khoury Brazil khoury.bra...@gmail.com wrote: On Mon, Jul 25, 2011 at 10:46 PM, Ohad Levy ohadl...@gmail.com wrote: On Tue, Jul 26, 2011 at 5:04 AM, Khoury Brazil khoury.bra...@gmail.com wrote: On Sat, Jul 23, 2011 at 8:15 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Fri, 22 Jul 2011 19:28:37 -0700, Khoury wrote: Hi All, Does anyone have any experience with debian/ubuntu and or OS X with regard to reporting on updates? I'm interested in getting update (specifically security) states for compliance (SOX, PCI, etc) purposes. I know there's spacewalk for things like this, but I'm kind of hoping to avoid going the centos/redhat route for my servers. I'm thinking of using unattended-upgrade --debug --dry-run on Debian/ Ubuntu and maybe softwareupdate on OS X to build custom facts. a few couple of years ago I built a simple web UI [1] for tracking down packages / versions / hosts. it should probably work, while you can either use mcollective, or a simple cron or whatever to send the packages data into that service. Ohad [1] - https://github.com/ohadlevy/dish That's actually very useful, regardless of whether or not it solves my particular problem. I'm definitely going to have to check it out. I've just played around with it and upgraded it to rails 3, feel free to contact me privately or on irc if you have any issues with it. Ohad Thanks in advance. Best, Khoury Sounds like you want the collection functionality that you get with MCollective. I'm afraid I haven't played around with it as much as I'd like, but I'm sure others can chime in with details. -- Jacob Helwig , | Join us for PuppetConf, September 22nd and 23rd in Portland, OR | http://bit.ly/puppetconfsig ` -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQGcBAEBAgAGBQJOK45iAAoJEHJabXWGiqEBtMgMALpWYg+B9DqmcVgZMkg1sNVo MGQaIXL9WGtZWH37CeTdP92SDIXK2GPUUFL7GZCzEBf0sSAbjg1FI5UaGUduH5/K 6USlI/85NEBdf84iwhJ/MUIKcjaGkYZPlHJe7vFeKry3+TEpPWgNAfXk9s+IoqVS XAECFczwJOJZbgJ9zPG8fayXe5cMjHhvHYvWKO9selMxAVEFkteOamQ/hjKKEb92 C9hKuYOfwOdgodzEPn5KQYb3OQLQ1yqP09mcaKlNjdBoYvGuIUNM0tyBkuH3YqT2 rvLz0cBfrQ4IbTnbI4oLIApzRgqbAwUXP9J2Aou18AydTMhVmLxoBTCsVCz+lG13 WmcgLyc1ly1tzGptDVZc+0z/6cTZSbpUg6qW2JLTEOzKjiR1DhYs8n2MlOuKNE53 FulPKJmeiGAnSTH+noeOlfpSXlkigAVBY+jMs4aUsAUfamEkdSD1cnvZtnDhnee0 XSfGcS6Qmrz2Ghgnb9RH2wbYS+elqsDUrbBa0vBycQ== =QUn5 -END PGP SIGNATURE- Unfortunately mcollective wouldn't really work for me. It would, for servers, for the most part. So I might utilize it for those. But I'm looking at managing OS X clients too, many of which are laptops. My understanding of mcollective is that it requires the connectivity between the servers to be always on. That wouldn't work well for laptops. Thanks for the recommendation though. I'd completely spaced that mcollective existed. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] ruby dsl, loading files from within the modules
On Mon, Jul 25, 2011 at 8:09 PM, Matt mjbl...@gmail.com wrote: Is there a way to load a file from within the module in Ruby DSL? The idea I have is to load a file similar to like how template works. I'm trying to read in a database properties file and I would like to keep within the module instead of hard coding paths. Not sure if there's a better way: mod = Puppet::Module.find('module_name') mod.path mod = Puppet::Module.find('motd') mod.path = /etc/puppetlabs/puppet/modules/motd Thanks, Nan -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] 2.7.2rc changed the way variable names are parsed
On 07/26/2011 10:32 AM, Nigel Kersten wrote: Allowing a trailing hyphen doesn't seem like the most optimal solution though That doesn't matter so much. But, expanding the character set for variables without even mentioning it in the release notes has caused me some pain. You really should be using curlies with any interpolated string like above. That is current wisdom. I have classes that were written before curlies were strongly recommended. Those classes just broke. So, a trip through the modules for that, and another trip for dynamic scopes. C'est la vie. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] 2.7.2rc changed the way variable names are parsed
On Tue, Jul 26, 2011 at 7:52 AM, vagn scott vagnsc...@gmail.com wrote: On 07/26/2011 10:32 AM, Nigel Kersten wrote: Allowing a trailing hyphen doesn't seem like the most optimal solution though That doesn't matter so much. But, expanding the character set for variables without even mentioning it in the release notes has caused me some pain. Oh totally. This is something that needs to be called out in a much more visible manner. You really should be using curlies with any interpolated string like above. That is current wisdom. I have classes that were written before curlies were strongly recommended. Those classes just broke. So, a trip through the modules for that, and another trip for dynamic scopes. C'est la vie. I guess it's just a case of being a defensive shell programmer, but I've always considered curlies-with-double-quotes to be essential with all interpolated strings. -- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * http://www.bit.ly/puppetconfsig Sept 22/23 Portland, Oregon, USA. * * -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] 2.7.2rc changed the way variable names are parsed
On 07/26/2011 10:54 AM, Nigel Kersten wrote: I guess it's just a case of being a defensive shell programmer, but I've always considered curlies-with-double-quotes to be essential with all interpolated strings. A better way to handle it would be to make curlies mandatory, and then change the definition of variables. Programming style, defensive or otherwise, doesn't really enter into it. If you change the language, do it in such a way that old programs fail, rather than take on a new meaning. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Random error in the recovery catalog
Passenger is already installed, but was not configured to Puppet. I will do the migration and I will return here. Thank you! On 25 juil, 17:21, Peter Meier peter.me...@immerda.ch wrote: I have about 130 customer puppet. I left the default time interval. Are you still running with default webrick on the puppetmaster? (If you didn't change anything, then yes you are). If yes, it's time to scale out and use either a Mongrel or Passenger-based Setup:http://projects.puppetlabs.com/projects/puppet/wiki/Using_Passenger ~pete -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: ruby dsl, loading files from within the modules
I'll have to check that out that does seem to look a little better what I figured out before. What I did was this, which is just a different way. db_props = Puppet::Module.modulepath(scope.lookupvar(environment)).to_s + '/ module_name/conf/db.yaml' On Jul 26, 10:46 am, Nan Liu n...@puppetlabs.com wrote: On Mon, Jul 25, 2011 at 8:09 PM, Matt mjbl...@gmail.com wrote: Is there a way to load a file from within the module in Ruby DSL? The idea I have is to load a file similar to like how template works. I'm trying to read in a database properties file and I would like to keep within the module instead of hard coding paths. Not sure if there's a better way: mod = Puppet::Module.find('module_name') mod.path mod = Puppet::Module.find('motd') mod.path = /etc/puppetlabs/puppet/modules/motd Thanks, Nan -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: ANNOUNCE: Cloud Provisioner v0.6.0rc1 release
Any plans to support other cloud providers? Specifically VMWare? On Jul 21, 4:18 pm, Jeff McCune j...@puppetlabs.com wrote: We are happy to announce the first public release candidate of our Puppet Cloud Provisioner. This release is available for download at our Module Forge:http://forge.puppetlabs.com/puppetlabs/cloud_provisionerhttp://downloads.puppetlabs.com/dashboard/ Extensive documentation can be found at:http://docs.puppetlabs.com/guides/cloud_pack_getting_started.html Please report feedback via the Puppet Labs Redmine site, using an affected version of 0.6.0rc1:http://projects.puppetlabs.com/projects/cloud-packhttp://projects.puppetlabs.com/projects/dashboard Overview: The Puppet Cloud Provisioner was written to make it easier to deploy and configure instances in EC2 using Puppet. It contains the following command line actions: puppet node create - Launches a new Amazon EC2 instance. puppet node install - Installs Puppet on an EC2 instance. puppet node init - Installs Puppet on a machine instance and automatically signs its certificates. puppet node list - Lists deployed EC2 instances in a certain region. puppet node terminate - Terminates running EC2 instance. For more detailed information about the available commands, download the module and run: puppet help node More Details about the iteration leading up to this release === * Add --type option to launch different EC2 instance sizes * (#7510) Add inline documentation for actions and options * (#8286) Warn if the payload used with the install action is not a tar.gz file * (#8265) Make the platform flag optional and default to 'AWS' (Note, puppet-provisioner provisions AWS EC2 instances in this release) * (#7511) Add the ability to launch instances in any EC2 region using the --region option. The default region is us-east-1 * (#8157) Improve the feedback of the terminate action by explicitly stating the instance has been terminated. * (#8185) Add a list action to list EC2 instances and their current status. * (#8343) Print the EC2 instance public DNS name as soon as it is available * (#8350) Change all output to use Puppet's configured log destination * (#8348) Add a fingerprint action to make a best effort to obtain the SSH public host key fingerprint from the launched EC2 instance. * (#7508) Add the ability to install Puppet using rubygems on a target system. * (#7508) Improve the install action using template scripts to install Puppet on launched systems. * (#8403) Replace dependency on uuidgen Mac OS X executable with guid gem. * (#8422) Catch the exit status of installation script and display an error if they're non zero. * (#8204) Include a puppet enterprise install script that downloads from S3. This should improve install times on low bandwidth connections. * (#8472) Add support for non-root logins when installing puppet on a target system. * (#8493) Rename cloudpack to cloud-provisioner -- Jeff McCune @0xEFF Join us for PuppetConf http://links.puppetlabs.com/puppetconf, Sept 22-23 in Portland, OR -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release
Scott Smith wrote: Gonna take a wild guess that there are plans to support other providers.. Correct! Regards James -- James Turnbull Puppet Labs 1-503-734-8571 Join us for PuppetConf http://www.bit.ly/puppetconfsig, September 22nd and 23rd in Portland, Oregon, USA. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] undefined method `initvars'
We are seeing this error in our log files on some clients: puppetd[15068]: Could not run Puppet configuration client: undefined method `initvars' for #Puppet::Type::Package:0x2bbb4858 Where do I begin troubleshooting this? The client software versions are: ruby-1.8.5-5.el5_4.8.x86_64 ruby-libs-1.8.5-5.el5_4.8.x86_64 ruby-shadow-1.4.1-7.el5.x86_64 facter-1.5.8-1.el5.noarch ruby-augeas-0.4.1-1.el5.x86_64 puppet-0.25.5-1.el5.noarch And the server is running puppet 2.6.7. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: ANNOUNCE: Cloud Provisioner v0.6.0rc1 release
Jared Curtis wrote: Any plans to support other cloud providers? Specifically VMWare? Jared There are such plans. Obviously it's also open source so we'll add some further support and hopefully the community will chime in with other updates and enhancements that they require. Regards James -- James Turnbull Puppet Labs 1-503-734-8571 Join us for PuppetConf http://www.bit.ly/puppetconfsig, September 22nd and 23rd in Portland, Oregon, USA. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Best practices for confidential information -- fileserver path vs modules / template
We keep our puppet configuration in a revision control system and are trying to facilitate developers using the same modules as production/ staging servers. We define a variable ($servergroup) as test/staging/production and use fileserver defaults from hostname to servergroup to generic. The hostname and $servergroup versions need to be confidential. We have modules specific to an application, say helloworld which include configuration files (say, database.yml) that could contain sensitive information. Oversimplified example: class apps::helloworld { file { /home/apps/helloworld/config/database.yml: source = [ puppet:///modules/apps/helloworld/database.yml.$hostname, puppet:///modules/apps/helloworld/database.yml.$servergroup, puppet:///modules/apps/helloworld/database.yml ], } } We would like to be able to share the entire mercurial repository with developers and others in the company, but the contents of all but the default/generic database.yml need to be tightly controlled. We had sort of solved this problem with a custom fileserver mount point and a subrepo in our mercurial repo, but this only worked when referring to content as puppet://hostname/custommountpoint. As soon as we switched to omitting the hostname (puppet:///) we can't get the references to the subrepo to work since it wasn't actually modules. In a perfect world, we could share the main puppet repo with everyone, keep a tighter controlled subrepo of confidential data, and have local development environments using the same class as live, but having their otherwise confidential config created as an insecure default file (containing generic development environment passwords, etc). These local development environments might be using local copies of the configuration (via vagrant puppet apply, for example) and would not have access to the puppet master. If there's a better way to solve this by having the file contents be a template output that would work too (while the above is an over simplified example, nearly everything we have this problem with is better done as a template anyways), but again some of the variables would have to be hidden/confidential. -Scott -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Best practices for confidential information -- fileserver path vs modules / template
On Tue, Jul 26, 2011 at 12:26 PM, scott mcco...@gmail.com wrote: We had sort of solved this problem with a custom fileserver mount point and a subrepo in our mercurial repo, but this only worked when referring to content as puppet://hostname/custommountpoint. As soon as we switched to omitting the hostname (puppet:///) we can't get the references to the subrepo to work since it wasn't actually modules. Scott, are you saying that a custom mountpoint mymount with a file myfile wasn't working as: puppet:///mymount/myfile ? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Best practices for confidential information -- fileserver path vs modules / template
On Jul 26, 3:43 pm, Nigel Kersten ni...@puppetlabs.com wrote: On Tue, Jul 26, 2011 at 12:26 PM, scott mcco...@gmail.com wrote: We had sort of solved this problem with a custom fileserver mount point and a subrepo in our mercurial repo, but this only worked when referring to content as puppet://hostname/custommountpoint. As soon as we switched to omitting the hostname (puppet:///) we can't get the references to the subrepo to work since it wasn't actually modules. Scott, are you saying that a custom mountpoint mymount with a file myfile wasn't working as: puppet:///mymount/myfile ? Thanks Nigel, now that you ask the problem seems obvious. puppet:///mymount/myfile does work when the client is talking to a puppet master. It does not work when running with a local copy of the configuration repo, while puppet:///modules/mymodule/myfile does. This is expected since there's no actual fileserver available in that case! It does leave my question about best practices -- is the right pattern: source = [puppet:///mymount/apps/database.yml.${servergroup}, puppet:///modules/modulename/database.yml ] Keeping mymount confidential on the puppet master and a default file in the modules directory available to anyone? This does seem to be working, and meets my general need. What if I wanted to create these from a template and avoid having to keep potentially diverging copies of the same config file around? Not an issue with database.yml, but I only picked that as a simple example. -Scott -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] yum.puppetlabs.com re-do
On Tue, Jul 26, 2011 at 3:21 AM, Chris Phillips ch...@untrepid.com wrote: This doesn't seem to have been done yet any progress? I'd like to look at a 2.7.2 upgrade fairly soon and there seems no properly consistent way to get the RPM's for this. Thanks Chris My planned day to work on this got hijacked by other issues. It's still high on my list, but likely won't happen until next week at the earliest. I did put up some 2.7 rpms on http://stahnma.fedorapeople.org/puppetlabs That might help you in the mean time. Thanks, stahnma -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: puppetmaster SSL_Read
rm -rf'd the '/var/lib/puppet/ssl' dir on the client, regenerated/ signed the client cert. Still seeing the SSL_Read error with a a couple of these clients. Thanks On Jul 25, 12:57 pm, Nigel Kersten ni...@puppetlabs.com wrote: On Mon, Jul 25, 2011 at 8:44 AM, c.clifton juice...@gmail.com wrote: I did find that this error is being generated/caused by 1 host, on that host it appears to be related to the report generation, puppet agent log from host that's generating the error- puppet-agent[12044]: Could not send report: Error 400 on SERVER: SSL_read:: internal error Still looking for what could be causing this. I'm pretty sure I've seen this error with corrupt certificates/keys. Can you clean this one and regenerate it to see if that's the problem? Thanks On Jul 25, 9:27 am, c.clifton juice...@gmail.com wrote: Seeing 'SSL_read' errors being logged by puppetmaster. Anyone know what causes these or how to correct? They're sporadic, not happening all the time or on all puppet runs. /var/log/puppet/masterhttp.log [2011-07-25 10:00:10] ERROR OpenSSL::SSL::SSLError: SSL_read:: internal error /var/log/messages Jul 25 10:00:10 cmd-box puppet-master[22572]: SSL_read:: internal error Thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * http://www.bit.ly/puppetconfsig Sept 22/23 Portland, Oregon, USA. * * -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] has_template() for choosing between templates
All, I just wrote a function which allows me to choose between templates. This makes working with templates very similar to choosing between static files when passing multiple arguments to the source attribute. https://github.com/windowsrefund/puppet-tools Very interested in any feeback. Best, Adam -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: 2.7.2 fixing Lion issue?
Hey Mr. Nielsen, If you were game, you could build a package with this makefile(which by default targets 2.6.9 by default, but can be modified like so: make pkg PACKAGE_VERSION=2.7.1) https://github.com/arubdesu/luggage-examples/tree/master/puppet Allister Banks @sacrilicious -- 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/-/LFpR0vxueW8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Puppet RPM's
Does anyone know where I can get the latest puppet, 2.7.1 as RPM's? The spec file that comes with the puppet 2.7.1 source is broken again, and only version 0.25.5 seems to be available via EPEL, which means that the website's assertion that you can get puppet as an RPM from there is somewhat untrue. Douglas. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.