Re: [Puppet Users] Installing Oracle
Hi, [snip] Thanks. One question though. I'm not much of an Oracle expert, and I guess this is more of an Oracle question, than a puppet one, but what did you do to configure Oracle on the command line once it was installed? Oracle actually provides some stuff exactly for this. There is a way to clone an existing oracle install to get up and running on a different machine just by copying over the binaries and running a script called clone.pl to differentiate the new machine/install from the original one. I am planning to use it like this: install the first oracle and prepare it for cloning (see below for instructions), package it in an RPM so I can easily use puppet to get it in place on a new machine and then either write an exec, a custom type/provider to deal with the clone.pl stuff, or just let the DBA's handle it. Information on the cloning stuff: * http://docs.oracle.com/cd/B19306_01/em.102/b16227/oui7_cloning.htm * http://docs.oracle.com/cd/B28359_01/em.111/b31207/oui6_cloning.htm One of the advantages here, is that this is a supported way of customizing. Just my 2c. Kind regards, kristof -- 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] Facter Windows: domain is none
Indeed, I started a VPN connection, and that connection did not have domain set... maybe setting certname in all Windows clients, along with show_diff=false, would be a best practice. Thanks, Mohamed. On Sat, Nov 19, 2011 at 4:04 PM, Josh Cooper j...@puppetlabs.com wrote: Hi Mohamed, On Fri, Nov 18, 2011 at 6:02 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I could swear this worked fine earlier.. Now facter, and hence puppet, do not see the domain name anymore: What could cause this? C:\Tempfacter --version 1.6.2 C:\Tempfacter | findstr kernel kernel = windows kernelmajversion = 6.1 kernelrelease = 6.1.7601 kernelversion = 6.1.7601 C:\Tempfacter fqdn NCS-VDI-05.none C:\Tempfacter hostname NCS-VDI-05 C:\Tempfacter domain none Facter uses WMI to retrieve the DNSDomain property for the first IPEnabled interface, similar to what is done on other platforms. If you've added a new IPEnabled interface that doesn't have a DNSDomain, then facter may be choosing that one first. Try running the following: wmic path Win32_NetworkAdapterConfiguration get caption, ipenabled, dnsdomain Thanks, Josh -- Josh Cooper Developer, Puppet Labs -- 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] Installing Oracle
Oh nice! I'm going to look into this - I hadn't spotted this. My solution was rather basic and once the RPM was installed and the various /etc/ stuff done I was just starting up oracle and then telling the developers to: sudo su - oracle sqlplus database/password @some script the dbas gave us @another script To configure everything. I was planning on figuring out how to feed scripts into sqlplus without doing it by hand so I could automate this, but I hadn't got that far because honestly everything about Oracle makes me want to punch my own face over and over. On Sun, Nov 20, 2011 at 6:05 AM, Kristof Willaert kristof.willa...@gmail.com wrote: Hi, [snip] Thanks. One question though. I'm not much of an Oracle expert, and I guess this is more of an Oracle question, than a puppet one, but what did you do to configure Oracle on the command line once it was installed? Oracle actually provides some stuff exactly for this. There is a way to clone an existing oracle install to get up and running on a different machine just by copying over the binaries and running a script called clone.pl to differentiate the new machine/install from the original one. I am planning to use it like this: install the first oracle and prepare it for cloning (see below for instructions), package it in an RPM so I can easily use puppet to get it in place on a new machine and then either write an exec, a custom type/provider to deal with the clone.pl stuff, or just let the DBA's handle it. Information on the cloning stuff: * http://docs.oracle.com/cd/B19306_01/em.102/b16227/oui7_cloning.htm * http://docs.oracle.com/cd/B28359_01/em.111/b31207/oui6_cloning.htm One of the advantages here, is that this is a supported way of customizing. Just my 2c. Kind regards, kristof -- 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 in a bash script
On Sat, Nov 19, 2011 at 08:25:18AM -0800, Harish Agarwal wrote: I did the echo above and didn't get any output It's as if this command is never encountered. If there are errors thrown during the puppet run, will it throw an error and prevent the next command from executing? If the shell is configured that way: Yes. Try to write the output of »set -o« somewhere and look if »errexit« is set. If that is the case bash will leave the script as soon as a command returns a non-true value. BTW, I do have the full path of the binaries in my shell script now. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/YQwIsn2GjGgJ. 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. pgpwZWPUaQiYs.pgp Description: PGP signature
[Puppet Users] Re: puppet agent 2.7 on windows
Thanks for your reply. Tried this and was able to get the config file. But i now have a strange problem - The agent starts up and in the log file i see the following error - Sun Nov 20 18:39:45 + 2011 /File[C:/ProgramData/PuppetLabs/puppet/ var/facts]/ensure (err): change from directory to file failed: Could not set 'file on ensure: Permission denied - C:/ProgramData/PuppetLabs/ puppet/var/facts Apart from this, i don't see anything in the log files, both on client and server. Also, i don't see this node in the Dashboard too. Any further troubleshooting steps will be very helpful. Regards, Ravi On Nov 18, 7:41 pm, Jacob Helwig ja...@puppetlabs.com wrote: On 2011-11-18 09:15 , Ravi wrote: Hi Team, Tried following the steps herehttp://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows for deploying an agent on windows (windows server 2008 r2) but really finding it hard to make it work (the agent deployment itself went fine after following the steps). I have a working puppet-server on RH 6 and have tested few RH clients which work fine. The very first hurdle is that i don't find a default puppet.conf in c: \programdata\puppetlabs\puppet\etc folder. Only auth.conf is present in this folder. Secondly from the command line when i run puppet config print all , i get a lot of settings. I am really not sure on where it is fetching these settings from ? Basically i need to provide the puppet-server name to the client for it to communicate and register. (In RH this is done in /etc/puppet/ puppet.conf). Tried copying this puppet.conf file to windows server but doesn't work. Any guidance will be very helpful. Cheers, Ravi A (relatively) quick way to get started would be to put the output of 'puppet agent --genconfig' into the file output by 'puppet agent --configprint config', and modifying to taste. The 'puppet config print all' is getting the settings from the internal defaults of Puppet itself, so it's not really fetching them from anywhere. -- Jacob Helwighttp://about.me/jhelwig signature.asc 1KViewDownload- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Puppet changes mount point directory ownership.
I've got a directory, /u01/app that is owned by oracle.oinstall. I have this in my manifest: # # Mount point for the Oracle database. # '/u01/app': device = '/dev/xvdo', atboot = true, ensure = mounted, fstype = 'ext4', options = 'defaults', require = Exec['oracle-app-makefs']; As part of the mount operation, puppet changes the ownership on /u01/app to root.root. Why? How can I stop this? Doug -- 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] Foreman API, problem when creating hostgroups
I am trying to create a hostgroup using the Foreman API (foreman-0.4-0.1rc1.noarch): Using perl v.5.14.2, REST::Client et. al., ending up with sending: POST /hostgroups {name:api-created- hostgroup,architecture_id:,medium_id:,environment_id:,operatingsystem_id:,ptable_id:,puppetmaster:puppet.dev.somewhere.com,root_pass:} which returns a 422-error [that is: 422 Unprocessable Entity (WebDAV) (RFC 4918) - The request was well-formed but was unable to be followed due to semantic errors.] Processing HostgroupsController#create (for 10.20.7.81 at 2011-11-20 22:14:54) [POST] Parameters: {architecture_id=, name=api-created-hostgroup, puppetmaster=puppet.dev.somewhere.com, action=create, root_pass=[FILTERED], medium_id=, ptable_id=, environment_id=, controller=hostgroups, operatingsystem_id=} Failed to save: Name can't be blank or contain trailing white spaces. Completed in 47ms (View: 2, DB: 12) | 422 Unprocessable Entity [http:// puppet.dev.somewhere.com/hostgroups] I can easily do GET /hostgroups and all the other GET's documented in the API, so I _think_ that my usage is correct... but I guess something must be wrong somewhere: Failed to save: Name can't be blank or contain trailing white spaces. I even tried with GET/POST (from LWP) GET http://apiusername:apiuserpassw...@puppet.dev.somewhere.com/hostgroups?format=json works fine echo '{name:api-created- hostgroup,architecture_id:,medium_id:,environment_id:,operatingsystem_id:,ptable_id:,puppetmaster:puppet.dev.somewhere.com,root_pass:}' | POST http://apiusername:apiuserpassw...@puppet.dev.somewhere.com/hostgroups?format=json {errors:[[name,can't be blank or contain trailing white spaces.]]} Hope you can point out my error! Poul -- 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: puppet agent 2.7 on windows
Hi Ravi, On Sun, Nov 20, 2011 at 11:07 AM, Ravi rajan.s.r...@gmail.com wrote: Thanks for your reply. Tried this and was able to get the config file. But i now have a strange problem - The agent starts up and in the log file i see the following error - Sun Nov 20 18:39:45 + 2011 /File[C:/ProgramData/PuppetLabs/puppet/ var/facts]/ensure (err): change from directory to file failed: Could not set 'file on ensure: Permission denied - C:/ProgramData/PuppetLabs/ puppet/var/facts I've run across this a few times, but haven't filed a bug yet. When running puppet agent --genconfig (or config print all), puppet generates 3 fact related settings that prevent the agent from being able to start. I don't think this is specific to Windows, but haven't spent time to narrow it down. Just comment out the property that ends with var/facts and try again. You'll need to do this for 2 other fact related properties, then you should be good. Josh -- Josh Cooper Developer, Puppet Labs -- 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 on windows: File resource problem
On Sat, Nov 19, 2011 at 6:35 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I should note that --test enables --show_diff, even if you add --show_diff false to the command line... took me a while to figure that out! I was hoping to be able to use fc.exe (file compare) on Windows in lieu of diff, but it doesn't work so well. If you know of another utility that comes pre-installed with Windows that can do diffs, I'd love to hear about it. Otherwise, we'll have to set show_diff to false by default on Windows. Thanks, Josh -- Josh Cooper Developer, Puppet Labs -- 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 not picking up new configs
Hi all, I've got a Puppet 2.6.8 setup on RHEL 5.6 with nodes.pp containing a simple import nodes/*.pp and per-node configs in nodes/hostname.pp Occasionally puppet master misses new nodes' files, simply ignores them and the subsequent puppet agent run on the node fails with Could not find default node or by name with All that is needed in such a case is /etc/init.d/puppetmaster restart but it's clearly not an optimal fix. It doesn't happen all the time, in most cases the new node's file is correctly recognised, but in the last case the file was sitting there for 4 days unnoticed and only after puppetmaster restart it was read in. Any idea what's causing it? Is there anything we can do to prevent this from happening again and again? Thanks! Michal -- 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: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry but...bump? On 11/18/2011 02:20 PM, Trevor Vaughan wrote: Sorry if this is a double post, my e-mail glitched on me. Anyway, I'm trying to write a Ruby script that can get all defined nodes and all classes assigned to those nodes. I would prefer to not have to compile a catalog for each node. I tried looking through the puppet/util/rdoc material but it really didn't handle the node entries as far as I could tell and also didn't seem to have a way to get the info without printing it all out. Hopefully, I'm just missing something. Thanks, Trevor - -- 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) iQEcBAEBAgAGBQJOyZvKAAoJECNCGV1OLcypjpIIAI+WmDinF/n8aDcMwDAi/QEw 5hmI/FKYXTsilkQMDC3SmATZD+GckQ3uBfMMFhEYRcFZ9lA/zGscdNJ+/oEbNteb pcUbQUN6ZzoqPMIHYXrYIwiFxu/09gpeIVC5vj6Z64YIE+fw0bndFpId5aTwLxO+ E3ya9UhIPtn2wCIwLYAwymC/++44kWT8Y5EwL76w0GnMR6tbVLrMGA9uTjhEQ0Nu ShdJlkdBfbpmFl8sfTKHaNuFKN99O3GzzOMvsuANuaRf9SwXfP5dzEZJ71CZbpUU LN4mEQdCKIaN/4VjFFhICXNpmYElHMPm3gEyUZfcgtwYM+u9fpsy/x/sDvTHeIU= =61hm -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. attachment: tvaughan.vcf
Re: [Puppet Users] Puppet on windows: File resource problem
One odd thing is that setting show_diff=false in puppet.conf, in agent stanza seems to be ignored, I get the error still. I am not a Windows guy, but I installed GNU diff and it seems like it could be pretty straightforward to deploy: - Get installer : http://gnuwin32.sourceforge.net/downlinks/diffutils.php - Run it: C:\Temp\diffutils-2.8.7-1.exe /silent - Add diff' to puppet.conf: diff = C:\Program Files\GnuWin32\bin\diff et voila. Thanks, Mohamed. On Sun, Nov 20, 2011 at 7:21 PM, Josh Cooper j...@puppetlabs.com wrote: On Sat, Nov 19, 2011 at 6:35 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I should note that --test enables --show_diff, even if you add --show_diff false to the command line... took me a while to figure that out! I was hoping to be able to use fc.exe (file compare) on Windows in lieu of diff, but it doesn't work so well. If you know of another utility that comes pre-installed with Windows that can do diffs, I'd love to hear about it. Otherwise, we'll have to set show_diff to false by default on Windows. Thanks, Josh -- Josh Cooper Developer, Puppet Labs -- 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: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?
Trevor Vaughan wrote: Sorry but...bump? On 11/18/2011 02:20 PM, Trevor Vaughan wrote: Sorry if this is a double post, my e-mail glitched on me. Anyway, I'm trying to write a Ruby script that can get all defined nodes and all classes assigned to those nodes. I would prefer to not have to compile a catalog for each node. I tried looking through the puppet/util/rdoc material but it really didn't handle the node entries as far as I could tell and also didn't seem to have a way to get the info without printing it all out. Sorry missed this one - I do something vaguely similar for the Puppet Rundeck integration - have a look at the code at: https://github.com/jamtur01/puppet-rundeck Others may be able to chime in with better ideas. James -- James Turnbull Puppet Labs 1-503-734-8571 To schedule a meeting with me: http://tungle.me/jamtur01 -- 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-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks James. I knew how to do that, I was actually trying to figure out if I could do it the hard way by delving the manifests instead of having to wait for a system to check in. I'm pretty close to saying that the answer is 'no'. Thanks, Trevor On 11/20/2011 09:04 PM, James Turnbull wrote: Trevor Vaughan wrote: Sorry but...bump? On 11/18/2011 02:20 PM, Trevor Vaughan wrote: Sorry if this is a double post, my e-mail glitched on me. Anyway, I'm trying to write a Ruby script that can get all defined nodes and all classes assigned to those nodes. I would prefer to not have to compile a catalog for each node. I tried looking through the puppet/util/rdoc material but it really didn't handle the node entries as far as I could tell and also didn't seem to have a way to get the info without printing it all out. Sorry missed this one - I do something vaguely similar for the Puppet Rundeck integration - have a look at the code at: https://github.com/jamtur01/puppet-rundeck Others may be able to chime in with better ideas. James - -- 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) iQEcBAEBAgAGBQJOybZGAAoJECNCGV1OLcypYvIH/3DoC9SbHzctKzCYPGCBVjrH A9l7xN09I/zqu7tQpdi25V1yZNH9UgiSLRGGe2clzrP9Ep+4t/8FCD9o2quwOAES mTO0cmJGVgkS6TZRTIRZjkle2r2mRtBO/oB5kuxYFe4dWx8RompxbvVjsPUs/BY8 jG/TcZ7f1KhjnNjwMmRkJQZb4KhENjqS6jxr8xPiS1OKapswr+UuJAz8xqefJww4 hX7UkpJ1FQKDIpc+Utq01cmYRr1Fp5syLRmCSmQ3k0XIIQopMQ4PrjOAO8sfamdQ 77la9dYg0DFEw2AxgOtG6C/NpHmDOAsdizppdM7Og4U5iDUf00HR+2FmH+gi3ds= =TNkm -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. attachment: tvaughan.vcf
Re: [Puppet-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?
Trevor Vaughan wrote: Thanks James. I knew how to do that, I was actually trying to figure out if I could do it the hard way by delving the manifests instead of having to wait for a system to check in. I'm pretty close to saying that the answer is 'no'. Oh I see. You mean before the catalog is compiled? I think the only way to do that IS compile the catalog. But again others may be smarter than me. :) James -- James Turnbull Puppet Labs 1-503-734-8571 To schedule a meeting with me: http://tungle.me/jamtur01 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet not picking up new configs
Hi, Puppetmasterd uses the webrick web server which is meant really for development only. Once you get over a number of nodes you see these issue. Check the puppetlabs docs on scaling for your options. The other issue you are seeing is due to caching. I know this was a recently looked into but I can't remember if it was addressed and in which version (most likely 2.7.x). You can query the project page for current tickets. Cheers, Den On 21/11/2011, at 11:08, Michal Ludvig mlud...@logix.net.nz wrote: Hi all, I've got a Puppet 2.6.8 setup on RHEL 5.6 with nodes.pp containing a simple import nodes/*.pp and per-node configs in nodes/hostname.pp Occasionally puppet master misses new nodes' files, simply ignores them and the subsequent puppet agent run on the node fails with Could not find default node or by name with All that is needed in such a case is /etc/init.d/puppetmaster restart but it's clearly not an optimal fix. It doesn't happen all the time, in most cases the new node's file is correctly recognised, but in the last case the file was sitting there for 4 days unnoticed and only after puppetmaster restart it was read in. Any idea what's causing it? Is there anything we can do to prevent this from happening again and again? Thanks! Michal -- 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 not picking up new configs
On 11/21/2011 04:46 PM, Denmat wrote: Hi, Puppetmasterd uses the webrick web server which is meant really for development only. Once you get over a number of nodes you see these issue. Check the puppetlabs docs on scaling for your options. As I've got only 12 nodes in this project I don't think I ran into a scaling issue yet.. The other issue you are seeing is due to caching. I know this was a recently looked into but I can't remember if it was addressed and in which version (most likely 2.7.x). You can query the project page for current tickets. I can't find anything relevant among the recent ca 2 months of tickets. Any more specific pointers plz? Thanks Michal Cheers, Den On 21/11/2011, at 11:08, Michal Ludvigmlud...@logix.net.nz wrote: Hi all, I've got a Puppet 2.6.8 setup on RHEL 5.6 with nodes.pp containing a simple import nodes/*.pp and per-node configs in nodes/hostname.pp Occasionally puppet master misses new nodes' files, simply ignores them and the subsequent puppet agent run on the node fails with Could not find default node or by name with All that is needed in such a case is /etc/init.d/puppetmaster restart but it's clearly not an optimal fix. It doesn't happen all the time, in most cases the new node's file is correctly recognised, but in the last case the file was sitting there for 4 days unnoticed and only after puppetmaster restart it was read in. Any idea what's causing it? Is there anything we can do to prevent this from happening again and again? Thanks! Michal -- 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] Escaping Quotes
Grrr. I have the exec{} below in my puppet module. How do I escape the \ characters? I've tried every possible combination I can think of. I've used one, I've used two, and I've used THREE \. exec { 'oracle-extract-part': command = /usr/bin/printf \n\np\n2\n2091\n+16384M\nw\n\ | /sbin/fdisk /dev/xvdj, unless = /bin/cat /proc/partitions | /bin/grep ${orcl_ephm_device}2; } With three \, it ends up looking like this in the log: Nov 21 01:27:45 dev-c3-app-15 puppet-agent[3091]: (/Stage[main]/Oracle::Server11g/Exec[oracle-swap-part]/returns) change from notrun to 0 failed: /usr/bin/printf \n\#012p\#0121\#0121\#012+32768M\#012t\#01282\#012w\#012\ | /sbin/fdisk /dev/xvdj returned 1 instead of one of [0] at /etc/puppet/devmp/modules/oracle/manifests/server11g.pp:136 Now... that's obviously not right. How do I escape \ symbols? Doug. -- 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] Foreman API, problem when creating hostgroups
CC foreman users list. 2011/11/20 Poul Sørensen poulhsoren...@gmail.com: I am trying to create a hostgroup using the Foreman API (foreman-0.4-0.1rc1.noarch): Using perl v.5.14.2, REST::Client et. al., ending up with sending: POST /hostgroups {name:api-created- hostgroup,architecture_id:,medium_id:,environment_id:,operatingsystem_id:,ptable_id:,puppetmaster:puppet.dev.somewhere.com,root_pass:} which returns a 422-error [that is: 422 Unprocessable Entity (WebDAV) (RFC 4918) - The request was well-formed but was unable to be followed due to semantic errors.] Processing HostgroupsController#create (for 10.20.7.81 at 2011-11-20 22:14:54) [POST] Parameters: {architecture_id=, name=api-created-hostgroup, puppetmaster=puppet.dev.somewhere.com, action=create, root_pass=[FILTERED], medium_id=, ptable_id=, environment_id=, controller=hostgroups, operatingsystem_id=} Failed to save: Name can't be blank or contain trailing white spaces. Completed in 47ms (View: 2, DB: 12) | 422 Unprocessable Entity [http:// puppet.dev.somewhere.com/hostgroups] it looks like you are missing the hostgroup parameter hash, afair, if you look at the look, all attributes are values of the key hostgroup. btw: make sure that you are using the right content-type (application/json) and pass along the user credentials (as basic auth) if they are required in your setup. Ohad btw: 0.4. has been released and has a lot of enchantments in the api area, might worth upgrading. I can easily do GET /hostgroups and all the other GET's documented in the API, so I _think_ that my usage is correct... but I guess something must be wrong somewhere: Failed to save: Name can't be blank or contain trailing white spaces. I even tried with GET/POST (from LWP) GET http://apiusername:apiuserpassw...@puppet.dev.somewhere.com/hostgroups?format=json works fine echo '{name:api-created- hostgroup,architecture_id:,medium_id:,environment_id:,operatingsystem_id:,ptable_id:,puppetmaster:puppet.dev.somewhere.com,root_pass:}' | POST http://apiusername:apiuserpassw...@puppet.dev.somewhere.com/hostgroups?format=json {errors:[[name,can't be blank or contain trailing white spaces.]]} Hope you can point out my error! Poul -- 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.