[Puppet Users] Config_version not working
Hello, I tried using config_version with my simple shell script which returns my SVN revision number. but puppet doesn't seem to be applying the config version in the logs. More Details Puppet Master/Client Version: 2.6.4 config_version = /usr/loca/bin/get_revision ( this line is placed under [master] section in puppet.conf) when i run the script manually i get the following output. Revision: xxx Can somebody sugget me, if the script output format is wrong or should i have config_version configured under [main] section in puppet.conf. Cheers, Chakra -- 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] Master-less : What do I lose?
jblaine wrote on 02/07/2011 06:59 PM: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? Puppet is about centralizing administration. If you have dozens/hundreds of client nodes to administer, then you clearly gain by being able to make changes in one central location (the puppetmaster) without having to bother with pushing those changes to all your client nodes yourself. You could devise a mechanism to push/pull your repository to your various machines automatically, but then you'd be re-inventing the wheel, not to mention missing out on the functionality that Felix Frank listed. I you have even a modest number of nodes (e.g., ten) to administer, you're probably complicating things unnecessarily by forgoing a puppetmaster. Kelly -- 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] host classification based on hostnames
On Mon, Feb 7, 2011 at 11:46 PM, Joe Gross jgr...@stimpy.net wrote: Hi all, I'm new to puppet put did a lot with cfengine2 at my last gig. I'm using v0.25.4 (default) on Ubuntu Lucid but can upgrade to 2.6 if necessary. I have a few hundred (with more on the way) machines in a new datacenter. I have about a dozen classes of hosts, designated by dc-functionn, so for example: sjc-web29 sjc-db35 sjc-smtp3 My nodes.pp is super-simple this way: node default { include dsh include getty include grub include ntp include postfix include ssh include sudo } This worked really well in cfengine, allowing me to keep decisions self-contained within individual modules. I'm trying to do the same with puppet without any luck so far. Ideally I'd do something like: $role = inline_template(%= %x{/bin/hostname | /bin/sed -re 's/.*\-(\w+)[0-9]/\1/g'} %) tag(type_${role}) You realize this will execute on the master, and thus use the master hostname rather than the node? And then do if tagged(role_smtp) within the modules. This keeps my high level simple in that I just call modules and they do the right thing. The problem is this doesn't seem to work. It seems that $role and the tags never get set, even if I try to set them manually so I'm clearly doing something fundamentally wrong. Has anyone done this type of setup where all the decisions are made within the modules themselves based on parts of a hostname or tags? I'm happy to provide more information or post more bits of my config if needed. This is actually my favorite way of doing things. A single default node that includes a single module base which then decides which other modules to include. This does work best if you distribute custom facts that provide more abstracted semantics about roles though. Otherwise you end up with spaghetti Puppet code like you've started with above :) Say you distribute a custom fact role, it then becomes as simple as: class base { if $role == foo { include foo } } Or if you absolutely know you have a one to one mapping between modules and roles, just include $foo, but in my experience you usually want a little more logic involved than that. Thanks! Joe -- 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] Master-less : What do I lose?
On Mon, Feb 7, 2011 at 9:59 AM, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? I presented a few weeks ago about how I use puppet, and that included masterless. Searchable slides on one page here: http://semicomplete.com/presentations/puppet-at-loggly/puppet-at-loggly.pdf.html I include caveats and other stuff to consider for masterless. All told, while I love masterless, I don't recommend it for the average case. Do you have a reason or requirement that makes you want to use masterless? -Jordan -- 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: convert yum repos into manifest
On Feb 8, 4:30 pm, Michael Knox michael.knox...@gmail.com wrote: Try ralsh yumrepo Just discovered that ralsh can even use custom types out of my modules ... cool Yup. You can do some really cool things with custom types and providers: tmp donavanm$ sudo puppet resource route53 route53 { 'foo.strewth.org.': ensure = 'present', value = ['192.168.0.1'], rtype = 'A', zone = 'strewth.org.', ttl = '360' } -- 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 operatingsystemrelease
Hello, thank you for the anwser. I try to run facter on both servers here it what I get : ~ # facter operatingsystemrelease 5.0.8 ~ $ facter operatingsystemrelease 6.0 So far no issues. Maybe in my if statement I should use ? Is there a way to print somewhere the value of the variables in order to be sure of what is return ? If not i'll try to use versioncmp. Thanks On 9 February 2011 08:52, Patrick kc7...@gmail.com wrote: On Feb 8, 2011, at 11:47 PM, Felix Frank wrote: Run factor | grep operatingsystemrelease on your client and see what happens. If it doesn't give output, try factor by itself and see if you have a typo in the name for the fact. Erm, that's facter operatingsystemrelease or just facter :-) Factor is a helpful tool, but not here and now. Ah thanks for the fix. -- 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 operatingsystemrelease
Is there a way to print somewhere the value of the variables in order to be sure of what is return ? notify { OS release detected as '$operatingsystemrelease': } -- 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 operatingsystemrelease
Hello, I found the solution thanks to your help : if versioncmp($operatingsystemrelease, '5.0.8') 0 { $syslog_template = syslog/syslog-ng.conf-squeeze.erb } else { $syslog_template = syslog/syslog-ng.conf.erb } and I add in my class : notify { OS release detected as '$operatingsystemrelease': } notify { template detected as '$syslog_template': } It works Thank you ! Hugo On 9 February 2011 10:48, Felix Frank felix.fr...@alumni.tu-berlin.dewrote: Is there a way to print somewhere the value of the variables in order to be sure of what is return ? notify { OS release detected as '$operatingsystemrelease': } -- 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: puppet 2.6.5-rc1 Parameter type failed: type is read-only
OK - I found the issue. Because 2.6.x gives us nice human readable(ish) catalogs, I compiled mine and the 'random' hits were all for directories. Re-reading the manifest, I see those directories in the error messages all had type = directory, like file { /var/empty: ensure = 'directory', *type = 'directory',* mode = 755, Seems 2.6.5 is being a bit tighter Anyway - all is well after deleting these types. John On 8 February 2011 09:46, John Warburton jwarbur...@gmail.com wrote: Let me get back to you on this. The server is still 2.6.4! On 7 February 2011 20:19, John Warburton jwarbur...@gmail.com wrote: Hello All Well, I quickly packaged up puppet-2.6.5-rc1 and dropped it on my test VM (Solaris 10 U9) against my 2.6.4 server, and immediately started getting the same error message, but on different manifests, or the same manifests but different line numbers. These manifests were written in 0.25.5 days and successfully made the transition to 2.6.4 running on a couple of hundred servers 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.
[Puppet Users] Re: Master-less : What do I lose?
On Feb 9, 4:15 am, Jordan Sissel j...@semicomplete.com wrote: On Mon, Feb 7, 2011 at 9:59 AM, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? I presented a few weeks ago about how I use puppet, and that included masterless. Searchable slides on one page here:http://semicomplete.com/presentations/puppet-at-loggly/puppet-at-logg... I include caveats and other stuff to consider for masterless. All told, while I love masterless, I don't recommend it for the average case. Do you have a reason or requirement that makes you want to use masterless? -Jordan -- 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. I am specifically trying to eliminate the need for puppet master for 2 reasons (i am just scratching the surface on what puppet can do and how it works. nooby). 1 simplicity to others to use an open systems management process that has red hat satellite server at the center (all i want them to NEED to understand is satellite and channels) of it and 2 so i can use the satellite's disconnected feature to be able to deliver a complete solution to disconnected networks. i am packaging puppet content in an RPM's and delivering it that way. i also believe i have it figured out how to deliver content for security, application and host in separate RPM's so i too have been looking for a concise, this is what you loose and a brief description of what that means in a mature enterprise installation. I am currently having a healthy debate with 2 folks that are fresh out of puppet training (jealous) and really want to present good info on exactly what you gain (simplicity?, no extra infrastructure? with puppet being integrated with satellite this may be a null point?) and what you loose. Regards, Aaron -- 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: Master-less : What do I lose?
Having your puppetmaster configuration in a git repository and simply ask the puppet (crontab) to periodically fetches configuration changes and run it could also be an approach to a masterless deployment but keeping a centralized configuration... Are am I missing some active thing (puppetrun for instance) that can do a puppetmaster ?.. On 9 February 2011 12:07, prayther prayt...@gmail.com wrote: On Feb 9, 4:15 am, Jordan Sissel j...@semicomplete.com wrote: On Mon, Feb 7, 2011 at 9:59 AM, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? I presented a few weeks ago about how I use puppet, and that included masterless. Searchable slides on one page here: http://semicomplete.com/presentations/puppet-at-loggly/puppet-at-logg... I include caveats and other stuff to consider for masterless. All told, while I love masterless, I don't recommend it for the average case. Do you have a reason or requirement that makes you want to use masterless? -Jordan -- 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. I am specifically trying to eliminate the need for puppet master for 2 reasons (i am just scratching the surface on what puppet can do and how it works. nooby). 1 simplicity to others to use an open systems management process that has red hat satellite server at the center (all i want them to NEED to understand is satellite and channels) of it and 2 so i can use the satellite's disconnected feature to be able to deliver a complete solution to disconnected networks. i am packaging puppet content in an RPM's and delivering it that way. i also believe i have it figured out how to deliver content for security, application and host in separate RPM's so i too have been looking for a concise, this is what you loose and a brief description of what that means in a mature enterprise installation. I am currently having a healthy debate with 2 folks that are fresh out of puppet training (jealous) and really want to present good info on exactly what you gain (simplicity?, no extra infrastructure? with puppet being integrated with satellite this may be a null point?) and what you loose. Regards, Aaron -- 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. -- Romain PELISSE, *The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it -- Terry Pratchett* http://belaran.eu/wordpress/belaran -- 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] Unrecognised escape sequences
Hi, it aint our issue: we dont actually need to include escape chars into strings, our need is - for example - to escape delimitators ( , ' ) inside command lines; in fact ,we're used to compose very complex tiny scripts with subshells for the 'command' field into 'exec' resources, etc.. Please help, greets, Matteo 2011/2/9 Felix Frank felix.fr...@alumni.tu-berlin.de On 02/08/2011 04:09 PM, mt321_0987 wrote: unfortunately, we keep getting this warns into the system log by puppet masters: [...] Unrecognised escape sequence '\CHAR' in file PATH [...] but then everything works fine; also, without using escapes, catalogs dont work on agents. What can we do to avoid these kind of errors in master syslogs? Please ,let us know ASAP and tell us if this problem will prevent remote execution in future versions, thanks If you have strings that include backslashes, you should really escape those backslashes, i.e.: onlyif = grep two\ words /tmp/file, # WRONG! onlyif = grep two\\ words /tmp/file, # right In some cases, you can use single quotes instead onlyif = 'grep two\ words /tmp/file', # right too but you loose flexibility. I urge you to get your escapes right. HTH, Felix -- 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] Custom facts in current and old environments
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, first sorry about the long delay of my answer. I was very bussy. However the problem still appears. Am Do den 11. Nov 2010 um 16:06 schrieb Nigel Kersten: Yes. And the funny think is that I also have a custom provider for packagemanagement (zypper) under .../plugins/puppet/provider/package that work well with all versions I tested. But the facts do not although they are organized the same way. Are you using the wiki suggestion of a module called facts and enabling factsync on your 0.24.x clients? Well, yes and no. I use facts inside modules. But the Module is not called »facts«. The point is that special facts are needed by special modules and I like to have them close together to stay maintainable. And yes, I enabled factsync on all clients. Regards Klaus - -- Klaus Ethgenhttp://www.ethgen.ch/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen kl...@ethgen.de Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTVJ5g5+OKpjRpO3lAQqUgwgAoh06eCro2MI5cPuHN/NiylXnB9LuwEH6 F0WKtxKNaWTtD7ZkxhOCW3XeAMdYlvaW0fdBK2NwP+T2qInEIRxB2+HgfEBgITTv 7S8Anm+uIANkV7qFzih9bObtJ1aIkjRGFEpZWSp3m4PmxN2zF/DM4LmMkvsz/Cc2 LoNo09Kzlbwrm2fvaz7O7yx2YCWepIonuIY3Ctw6mvXxMLw6PzIdqM6d6DDxiNtQ +gA7M9Xvqn5Ujk61QGoEz5cID7MRE2WbGIN0SwyZEeuIAvRoZ8+SMLvd5NKgjj7/ vY49Q3gOaBViTM0hMhSS7aHSicOWBwVuxwqrLTcjs09mOGlFH6WwDg== =npOl -END PGP SIGNATURE- -- 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] puppetmaster, sqlite and out of filedescriptors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, is there any news about this issue? At the moment I still have to restart puppetmaster hourly. But if the clients getting more I have to shorten this interval more and more. Regards Klaus - -- Klaus Ethgenhttp://www.ethgen.ch/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen kl...@ethgen.de Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTVJ6Cp+OKpjRpO3lAQp4pggAskRJe8PqaFiaktAZYuyLq9TULlQ8odTs rXB2oX8sjOAqXPKIGIffTyiHKh3AqwtMOI1+WpW99gksIR0TWTINX++6cgFcASRU UQlN8tXS7AlCs2SGpcVOkOWH64JGJSEZ1zP1knSt7iBCqueCpa6fjKgzYPsmh505 Ic/ipHUrYyIJyyp9ek4WYbeR4jVpL5Uo1MaXKJNkkdEMZ1ketY0zQK5XrY9D2nqf wz72sySupPiX9ktJ4sNMShVcwcUDmTtCQdAEk8ebURf9sRGRHpNAdBw+6nqnMyZq 4/WqIKoacsF3PMGNfk7VX72KoQrXG19wVIORa8ihZt3g7KNUaGhoQA== =nbmo -END PGP SIGNATURE- -- 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] Unrecognised escape sequences
On 02/09/2011 12:13 PM, M C wrote: Hi, it aint our issue: we dont actually need to include escape chars into strings, our need is - for example - to escape delimitators ( , ' ) inside command lines; in fact ,we're used to compose very complex tiny scripts with subshells for the 'command' field into 'exec' resources, etc.. My comment was not targeted at escaping specific characters. Whatever you escape, if you want puppet to transfer a backslash to the client, and the string containing that backslash is double-quoted in your manifest, you should escape that backslash and avoid any ambiguity. Regards, Felix -- 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] Unrecognised escape sequences
Hi, the problem we are facing is not the transfer of backslash escape+non-specific character; we need puppet not to log the warns into the syslog when catalogs are prepared and commands such as command = /bin/echo \\$(echo bin)\, are processed for compiling Our syslogs are full of [...] Unrecognised escape sequence '\non-specific character' [...] Please help, thanks Greets, Matteo 2011/2/9 Felix Frank felix.fr...@alumni.tu-berlin.de On 02/09/2011 12:13 PM, M C wrote: Hi, it aint our issue: we dont actually need to include escape chars into strings, our need is - for example - to escape delimitators ( , ' ) inside command lines; in fact ,we're used to compose very complex tiny scripts with subshells for the 'command' field into 'exec' resources, etc.. My comment was not targeted at escaping specific characters. Whatever you escape, if you want puppet to transfer a backslash to the client, and the string containing that backslash is double-quoted in your manifest, you should escape that backslash and avoid any ambiguity. Regards, Felix -- 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] Unrecognised escape sequences
On 02/09/2011 01:22 PM, M C wrote: Hi, the problem we are facing is not the transfer of backslash escape+non-specific character; we need puppet not to log the warns into the syslog when catalogs are prepared and commands such as command = /bin/echo \\$(echo bin)\, are processed for compiling Our syslogs are full of [...] Unrecognised escape sequence '\non-specific character' [...] The above line is giving you this warning? Please make double-sure. There are lot of cases where this warning is justified, but the above line should *not* generate it, as all of those sequences should be recognized. -- 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] puppetmaster, sqlite and out of filedescriptors
Upgrade your activerecord gem Ohad On 2/9/11, Klaus Ethgen klaus+pup...@ethgen.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello, is there any news about this issue? At the moment I still have to restart puppetmaster hourly. But if the clients getting more I have to shorten this interval more and more. Regards Klaus - -- Klaus Ethgenhttp://www.ethgen.ch/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen kl...@ethgen.de Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTVJ6Cp+OKpjRpO3lAQp4pggAskRJe8PqaFiaktAZYuyLq9TULlQ8odTs rXB2oX8sjOAqXPKIGIffTyiHKh3AqwtMOI1+WpW99gksIR0TWTINX++6cgFcASRU UQlN8tXS7AlCs2SGpcVOkOWH64JGJSEZ1zP1knSt7iBCqueCpa6fjKgzYPsmh505 Ic/ipHUrYyIJyyp9ek4WYbeR4jVpL5Uo1MaXKJNkkdEMZ1ketY0zQK5XrY9D2nqf wz72sySupPiX9ktJ4sNMShVcwcUDmTtCQdAEk8ebURf9sRGRHpNAdBw+6nqnMyZq 4/WqIKoacsF3PMGNfk7VX72KoQrXG19wVIORa8ihZt3g7KNUaGhoQA== =nbmo -END PGP SIGNATURE- -- 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] Unrecognised escape sequences
Hi, thank you verymuch. Matteo 2011/2/9 Felix Frank felix.fr...@alumni.tu-berlin.de On 02/09/2011 01:22 PM, M C wrote: Hi, the problem we are facing is not the transfer of backslash escape+non-specific character; we need puppet not to log the warns into the syslog when catalogs are prepared and commands such as command = /bin/echo \\$(echo bin)\, are processed for compiling Our syslogs are full of [...] Unrecognised escape sequence '\non-specific character' [...] The above line is giving you this warning? Please make double-sure. There are lot of cases where this warning is justified, but the above line should *not* generate it, as all of those sequences should be recognized. -- 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] can we choose which inteface defines the $ipaddress fact?
On 11-02-09 01:01 AM, Naresh V wrote: Facter.add(:ipaddress, :timeout = 2) do setcode do if hostname = Facter.value(:hostname) # we need Hostname to exist for this to work host = nil if host = Facter::Util::Resolution.exec(host #{hostname}) list = host.chomp.split(/\s/) if defined? list[-1] and list[-1] =~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ list[-1] end else nil end else nil end end end If this part were the default/first piece of code that'd be used to produce the ipaddress fact, setting the right A record for the fqdn should solve the problem? hmm this fact looks like it won't work for any host that doesn't resolve, which would be problematic for something like a test setup with virtual machines. -- Gabriel Filion -- 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] Custom fact works in Facter but not in Puppet
Hi, I defined a simple custom fact which just returns Hello, world. Following the instructions in http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts http://docs.puppetlabs.com/guides/plugins_in_modules.html I added the source file as modules/admin/lib/facter/hello.rb and enabled 'pluginsync' in puppet.conf. If I run 'facter hello' it correctly returns Hello, world. But if I refer to it in a Puppet manifest with: notify { $hello: } I just get nothing. Running Puppet shows the fact is being loaded, and it has been synced to the fact directory on the client, but the value is just an empty string. Any ideas what might be wrong? Regards, John -- Bitfield Consulting: we make software that makes things work http://bitfieldconsulting.com/ -- 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] multiple puppetmasters (w/ Passenger) behind load balancer
Thanks for your reply. At this juncture, I'm doing it by the book and it's still failing for me. Can someone spot what I'm doing wrong here?: puppetmasterd --no-daemonize --verbose --certname puppet-test01.dev.domain.com Could not prepare for execution: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key Puppet.conf: [main] vardir = /var/lib/puppet logdir = /var/log/puppet rundir = /var/run/puppet reports= log, foreman clientyamldir = /var/lib/puppet/yaml/node pluginsync = true external_nodes = /etc/puppet/external_node.rb node_terminus = exec manifest = /etc/puppet/manifests/site.pp modulepath = /apps/iadmin/puppet/modules [puppetmasterd] certname = puppet-test01.dev.domain.com ca= false ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY templatedir = /apps/iadmin/puppet/templates clientyamldir = /var/lib/puppet/yaml/node reportdir = /var/lib/puppet/reports storeconfigs = true dbadapter = mysql dbuser = app_puppet dbpassword = CoNf1Gpupp3T dbserver = puppetdb.glb.domain.com dbsocket = /sql/mysql/mysql.sock rrddir = /var/lib/puppet/rrd rrdinterval = $runinterval rrdgraph = true [puppetd] report = true clientbucketdir = /backup/puppetClientBucketDir ca_server = puppetmaster1.dev.domain.com #node_name = facter listen = true ssldir = /etc/puppet/ssl certname = puppet-test01.dev.domain.com Generated from Main Puppetmaster with: sudo /usr/sbin/puppetca --generate --certdnsnames puppet:puppet.glb.domain.com puppet-test01.dev.domain.com The Files are there: puppet-test01 puppet # ls -ltr /etc/puppet/ssl/private_keys/ total 4 -rw--- 1 puppet root 887 Feb 9 10:08 puppet-test01.dev.domain.com.pem puppet-test01 puppet # ls -ltr /etc/puppet/ssl/certs total 8 -rw-r--r-- 1 puppet root 960 Feb 9 10:09 puppet-test01.dev.domain.com.pem -rw-r--r-- 1 puppet root 765 Feb 9 10:11 ca.pem -- 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] Puppet broken - Could not retrieve catalog from remote server
Hello, I was trying to change two modules on my puppet. And I was block on one error, until I figured that the error which show up was not related to a specific module. This error is causing issue to all my puppet clients : #puppetd -vt info: Retrieving plugin err: Could not retrieve catalog from remote server: Error 400 on SERVER: compile error (erb):416: syntax error, unexpected kEND, expecting $end ; end ; _erbout ^ warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run I can see in the apache2 logs : [09/Feb/2011:16:06:45 +0100] GET /production/catalog/ host.mydomaine.com?facts_format=b64_zlib_yamlfacts=[..] HTTP/1.1 400 95 - - All the clients with the issue are running Debian Lenny. I try to run puppetd -vt with a centOS server without any issues.. I really don't know how to troubleshoot this issue any help appreciated ! I'm running puppet 0.25.4-2 Hugo -- 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] Variable doesn't expand properly
On Tue, Feb 8, 2011 at 7:36 PM, Trevor Vaughan tvaug...@onyxpoint.comwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don't put $packagelist in quotes. $packagelist = Array[...] $packagelist = String(packagelist) Thanks; makes sense not to use the quotes, seeing now what goes on in the background. However, (per orig post) the result of no quotes: ... require = Package[$packagelist], ... was the following : warning: Not using cache on failed catalog ... and the somewhat obscure: warning: Configuration could not be instantiated: wrong number of arguments (3 for 2) I'll keep working with it, meanwhile I've bypassed using an array just to get it going... Trevor On 02/08/2011 05:34 PM, John Ingersoll wrote: HI, I'm getting some strange errors when I try to use a variable in a require = Package construct, namely: $packagelist = [clamav, clamd, clamav-db] package { $packagelist: ensure = latest, } # Above apparently works fine... # ...THEN... file { /etc/rc.d/init.d/clamd.mimedefang: ensure = $adminroot/mime-defang/clamd.mimedefang, require = [ File[$adminroot/mime-defang], Package[$packagelist], Package[mimedefang] ], # getting error: quote Configuration could not be instantiated: Could not find dependency Package[clamavclamdclamav-db] for File[/etc/rc.d/init.d/clamd.mimedefang] /quote As you can see, it's running the names together. If I remove the double quotes to be... Package[$packagelist], ...it tells me... quote warning: Not using cache on failed catalog warning: Configuration could not be instantiated: wrong number of arguments (3 for 2) /quote Similar syntax appears to be working fine in another module. What could I be doing wrong? TIA -- John Ingersoll EITS/CSSA University of Georgia, Athens -- 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. - -- Trevor Vaughan Vice President, Onyx Point, Inc. email: tvaug...@onyxpoint.com phone: 410-541-ONYX (6699) pgp: 0x6C701E94 - -- This account not approved for unencrypted sensitive information -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJNUeGBAAoJECNCGV1OLcypMi8H/iFJYwDhUPhR6bLEhxClzh6z Ur/s8+feZikU6p30bLEagN/epWBR39878BwZBHES+TfT/PGbCMrv628Zzc/Bkuij EGTdpbO5rqhfojIF/eSDRvoixGgYwJuoTMCU7XFfYdbht9Onr8bXJe5ORYS53QrT +fwXHhbCP+S1H2+gFHqHhAw+FON4lItuYJcobrmhWfe1Rc1vpVIuGOgQdRtiI1Tk bMilJmidVqXY/ClbrKJOmkrRY00+z9ysUtFVoejFZKLkdrp/RZVor2Svl6sZUNVl 2K1uwWg8vnmLPPFovAvAy1H8EG+ebH/DVP8827ujNIl4o6aFCmMVZpeNgb5DWkg= =4TnH -END PGP SIGNATURE- Regards -- John Ingersoll EITS/CSSA University of Georgia, Athens jhijr at uga dot edu -- 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: Master-less : What do I lose?
On Wed, Feb 9, 2011 at 3:07 AM, prayther prayt...@gmail.com wrote: I am specifically trying to eliminate the need for puppet master for 2 reasons (i am just scratching the surface on what puppet can do and how it works. nooby). 1 simplicity to others to use an open systems management process that has red hat satellite server at the center (all i want them to NEED to understand is satellite and channels) of it and 2 so i can use the satellite's disconnected feature to be able to deliver a complete solution to disconnected networks. i am packaging puppet content in an RPM's and delivering it that way. i also believe i have it figured out how to deliver content for security, application and host in separate RPM's so i too have been looking for a concise, this is what you loose and a brief description of what that means in a mature enterprise installation. There's quite a bit of functionality in Puppet Master so this is not a comprehensive list. Puppet Master provides a centralized location for: managing manifests, modules, and environments syncing custom facts and types/providers reports puppet:/// file service certificates filebucket backup collecting facts from clients (future inventory service) You can achieve some these functionality without a puppet master, but you would still have the same hurdles for disconnected networks. Jordan's slides list several differences so I won't reiterate them here. Another key difference is the agent only receives a catalog in master/agent mode. In masterless mode you must provide the puppet manifest/templates to each client system. The catalog is system specific and does not contain any configuration information about other systems, the manifests and templates would have all the configuration data for all systems. It would be non trivial to keep the configuration data isolated in masterless mode if you have a desire to segment and isolate configuration data by system, or even system roles (i.e. my website database system should not contain puppet manifest with my financial database password). The rest of the features are mainly trade off between a central service vs. distributed service, and the ability to isolate access (i.e. if you use an ENC, puppet master is the only system that needs access to the LDAP/CMDB/database, if you implement something similar in a masterless environment, every agent needs an account and access to that central source of information). 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] Re: multiple yum repos in manifest
On Tue, Feb 8, 2011 at 1:22 PM, Tim Dunphy bluethu...@gmail.com wrote: Couldn't fork %post: Cannot allocate memory Can you perform the actions manually, without puppet involved? this looks like memory shortage issue... Mohamed. -- 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: can we choose which inteface defines the $ipaddress fact?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hmm.. I had similar problem without solving it the elegant way until now. But how about the following algorithm: - - Check which interface has the default routing - - If no default routing take the first one Regards Klaus - -- Klaus Ethgenhttp://www.ethgen.ch/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen kl...@ethgen.de Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTVLDoZ+OKpjRpO3lAQo4Cgf/Z59ICBNqseZbCSi/AZMuEL3DlrT7xSiN 7nLLEV8beJTmBg9ueAoJhu5gDvvWzJf8rUq2yIlW1TW7sTFBAem+hWSnQbE4CBRc X71HW1asuuK6OipzjEauJKz6o3zJ3hzpQ8EY+gEW9O+5N7Ud13XJ66kOTeukpdRd USncCYHXszpjrM2GAEEegh+JXGr7Jd9h+VvKIuaa1vlKzfvwyNFZAfrImP6ZXbcc RxkUAVpvi+QHWqwYZh2a5yqYcNkbcmjy43PW7km9QtHTWgHefpeuNzzcKO2aJrAr 5tBwk7lHVAclWydwplCdLIZK0Nq2BvUXOfL/SCSoFB/7DcMNtzg63A== =tOoD -END PGP SIGNATURE- -- 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 broken - Could not retrieve catalog from remote server
On Feb 9, 2011, at 7:13 AM, Hugo Deprez wrote: Hello, I was trying to change two modules on my puppet. And I was block on one error, until I figured that the error which show up was not related to a specific module. This error is causing issue to all my puppet clients : #puppetd -vt info: Retrieving plugin err: Could not retrieve catalog from remote server: Error 400 on SERVER: compile error (erb):416: syntax error, unexpected kEND, expecting $end ; end ; _erbout ^ warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Well, seeing the string erb makes me think this is a bug in a template, either on line 416, of a template, or on line 416 of a manifest that references a template. -- 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.6.2 defunct processes
I'm running 2.6.2 both client and server and am having a problem with defunct processes for sh and gem on the clients. Right now I see 715 of them. Restarting the puppet daemon nightly helps, but I would prefer to fix this. root 21667 1 0 11:11 ?00:01:20 /usr/bin/ruby1.8 /usr/ sbin/puppetd --environment=stage root 21677 21667 0 11:11 ?00:00:00 [gem] defunct root 21678 21667 0 11:11 ?00:00:00 [sh] defunct root 21680 21667 0 11:11 ?00:00:00 [sh] defunct Linux 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 19:22:36 EST 2009 i686 GNU/Linux ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Is the code that runs these providers on lib/puppet/util.rb and using Kernel.fork ? Any help would be greatly appreciated. Interestingly enough I see a similar problem with mcollective, so it might be just ruby. -- 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 broken - Could not retrieve catalog from remote server
Hello, I finally just find an answer... That's right I had something wrong in one template, I was not able to find which one... So I used SVN to return back to a state which worked before, and resolved my issue. The only thing is that the error message was not so obvious. Thanks Hugo On 9 February 2011 18:56, Patrick kc7...@gmail.com wrote: On Feb 9, 2011, at 7:13 AM, Hugo Deprez wrote: Hello, I was trying to change two modules on my puppet. And I was block on one error, until I figured that the error which show up was not related to a specific module. This error is causing issue to all my puppet clients : #puppetd -vt info: Retrieving plugin err: Could not retrieve catalog from remote server: Error 400 on SERVER: compile error (erb):416: syntax error, unexpected kEND, expecting $end ; end ; _erbout ^ warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Well, seeing the string erb makes me think this is a bug in a template, either on line 416, of a template, or on line 416 of a manifest that references a template. -- 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] multiple puppetmasters (w/ Passenger) behind load balancer
On Feb 9, 2011, at 7:27 AM, CraftyTech wrote: Thanks for your reply. At this juncture, I'm doing it by the book and it's still failing for me. Can someone spot what I'm doing wrong here?: puppetmasterd --no-daemonize --verbose --certname puppet-test01.dev.domain.com Could not prepare for execution: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key Generated from Main Puppetmaster with: sudo /usr/sbin/puppetca --generate --certdnsnames puppet:puppet.glb.domain.com puppet-test01.dev.domain.com The Files are there: puppet-test01 puppet # ls -ltr /etc/puppet/ssl/private_keys/ total 4 -rw--- 1 puppet root 887 Feb 9 10:08 puppet-test01.dev.domain.com.pem puppet-test01 puppet # ls -ltr /etc/puppet/ssl/certs total 8 -rw-r--r-- 1 puppet root 960 Feb 9 10:09 puppet-test01.dev.domain.com.pem -rw-r--r-- 1 puppet root 765 Feb 9 10:11 ca.pem With your current config file, there should be /var/lib/puppet/ssl, not /etc/puppet/ssl. Check by running this on puppet-test1: puppetmasterd --genconfig | grep 'ssldir =' It will probably return ssldir = /var/lib/puppet/ssl telling you the ssl directory is in /var/lib/puppet/ssl. -- 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] if statement in class not working...
I have a simple class like so for cronjobs: class cron_jobs { cron { cron1: command = /path/to/cron1, user= root, hour= 0, minute = 5, ensure = present, } cron { cron2: command = /path/to/cron2, user= root, hour= 0, minute = 0, ensure = present, } if $myvar == 'foo' { cron { cron3.$myvar: command = /path/to/cron3, user= root, } } else { cron { cron3.$myvar: commad = /path/to/cron3, user = root, } } } but I am obviously doing something wrong because the clients always give a syntax error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '.'; expected '}' at /etc/puppet/modules/cron_jobs/ manifests/init.pp:17 on node noe.domain.com Can anyone tell me what I am doing wrong? I've also tried with a case statement instead of if but I get the same syntax error at the first cron line. So Im guessing something is wrong with the cron command in the bracked if statement ? -- 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] Master-less : What do I lose?
Okay... that's very cool (and thanks for the github example repo for nodeless puppet!). This plus the 'scaling puppet with git' [0] concepts I'll use here at Lookout, Inc. Cheers, Ryan [0] - http://bitfieldconsulting.com/scaling-puppet-with-distributed-version-control On Feb 9, 2011, at 1:15 AM, Jordan Sissel wrote: On Mon, Feb 7, 2011 at 9:59 AM, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? I presented a few weeks ago about how I use puppet, and that included masterless. Searchable slides on one page here: http://semicomplete.com/presentations/puppet-at-loggly/puppet-at-loggly.pdf.html I include caveats and other stuff to consider for masterless. All told, while I love masterless, I don't recommend it for the average case. Do you have a reason or requirement that makes you want to use masterless? -Jordan -- 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: if statement in class not working...
I have figured it out, the cron name had a dot n it. I needed to encase that in quotes before it would work. so it wasn't a syntax error like the log message was leading me to believe. On Feb 9, 12:10 pm, trey85stang trey85st...@gmail.com wrote: I have a simple class like so for cronjobs: class cron_jobs { cron { cron1: command = /path/to/cron1, user = root, hour = 0, minute = 5, ensure = present, } cron { cron2: command = /path/to/cron2, user = root, hour = 0, minute = 0, ensure = present, } if $myvar == 'foo' { cron { cron3.$myvar: command = /path/to/cron3, user = root, } } else { cron { cron3.$myvar: commad = /path/to/cron3, user = root, } } } but I am obviously doing something wrong because the clients always give a syntax error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '.'; expected '}' at /etc/puppet/modules/cron_jobs/ manifests/init.pp:17 on node noe.domain.com Can anyone tell me what I am doing wrong? I've also tried with a case statement instead of if but I get the same syntax error at the first cron line. So Im guessing something is wrong with the cron command in the bracked if statement ? -- 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] multiple puppetmasters (w/ Passenger) behind load balancer
The SSLDIR is where it should be: puppetmasterd --genconfig | grep 'ssldir =' ssldir = /etc/puppet/ssl The crazy thing is that running puppetd with the same cert works fine. Only puppetmaster is the issue. I run it to sync up with the main puppetmaster. -- 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] multiple puppetmasters (w/ Passenger) behind load balancer
These are the files that I copy: puppetmaster1cd /etc/puppet/ssl puppetmaster1scp private_keys/puppet-test01.pem root@puppet-test01:/etc/puppet/ssl/private_keys/puppet-test01.pem puppetmaster1scp ca/signed/puppet-test01.pem root@puppet-test01:/etc/puppet/ssl/certs/puppet-test01.pem puppetmaster1scp ca/ca_crt.pem root@puppet-test01:/etc/puppet/ssl/certs/ca.pem To use Passenger (I'd need also ca_crt.pem and ca_crl.pem), so I also copy: puppetmaster1scp /etc/puppet/ssl/ca/ca_crt.pem root@puppet-test01:/etc/puppet/ssl/ca/ca_crt.pem puppetmaster1scp /etc/puppet/ssl/ca/ca_crl.pem root@puppet-test01:/etc/puppet/ssl/ca/ca_crl.pem I don't get why it works for the client side, and not the servers side.. All ideas welcome :) -- 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] multiple puppetmasters (w/ Passenger) behind load balancer
On Feb 9, 2011, at 10:51 AM, CraftyTech wrote: These are the files that I copy: puppetmaster1cd /etc/puppet/ssl puppetmaster1scp private_keys/puppet-test01.pem root@puppet-test01:/etc/puppet/ssl/private_keys/puppet-test01.pem puppetmaster1scp ca/signed/puppet-test01.pem root@puppet-test01:/etc/puppet/ssl/certs/puppet-test01.pem puppetmaster1scp ca/ca_crt.pem root@puppet-test01:/etc/puppet/ssl/certs/ca.pem To use Passenger (I'd need also ca_crt.pem and ca_crl.pem), so I also copy: puppetmaster1scp /etc/puppet/ssl/ca/ca_crt.pem root@puppet-test01:/etc/puppet/ssl/ca/ca_crt.pem puppetmaster1scp /etc/puppet/ssl/ca/ca_crl.pem root@puppet-test01:/etc/puppet/ssl/ca/ca_crl.pem I don't get why it works for the client side, and not the servers side.. All ideas welcome :) The only line I see that's different that I think matters is this: ca_server = puppetmaster1.dev.domain.com Try putting that line in the puppetmasterd section. -- 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: Report rrdgraph failed: could not create RRD file
Any luck with this? I'm running 2.6.4 and I'm encountering the same issue with my puppetmaster and agents on centos 5.5. rrdtool.x86_64 1.2.27-3.el5 installed rrdtool-devel.x86_641.2.27-3.el5 installed rrdtool-ruby.x86_64 1.2.27-3.el5 installed ruby.x86_64 1.8.5-5.el5_4.8 installed Thanks, Edwin On Dec 28 2010, 4:50 am, Martijn Grendelman mart...@iphion.nl wrote: Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var/lib/puppet/rrd/talk.dev.iphion.nl/changes.rrd: you must define at least one Data Source I think this is an RRD bug as well as a Puppet. What platform, RRD version and RRD Ruby bindings are you using? Also what Puppet version? This is an Ubuntu Jaunty install. $ dpkg -l puppet rrdtool librrd-ruby ii librrd-ruby 1.3.1-4ubuntu1 ii puppet 2.6.3-0ubuntu1-iphion2~9.04 ii rrdtool 1.3.1-4ubuntu1 If you search the bug database I think you'll find your issue. I'll have a look, thanks! Besideshttps://projects.puppetlabs.com/issues/4783(closed 3 months ago), I haven't been able to find any issues that come close to what I'm seeing. I have updated rrdtool (incl. librrd and the Ruby bindings) to version 1.4.3, but I didn't notice any improvement. Best regards, Martijn. -- 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: Master-less : What do I lose?
emmm everything?! is the master-client relationship not the whole point of puppet? the master stores the scripts and the client obtains the instructions in the scripts from the master. If you have no master, where do you get your instructions? On Feb 7, 10:59 pm, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? -- 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: high 500 error rate on file metadata operations
I rolled out 2.6.3 to four puppetmasters yesterday as part of a canary and while it's been less than 24 hours, there are already encouraging signs. The servers participating in the canary logged just short of 600 500 errors yesterday and have logged 0 so far today. For further comparison, the remainder of our puppetmaster fleet has logged over 1000 500 errors in just twelve hours today. Jason -- 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] Syntax error at 'enable'; expected '}'
Hello puppet list!! I keep getting the same error and I can't for the life of me see where this problem is... [root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at 'enable'; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:23 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Here is the manifest it is erroring out on: class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients] } default: { $ssh_packages = [ openssh, openssh-server ] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, } enable = true, ensure = running } } Could someone please lend an eye? Thanks!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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: Master-less : What do I lose?
I think it depends on the use case. I much prefer the git method. I'm trying to do it the classic way this week, but there is a lot of decisions to deploy an efficient puppetmaster which add complexity and unwanted software to some setups. Git does ssh. Git is far faster. Finally, the source of changes, really is my puppet repo. I'm quite curious about this issue also. -- 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: Master-less : What do I lose?
It would be non trivial to keep the configuration data isolated in masterless mode if you have a desire to segment and isolate configuration data by system, or even system roles (i.e. my website database system should not contain puppet manifest with my financial database password). I really am trying to understand here. To me this is the thing I love about git/merc... wait, I dont love mercurial. The thing I love about DVCS is that this seems a perfect problem domain for it. You would be the master, store the total repo on your laptop and push the branches needed, where they need to go. I suppose that the logic would be in several systems instead of one, but git does distributed versioning better, surely? Please advise. -- 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: Syntax error at 'enable'; expected '}'
Hello, I tried placing a comma where you suggested. However that did not appear to make any difference. Do you have any other thoughts? [root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at end of file; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:31 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients] } default: { $ssh_packages = [ openssh, openssh-server ] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } thanks!! On Wed, Feb 9, 2011 at 3:34 PM, Sergey Zhuga sergey.zh...@gmail.com wrote: Hi, service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, } comma enable = true, ensure = running } -- 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. -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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: Syntax error at 'enable'; expected '}'
Hi Tim, you are missing a closing } class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients ] } default: { $ssh_packages = [ openssh, openssh-server ] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } - missing } Cheers, Atha On Wednesday, February 9, 2011 at 6:38 PM, Tim Dunphy wrote: Hello, I tried placing a comma where you suggested. However that did not appear to make any difference. Do you have any other thoughts? [root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at end of file; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:31 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients] } default: { $ssh_packages = [ openssh, openssh-server ] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } thanks!! On Wed, Feb 9, 2011 at 3:34 PM, Sergey Zhuga sergey.zh...@gmail.com wrote: Hi, service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, } comma enable = true, ensure = running } -- 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. -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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] Re: Syntax error at 'enable'; expected '}'
Hi guys, got it worked out!!! class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [openssh,openssh-server,openssh-clients] } default: { $ssh_packages = [openssh,openssh-server] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsytem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } } Thanks so much for your help!! :-) On Wed, Feb 9, 2011 at 4:43 PM, Atha Kouroussis akourous...@gmail.com wrote: Hi Tim, you are missing a closing } class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients ] } default: { $ssh_packages = [ openssh, openssh-server ] } } package { $ssh_packages: ensure = installed } service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } - missing } Cheers, Atha On Wednesday, February 9, 2011 at 6:38 PM, Tim Dunphy wrote: Hello, I tried placing a comma where you suggested. However that did not appear to make any difference. Do you have any other thoughts? [root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at end of file; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:31 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run class baseapps { $packagelist = [ nmap,php-common,php-cli,perl,keychain,screen ] package { $packagelist: ensure = installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ openssh,openssh-server,openssh-clients] } default: { $ssh_packages = [ openssh, openssh-server ] } } package {{ $ssh_packages: ensure = installed } service {{ sshd: name = $operatingsystem ? { centos = sshd, default = sshd, }, enable = true, ensure = running } } thanks!! On Wed, Feb 9, 2011 at 3:34 PM, Sergey Zhuga sergey.zh...@gmail.com wrote: Hi, service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, } comma enable = true, ensure = running } -- 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. -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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. -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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] Syntax error at 'enable'; expected '}'
On Feb 9, 2011, at 12:28 PM, Tim Dunphy wrote: Hello puppet list!! I keep getting the same error and I can't for the life of me see where this problem is... [root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at 'enable'; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:23 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Well, the problem seems to be in the service line so you can cut your manifest down to this and try it without the master after replacing the variable: test.pp: include testClass class testClass { #Pretends we have factor $operatingsystem = centos service { sshd: name = $operatingsystem ? { centos = sshd, default = sshd, } enable = true, ensure = running } } Then run it again and see if you get the same error without the master. puppet --verbose test.pp Could not parse for environment production: Syntax error at 'enable'; expected '}' at /removed_path/test2.pp:10 on node localhost Yep. Still have the error. Now you can test it much easier. Now, in this case, your problem is because you missed a comma after closing the operating system selector. Still, if you can shrink your manifest and remove the puppetmaster, it will help us in the future. -- 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] file serving error
hello again list!! I am attempting to work out how to serve files with puppet. Here is my fileserver.conf file # This file consists of arbitrarily named sections/modules # defining where files are served from and to whom # Define a section 'files' # Adapt the allow/deny settings to your needs. Order # for allow/deny does not matter, allow always takes precedence # over deny [snjh] path /etc/puppet/manifests/files/snjh allow *.summitnjhome.com # deny *.evil.example.com # allow 192.168.0.0/24 Here is the class manifest I am using: class basefiles { file { /etc/ldap.conf: source = puppet://puppet/snjh/ldap.conf } file { /etc/haha.txt: source = puppet://puppet/snjh/haha.txt } } And here is the directory I am trying to serve the files from: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files total 12 drwxr-xr-x 100 root root 12288 Feb 9 16:32 snjh Each file is in it's expected location. Here is the ldap.conf file I am attempting to serve: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/ldap.conf -rw-r--r-- 1 root root 9190 Nov 25 21:41 /etc/puppet/manifests/files/snjh/ldap.conf And this is a sample text file that I wanted to try to place on the client to help verify that file serving is working: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/haha.txt -rw-r--r-- 1 root root 7 Feb 9 15:38 /etc/puppet/manifests/files/snjh/haha.txt And here is the error: [root@VIRTCENT03:~] #puppetd --test info: Caching catalog for virtcent03.summitnjhome.com info: Applying configuration version '1297288565' err: //basefiles/File[/etc/haha.txt]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/haha.txt at /etc/puppet/manifests/classes/basefiles.pp:10 err: //basefiles/File[/etc/ldap.conf]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/ldap.conf at /etc/puppet/manifests/classes/basefiles.pp:6 notice: Finished catalog run in 1.09 seconds I would sincerely appreciate any advice you may have on this matter. Thanks!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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: file serving error
Hi Tim, the source specified is wrong. Since this is apparently not in a module, it should read: source = puppet:///snjh/ldap.conf In case you wanted to retrieve your files from another puppetmaster: source = puppet://${puppetmaster}/snjh/ldap.conf where ${puppetmaster} is the name of the server or another variable that specifies that name. Cheers, Atha -- Atha Kouroussis Sent with Sparrow On Wednesday, February 9, 2011 at 7:01 PM, Tim Dunphy wrote: hello again list!! I am attempting to work out how to serve files with puppet. Here is my fileserver.conf file # This file consists of arbitrarily named sections/modules # defining where files are served from and to whom # Define a section 'files' # Adapt the allow/deny settings to your needs. Order # for allow/deny does not matter, allow always takes precedence # over deny [snjh] path /etc/puppet/manifests/files/snjh allow *.summitnjhome.com # deny *.evil.example.com # allow 192.168.0.0/24 Here is the class manifest I am using: class basefiles { file { /etc/ldap.conf: source = puppet://puppet/snjh/ldap.conf } file { /etc/haha.txt: source = puppet://puppet/snjh/haha.txt } } And here is the directory I am trying to serve the files from: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files total 12 drwxr-xr-x 100 root root 12288 Feb 9 16:32 snjh Each file is in it's expected location. Here is the ldap.conf file I am attempting to serve: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/ldap.conf -rw-r--r-- 1 root root 9190 Nov 25 21:41 /etc/puppet/manifests/files/snjh/ldap.conf And this is a sample text file that I wanted to try to place on the client to help verify that file serving is working: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/haha.txt -rw-r--r-- 1 root root 7 Feb 9 15:38 /etc/puppet/manifests/files/snjh/haha.txt And here is the error: [root@VIRTCENT03:~] #puppetd --test info: Caching catalog for virtcent03.summitnjhome.com info: Applying configuration version '1297288565' err: //basefiles/File[/etc/haha.txt]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/haha.txt at /etc/puppet/manifests/classes/basefiles.pp:10 err: //basefiles/File[/etc/ldap.conf]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/ldap.conf at /etc/puppet/manifests/classes/basefiles.pp:6 notice: Finished catalog run in 1.09 seconds I would sincerely appreciate any advice you may have on this matter. Thanks!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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] Re: Report rrdgraph failed: could not create RRD file
Any luck with this? I'm running 2.6.4 and I'm encountering the same issue with my puppetmaster and agents on centos 5.5. The issue appears to be with client reports being sent back. For the changes attribute, it sends values: [] instead of what it expects, values: [- - sym/ruby, - total, 0] (or something similar to that). I've not been able to see where that is generated on the client yet. Note, this was with 2.6.1 + the patch in the issue referenced below. rrdtool.x86_64 1.2.27-3.el5 installed rrdtool-devel.x86_641.2.27-3.el5 installed rrdtool-ruby.x86_64 1.2.27-3.el5 installed ruby.x86_64 1.8.5-5.el5_4.8 installed Thanks, Edwin On Dec 28 2010, 4:50 am, Martijn Grendelman mart...@iphion.nl wrote: Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var/lib/puppet/rrd/talk.dev.iphion.nl/changes.rrd: you must define at least one Data Source I think this is an RRD bug as well as a Puppet. What platform, RRD version and RRD Ruby bindings are you using? Also what Puppet version? This is an Ubuntu Jaunty install. $ dpkg -l puppet rrdtool librrd-ruby ii librrd-ruby 1.3.1-4ubuntu1 ii puppet 2.6.3-0ubuntu1-iphion2~9.04 ii rrdtool 1.3.1-4ubuntu1 If you search the bug database I think you'll find your issue. I'll have a look, thanks! Besideshttps://projects.puppetlabs.com/issues/4783(closed 3 months ago), I haven't been able to find any issues that come close to what I'm seeing. I have updated rrdtool (incl. librrd and the Ruby bindings) to version 1.4.3, but I didn't notice any improvement. Best regards, Martijn. -- 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. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -- 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: file serving error
Hi Atha, This is what the basefiles class that I have created looks like now: class basefiles { file { /etc/ldap.conf: source = puppet:///snjh/ldap.conf } file { /etc/haha.txt: source = puppet:///snjh/haha.txt } } I have allowed everything (for the time being) in filersver.conf : # Define a section 'files' # Adapt the allow/deny settings to your needs. Order # for allow/deny does not matter, allow always takes precedence # over deny [snjh] path /etc/puppet/manifests/files/snjh allow * # deny *.evil.example.com # allow 192.168.0.0/24 And this is the error I am currently getting: [root@VIRTCENT03:~] #puppetd --test info: Caching catalog for virtcent03.summitnjhome.com info: Applying configuration version '1297290431' err: //basefiles/File[/etc/haha.txt]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/haha.txt at /etc/puppet/manifests/classes/basefiles.pp:10 err: //basefiles/File[/etc/ldap.conf]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/ldap.conf at /etc/puppet/manifests/classes/basefiles.pp:6 notice: Finished catalog run in 1.03 seconds thanks for your help! On Wed, Feb 9, 2011 at 5:05 PM, Atha Kouroussis akourous...@gmail.com wrote: Hi Tim, the source specified is wrong. Since this is apparently not in a module, it should read: source = puppet:///snjh/ldap.conf In case you wanted to retrieve your files from another puppetmaster: source = puppet://${puppetmaster}/snjh/ldap.conf where ${puppetmaster} is the name of the server or another variable that specifies that name. Cheers, Atha -- Atha Kouroussis Sent with Sparrow On Wednesday, February 9, 2011 at 7:01 PM, Tim Dunphy wrote: hello again list!! I am attempting to work out how to serve files with puppet. Here is my fileserver.conf file # This file consists of arbitrarily named sections/modules # defining where files are served from and to whom # Define a section 'files' # Adapt the allow/deny settings to your needs. Order # for allow/deny does not matter, allow always takes precedence # over deny [snjh] path /etc/puppet/manifests/files/snjh allow *.summitnjhome.com # deny *.evil.example.com # allow 192.168.0.0/24 Here is the class manifest I am using: class basefiles { file { /etc/ldap.conf: source = puppet://puppet/snjh/ldap.conf } file { /etc/haha.txt: source = puppet://puppet/snjh/haha.txt } } And here is the directory I am trying to serve the files from: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files total 12 drwxr-xr-x 100 root root 12288 Feb 9 16:32 snjh Each file is in it's expected location. Here is the ldap.conf file I am attempting to serve: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/ldap.conf -rw-r--r-- 1 root root 9190 Nov 25 21:41 /etc/puppet/manifests/files/snjh/ldap.conf And this is a sample text file that I wanted to try to place on the client to help verify that file serving is working: [root@virtcent13:/etc/puppet/manifests] #ls -l /etc/puppet/manifests/files/snjh/haha.txt -rw-r--r-- 1 root root 7 Feb 9 15:38 /etc/puppet/manifests/files/snjh/haha.txt And here is the error: [root@VIRTCENT03:~] #puppetd --test info: Caching catalog for virtcent03.summitnjhome.com info: Applying configuration version '1297288565' err: //basefiles/File[/etc/haha.txt]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/haha.txt at /etc/puppet/manifests/classes/basefiles.pp:10 err: //basefiles/File[/etc/ldap.conf]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/snjh/ldap.conf at /etc/puppet/manifests/classes/basefiles.pp:6 notice: Finished catalog run in 1.09 seconds I would sincerely appreciate any advice you may have on this matter. Thanks!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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. -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post
[Puppet Users] puppet server not responding
hello list I am attempting to setup a puppet server in the amazon cloud. When I try to hit the host from the test client using puppetd --test I get this response... [root@mclient ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run So I thought what if I try to do a test puppet run on the server itself? Surprisingly I get the same result... [root@mcollective ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run I make sure that puppet is installed: [root@mcollective ~]# rpm -qa | grep puppet puppet-server-0.25.5-1.el5 puppet-0.25.5-1.el5 That the service is running: [root@mcollective ~]# service puppetmaster status puppetmasterd (pid 2025) is running... And listening on the correct port: [root@mcollective ~]# lsof -i :8140 COMMANDPID USER FD TYPE DEVICE SIZE NODE NAME puppetmas 2025 puppet7u IPv4 15187 TCP *:8140 (LISTEN) So why would this puppet server be unable to contact itself?? thanks in advance!! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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 server not responding
Tim Dunphy said: hello list I am attempting to setup a puppet server in the amazon cloud. When I try to hit the host from the test client using puppetd --test I get this response... [root@mclient ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Hello, In my experience an error like this means that the hostname on your machine may not be set correctly, check outputs of `facter fqdn' and `hostname -f'. -- Rohan McGovern Quality Engineer Qt Development Frameworks, Nokia -- 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 server not responding
Hello and thanks for your reply!! It looks like the hostname is set correctly [root@mcollective ~]# hostname -f mcollective.acadaca.net [root@mcollective ~]# facter | grep fqdn fqdn = mcollective.acadaca.net And here is a more verbose run of puppetd --test [root@mcollective ~]# puppetd -t -d -v debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Failed to load library 'ldap' for feature 'ldap' debug: Puppet::Type::User::ProviderLdap: feature ldap is missing debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/public_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/ssl/certs/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: Finishing transaction 23456293293600 with 0 changes debug: /File[/var/lib/puppet/ssl/private_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/certs/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/public_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: Finishing transaction 23456292743820 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for mcollective.acadaca.net debug: Finishing transaction 23456293690500 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for mcollective.acadaca.net debug: Using cached certificate_revocation_list for ca debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Thanks again for your input! On Wed, Feb 9, 2011 at 6:38 PM, Rohan McGovern rohan.mcgov...@nokia.com wrote: Tim Dunphy said: hello list I am attempting to setup a puppet server in the amazon cloud. When I try to hit the host from the test client using puppetd --test I get this response... [root@mclient ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Hello, In my experience an error like this means that the hostname on your machine may not be set correctly, check outputs of `facter fqdn' and `hostname -f'. -- Rohan McGovern Quality Engineer Qt Development Frameworks, Nokia -- GPG me!! gpg --keyserver
[Puppet Users] Re: puppet server not responding
Hi Tim, what is your puppet.conf? Have you specified a puppet server to use? If not, by default it will look for a host named puppet which is why its complaining about not being able to resolve. Cheers, Atha On Wednesday, February 9, 2011 at 8:44 PM, Tim Dunphy wrote: Hello and thanks for your reply!! It looks like the hostname is set correctly [root@mcollective ~]# hostname -f mcollective.acadaca.net [root@mcollective ~]# facter | grep fqdn fqdn = mcollective.acadaca.net And here is a more verbose run of puppetd --test [root@mcollective ~]# puppetd -t -d -v debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Failed to load library 'ldap' for feature 'ldap' debug: Puppet::Type::User::ProviderLdap: feature ldap is missing debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state] debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/public_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/ssl/certs/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: Finishing transaction 23456293293600 with 0 changes debug: /File[/var/lib/puppet/ssl/private_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys] debug: /File[/var/lib/puppet/ssl/certs/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet] debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs] debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl] debug: /File[/var/lib/puppet/ssl/public_keys/mcollective.acadaca.net.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys] debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet] debug: Finishing transaction 23456292743820 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for mcollective.acadaca.net debug: Finishing transaction 23456293690500 with 0 changes debug: Using cached certificate for ca debug: Using cached certificate for mcollective.acadaca.net debug: Using cached certificate_revocation_list for ca debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Thanks again for your input! On Wed, Feb 9, 2011 at 6:38 PM, Rohan McGovern rohan.mcgov...@nokia.com wrote: Tim Dunphy said: hello list I am attempting to setup a puppet server in the amazon cloud. When I try to hit the host from the test client using puppetd --test I get this response... [root@mclient ~]# puppetd --test err: Could not retrieve catalog from remote server:
Re: [Puppet Users] puppet server not responding
Hi, I think your client can't resolve puppet server hostname. Try to change 'server' directive in config file or add 'puppet' to /etc/hosts or use '--server' option in command line. Regards. On 10.02.2011 01:26, Tim Dunphy wrote: hello list I am attempting to setup a puppet server in the amazon cloud. When I try to hit the host from the test client using puppetd --test I get this response... [root@mclient ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run So I thought what if I try to do a test puppet run on the server itself? Surprisingly I get the same result... [root@mcollective ~]# puppetd --test err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run I make sure that puppet is installed: [root@mcollective ~]# rpm -qa | grep puppet puppet-server-0.25.5-1.el5 puppet-0.25.5-1.el5 That the service is running: [root@mcollective ~]# service puppetmaster status puppetmasterd (pid 2025) is running... And listening on the correct port: [root@mcollective ~]# lsof -i :8140 COMMANDPID USER FD TYPE DEVICE SIZE NODE NAME puppetmas 2025 puppet7u IPv4 15187 TCP *:8140 (LISTEN) So why would this puppet server be unable to contact itself?? thanks in advance!! -- 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: Master-less : What do I lose?
We have moved to a masterless puppet install after running a server/ client method for over a year (maybe two). We have about 500 machines but started having trouble with alot less (~100) The puppet master would consume 8 GB and then crash due to running out of RAM. The puppet server was too unstable. We went through the upgrade process for several versions, each time hoping the memory leaks would be solved. But they were not. One thing we have is mulitple NFS mounts common to all machines. So moving to serverless was quite painless and has so far been a HUGE improvement. On Feb 8, 4:59 am, jblaine cjbla...@gmail.com wrote: I've not found an explanation of what is lost by using Puppet without a puppetmaster. Does anyone have a link to something like that, or is anyone willing to expound on the topic? -- 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] How to include the Scope(...) in a generated string?
On 3 February 2011 05:04, Dan Bode d...@puppetlabs.com wrote: class fooperi { $foo = inline_template(% scope.to_hash.keys.each do |k| % %= k %% end %) notice($foo) } so I have this running nicely in a file - but I'd love to have the results sorted. Putting .sort at random places on the hash gives me errors. Any pointers for a ruby newby? Thanks 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] How to include the Scope(...) in a generated string?
On Wed, Feb 9, 2011 at 8:36 PM, John Warburton jwarbur...@gmail.com wrote: On 3 February 2011 05:04, Dan Bode d...@puppetlabs.com wrote: class fooperi { $foo = inline_template(% scope.to_hash.keys.each do |k| % %= k %% end %) notice($foo) } so I have this running nicely in a file - but I'd love to have the results sorted. Putting .sort at random places on the hash gives me errors. Any pointers for a ruby newby? Not sure if there's a better way. Convert all Hash key to string, so it doesn't choke on the array sort: $foo = inline_template(% scope.to_hash.keys.collect{|x| x.to_s}.sort.each do |k| %%= k %% end %) notice($foo) HTH 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] puppet kick and Could not set 'file on ensure: Is a directory - /var/lib/puppet/facts
On 2011/02/09, at 15:32, DigitalWonk wrote: Hello puppet world, I'm sure this is probably an easy fix, but I cannot seem to resolve this issue. The puppetmaster starts correctly and so does the puppet agent, which receives the update correctly if I restart the puppet agent service manually or during the timed updates; however, if I perform an puppet kick, it just fails with the following error: This is incredibly similar to a problem I've been having with the puppet master[1]. Let me know if you find a resolution.. no one has replied to my posting or to earlier postings about similar issues from other users. [1] http://groups.google.com/group/puppet-users/browse_thread/thread/531d110306636003?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] How to include the Scope(...) in a generated string?
On 10 February 2011 16:04, Nan Liu n...@puppetlabs.com wrote: Not sure if there's a better way. Convert all Hash key to string, so it doesn't choke on the array sort: $foo = inline_template(% scope.to_hash.keys.collect{|x| x.to_s}.sort.each do |k| %%= k %% end %) notice($foo) Thanks Nan - it works perfectly - even if it looks like a bit of voodoo :-) But then, so did perl when I first started using it... 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.