Re: [Puppet Users] Retiring information from collections
On Wed, 2012-10-17 at 11:44 -0700, Maarten Thibaut wrote: > Hi, > > The docs on collections do not mention how information is "retired" from > the puppetmaster (see > http://docs.puppetlabs.com/guides/exported_resources.html). > > To use the example in the above doc, suppose host "foo" is added. We setup > a collector to monitor it through nagios on running on host "bar". > > We now retire host "foo". Nagios keeps complaining about "foo" being down. > How do I "zero out" the information about "foo"? If you're using puppetdb, you can run the following command: # puppet node deactivate foo.example.com This is documented at http://docs.puppetlabs.com/puppetdb/1/maintain_and_tune.html#deactivate-decommissioned-nodes -- Calvin Walton -- 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: Unable to create the rrd graph
Hello David, Which version of puppet? Ans. 3.0.0 What OS? Ans.CentOS release 6.3 (Final) What version of ruby? Ans.ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] On Wednesday, October 17, 2012 10:23:17 AM UTC-4, David wrote: > > On Tuesday, October 16, 2012 9:45:49 AM UTC-4, Nishant Jain wrote: > Hello Everybody, >I have been trying to use the rrdgraph > reporting feature available in puppet. >After performing all the instruction maintained > on the site http://docs.puppetlabs.com/references/latest/report.html , > the rrd directory for the agents get created but they are empty. >When i check the log files in > /var/log/messages, I get to see the following error >Failed to set owner to '0': Operation not > permitted - /var/lib/puppet/rrd/ftldwshost174.wsdev.citrix.com > >RRD library is missing; cannot store metrics > > I have installed the RRD lib and tools using the > following commands :- > yum install rrdtool-ruby > > > I tried installing from the source from the > following url:http://rubyforge.org/projects/rubyrrdtool/ > But it tends to give an error in make > > Can anybody tell me how to resolve this issue. > > Thanks, > Nishant > > > Which version of puppet? > What OS? > What version of ruby? > > In the 2.6 days it would always report the failed to set owner error for > the clients first run. > > > > 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 view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/o0HDuIEZZTAJ. 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] dynamic data in hiera
No, just plain manifests and hiera yaml files. Peter On 17 Oct 2012, at 19:36, Douglas Brancaglion wrote: > i have the same problem with cpu... > > You are using stororeconfigs? > > Douglas Brancaglion > 2012/10/17 pdcleyn > thx! that works! > > However, in testing just now I bumped against something strange. When I add > %{$nodeID} (which I should not), the CPU usage of the puppet master shoots to > 100% and stays there. The client will eventually time out (execution expired) > and the puppet master keeps burning CPU cycles. This is a test setup up, so > no other nodes are connected but one and it is quite reproducable on this > setup. Is this a known issue? > > Peter > > > Op woensdag 17 oktober 2012 16:30:03 UTC+2 schreef R.I. Pienaar het volgende: > > > - Original Message - > > From: "Peter De Cleyn" > > To: puppet...@googlegroups.com > > Sent: Wednesday, October 17, 2012 3:24:30 PM > > Subject: [Puppet Users] dynamic data in hiera > > > > Hi list, > > > > I wondered if I could include 'dynamic' data inside a hiera yaml > > file. I would like to be able to add variables in scope of the > > resource which performs a hiera call. So e.g. > > > > in hiera yaml: > > > > address: "192.168.1.#{nodeID}" > > try %{nodeID} > -- > 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/-/uoayA6QJge8J. > > 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. > > > > -- > Douglas Brancaglion > Security Analist > > -- > 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] Static IP assignment
On Wed, Oct 17, 2012 at 5:02 PM, Matthew Burgess < matthew.2.burg...@gmail.com> wrote: > On Wed, Oct 17, 2012 at 3:49 PM, GordonJB wrote: > > So I take it that when the new VM announces itself to the network, it > will > > go off to the DHCP server and pick a static IP if there is one defined > > already for it's MAC address in a config file somewhere? > > Yes, that's correct. You can also set up a generic pool of addresses > that a VM may get one from if you don't know its MAC address, but then > you're not guaranteed to get the same IP address every time. > > The problem I encountered with VMWare VMs was that the MAC address > wasn't generated until the VM was first powered on, so configuring > DHCP ahead of time wasn't possible. As we didn't have any automated > provisioning set up, the process was to do an initial boot and > interrupt the boot process fairly quickly and power the VM off. Then > I'd grab the MAC address from VSphere and pop it into the DHCP > server's config. > just FYI - Foreman creates the vm, then fetch the vm new mac, create a dhcp entry with that mac, and at the end powers on the vm. Ohad > > > Is there a way to have a MAC address/IP pairing generated if one does > not exist? > > I think the approach I'd take with this is to have a fairly small pool > of addresses used for temporary IPs while a box is being provisioned. > Once the box is up, you could have another puppet module that would > figure out, using some other policy (potentially as simple as doing a > DNS lookup on your VM's hostname), what the IP address of the box > should be, find the MAC address of the NIC (exposed by facter), then > put that in to the DHCP server's config. Automated provisioning > solutions such as Foreman or Razor > (http://puppetlabs.com/blog/puppet-razor-module/) may have > better/other ways of doing it, but that would be my initial approach. > That Razor page also links to Puppetlabs' own DHCP module > (https://github.com/puppetlabs/puppetlabs-dhcp), so I'd be prone to > try that for your DHCP config needs first, before looking at modules > on the Forge. > > Regards, > > Matt. > > -- > 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] PuppetDB Connection Failures
Hi Everyone; I am now getting a puppetdb connection error when I attempt to run #puppet agent --test Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for puppetdev to PuppetDB at puppetdev:8081: Connection refused - connect(2) puppet.conf [master] storeconfigs = true storeconfigs_backend = puppetdb puppetdb.conf [main] server = puppetdev04 port = 8081 JAVA_ARGS="-Xmx192m" I am running 3.0 open source with passenger Using postgres I have the puppetdb daemin running Any advice, as always, would be greatly appreciated! Bee -- 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 DB Schema/Tables
They are created automatically for you when you start the daemon, so no extra work is necessary beyond creating a database and configuring the daemon to properly connect to it! deepak On Wed, Oct 17, 2012 at 12:43 PM, Worker Bee wrote: > I am struggling here a bit can someone please clarify? > > When installing puppetdb from source, how do I create the tables/schema? > I have created puppetdb as instructed in the install docs but, how/when > does the schema and tables get created. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- 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] Troubleshooting Module issues
Thanks for the link! Bee On Wed, Oct 17, 2012 at 2:07 PM, Garrett Honeycutt wrote: > On 10/17/12 7:26 PM, Worker Bee wrote: > > Hi Everyone; > > > > I just stood up a new (open source) 3.0 Puppet Master. > > For some reason, my modules are not getting applied and I cannot figure > > out why. > > > > What logs should I be looking at? Any troubleshooting suggestions? > > > > Thanks so much! > > Bee > > Bee, > > Look for the modulepath in your puppet.conf and ensure that your modules > are in there. Then you should be able to do `puppet apply -v > /module/path//tests/init.pp`. That init.pp is likely a one liner > that does 'include '. > > http://docs.puppetlabs.com/puppet/3/reference/modules_fundamentals.html > > Regards, > -g > > -- > Garrett Honeycutt > > 206.414.8658 > http://puppetlabs.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. > > -- 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] Using collections
Thanks Jeff! I've uploaded my solution to github and the puppet forge. For more information see http://forge.puppetlabs.com/mthibaut/mutual_trust So the way I get data off the client and into the master is by using a > custom fact. The fact gets the data into a variable, then the variable is > used in the (exported) resource declaration. > -- 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/-/NqqjU79AZYcJ. 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] Retiring information from collections
Hi, The docs on collections do not mention how information is "retired" from the puppetmaster (see http://docs.puppetlabs.com/guides/exported_resources.html). To use the example in the above doc, suppose host "foo" is added. We setup a collector to monitor it through nagios on running on host "bar". We now retire host "foo". Nagios keeps complaining about "foo" being down. How do I "zero out" the information about "foo"? -- maarten -- 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/-/_yuzwCxNtWIJ. 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 DB Schema/Tables
I am struggling here a bit can someone please clarify? When installing puppetdb from source, how do I create the tables/schema? I have created puppetdb as instructed in the install docs but, how/when does the schema and tables get created. Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Troubleshooting Module issues
On 10/17/12 7:26 PM, Worker Bee wrote: > Hi Everyone; > > I just stood up a new (open source) 3.0 Puppet Master. > For some reason, my modules are not getting applied and I cannot figure > out why. > > What logs should I be looking at? Any troubleshooting suggestions? > > Thanks so much! > Bee Bee, Look for the modulepath in your puppet.conf and ensure that your modules are in there. Then you should be able to do `puppet apply -v /module/path//tests/init.pp`. That init.pp is likely a one liner that does 'include '. http://docs.puppetlabs.com/puppet/3/reference/modules_fundamentals.html Regards, -g -- Garrett Honeycutt 206.414.8658 http://puppetlabs.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] dynamic data in hiera
i have the same problem with cpu... You are using stororeconfigs? Douglas Brancaglion 2012/10/17 pdcleyn > thx! that works! > > However, in testing just now I bumped against something strange. When I > add %{$nodeID} (which I should not), the CPU usage of the puppet master > shoots to 100% and stays there. The client will eventually time out > (execution expired) and the puppet master keeps burning CPU cycles. This is > a test setup up, so no other nodes are connected but one and it is quite > reproducable on this setup. Is this a known issue? > > Peter > > > Op woensdag 17 oktober 2012 16:30:03 UTC+2 schreef R.I. Pienaar het > volgende: > >> >> >> - Original Message - >> > From: "Peter De Cleyn" >> > To: puppet...@googlegroups.com >> > Sent: Wednesday, October 17, 2012 3:24:30 PM >> > Subject: [Puppet Users] dynamic data in hiera >> > >> > Hi list, >> > >> > I wondered if I could include 'dynamic' data inside a hiera yaml >> > file. I would like to be able to add variables in scope of the >> > resource which performs a hiera call. So e.g. >> > >> > in hiera yaml: >> > >> > address: "192.168.1.#{nodeID}" >> >> try %{nodeID} >> > -- > 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/-/uoayA6QJge8J. > > 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. > -- Douglas Brancaglion Security Analist -- 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] Troubleshooting Module issues
Hi Everyone; I just stood up a new (open source) 3.0 Puppet Master. For some reason, my modules are not getting applied and I cannot figure out why. What logs should I be looking at? Any troubleshooting suggestions? Thanks so much! Bee -- 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] FreeBSD 3.0 Port
Worker Bee wrote: > Hi Everyone; > > Has anyone created a puppet agent 3.0 BSD port? > > I would be very grateful to get my hands on it! > One of my colleagues informs me the FreeBSD 3.0 port should be ready early next week. http://www.freebsd.org/cgi/ports.cgi?query=puppet&stype=all Regards James -- James Turnbull Puppet Labs 1-503-734-8571 To schedule a meeting with me: http://doodle.com/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] Static IP assignment
I'm currently experimenting with an option added in vSphere 5 that has promise: assuming your VM Template has VMware Tools preinstalled you can use the Perl API to run programs directly in the resulting VM. Assuming you have API access (vSphere or commercially licensed ESXi have this, the free version doesn't) you can address the VM by name once it's started and run whatever programs you like. No need for network, etc. See: http://www.virtuallyghetto.com/2011/07/automating-new-integrated-vixguest.html On Wed, Oct 17, 2012 at 8:19 AM, GordonJB wrote: > OK, that all makes sense, thanks for the help! > > On Wednesday, 17 October 2012 16:02:55 UTC+1, Matthew Burgess wrote: >> >> On Wed, Oct 17, 2012 at 3:49 PM, GordonJB wrote: >> > So I take it that when the new VM announces itself to the network, it >> > will >> > go off to the DHCP server and pick a static IP if there is one defined >> > already for it's MAC address in a config file somewhere? >> >> Yes, that's correct. You can also set up a generic pool of addresses >> that a VM may get one from if you don't know its MAC address, but then >> you're not guaranteed to get the same IP address every time. >> >> The problem I encountered with VMWare VMs was that the MAC address >> wasn't generated until the VM was first powered on, so configuring >> DHCP ahead of time wasn't possible. As we didn't have any automated >> provisioning set up, the process was to do an initial boot and >> interrupt the boot process fairly quickly and power the VM off. Then >> I'd grab the MAC address from VSphere and pop it into the DHCP >> server's config. >> >> > Is there a way to have a MAC address/IP pairing generated if one does >> > not exist? >> >> I think the approach I'd take with this is to have a fairly small pool >> of addresses used for temporary IPs while a box is being provisioned. >> Once the box is up, you could have another puppet module that would >> figure out, using some other policy (potentially as simple as doing a >> DNS lookup on your VM's hostname), what the IP address of the box >> should be, find the MAC address of the NIC (exposed by facter), then >> put that in to the DHCP server's config. Automated provisioning >> solutions such as Foreman or Razor >> (http://puppetlabs.com/blog/puppet-razor-module/) may have >> better/other ways of doing it, but that would be my initial approach. >> That Razor page also links to Puppetlabs' own DHCP module >> (https://github.com/puppetlabs/puppetlabs-dhcp), so I'd be prone to >> try that for your DHCP config needs first, before looking at modules >> on the Forge. >> >> Regards, >> >> Matt. > > -- > 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/-/UJQuzY-oj_kJ. > > 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: puppet freezes on FUTEX_WAKE_PRIVATE
Hi, I don't know if this issue is still actual... but I'm suffering the same thing. My puppet agent hangs for ~1 Minute with these messages: > 26297 16:49:19.735059 futex(0x33e6ce7ab0, FUTEX_WAKE_PRIVATE, 1) = 0 > 26297 16:49:19.735127 futex(0x33e6ce7a84, > FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 7, {1350485359, 745041001}, > ) = -1 ETIMEDOUT (Connection timed out) > 26297 16:49:19.745244 futex(0x33e6ce7ab0, FUTEX_WAKE_PRIVATE, 1) = 0 > 26297 16:49:19.745325 futex(0x33e6ce7a84, > FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 9, {1350485359, 755228509}, > ) = -1 ETIMEDOUT (Connection timed out) These lines repeat about 6000 times... Then the agent continues with: > 26265 16:50:22.898764 <... select resumed> ) = 1 (in [4], left {56, > 826791}) > 26265 16:50:22.898853 read(4, "\27\3\1\0\300", 5) = 5 > 26265 16:50:22.898920 read(4, > "\f\233\301\212\366\332X\277Q\273\n5\351\222\27\262\321#2*\350\260xPL\230\372\377!\366\270\355"..., > > 192) = 192 > 26265 16:50:22.899105 select(0, [], [], [], {0, 0}) = 0 (Timeout) > 26265 16:50:22.899271 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 > 26265 16:50:22.899495 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 Have anybody any idea? One thing: It's definitely not the leap-second bug, the machine was born afterwards ;-) best regards, Richard On Monday, July 16, 2012 10:00:54 AM UTC+2, Ernest Beinrohr wrote: > > Same here, we have this issue from the beginning (~3m). I am now forced to > restart the service every hour :( > > On Monday, July 16, 2012 9:56:15 AM UTC+2, Thomas Sturm wrote: >> >> >>> Is this a relativly new issue for you? FUTEX_WAIT reminds me of the leap >>> second kernelbug. If that's the case setting the time will fix the >>> issue. >>> >>> >>> http://serverfault.com/questions/407224/java-process-opends-consumes-all-cpu-futex-flood-how-to-debug-futex >>> >>> >>> -Stefan >>> >>> >> No, we already noticed this some weeks ago, so I don't think it has to do >> with the leap second bug. The process also doesn't consume much CPU, it >> just waits. >> >> Thomas >> > -- 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/-/cAxeG4s2KTUJ. 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] Static IP assignment
OK, that all makes sense, thanks for the help! On Wednesday, 17 October 2012 16:02:55 UTC+1, Matthew Burgess wrote: > > On Wed, Oct 17, 2012 at 3:49 PM, GordonJB > > wrote: > > So I take it that when the new VM announces itself to the network, it > will > > go off to the DHCP server and pick a static IP if there is one defined > > already for it's MAC address in a config file somewhere? > > Yes, that's correct. You can also set up a generic pool of addresses > that a VM may get one from if you don't know its MAC address, but then > you're not guaranteed to get the same IP address every time. > > The problem I encountered with VMWare VMs was that the MAC address > wasn't generated until the VM was first powered on, so configuring > DHCP ahead of time wasn't possible. As we didn't have any automated > provisioning set up, the process was to do an initial boot and > interrupt the boot process fairly quickly and power the VM off. Then > I'd grab the MAC address from VSphere and pop it into the DHCP > server's config. > > > Is there a way to have a MAC address/IP pairing generated if one does > not exist? > > I think the approach I'd take with this is to have a fairly small pool > of addresses used for temporary IPs while a box is being provisioned. > Once the box is up, you could have another puppet module that would > figure out, using some other policy (potentially as simple as doing a > DNS lookup on your VM's hostname), what the IP address of the box > should be, find the MAC address of the NIC (exposed by facter), then > put that in to the DHCP server's config. Automated provisioning > solutions such as Foreman or Razor > (http://puppetlabs.com/blog/puppet-razor-module/) may have > better/other ways of doing it, but that would be my initial approach. > That Razor page also links to Puppetlabs' own DHCP module > (https://github.com/puppetlabs/puppetlabs-dhcp), so I'd be prone to > try that for your DHCP config needs first, before looking at modules > on the Forge. > > Regards, > > Matt. > -- 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/-/UJQuzY-oj_kJ. 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] Static IP assignment
On Wed, Oct 17, 2012 at 3:49 PM, GordonJB wrote: > So I take it that when the new VM announces itself to the network, it will > go off to the DHCP server and pick a static IP if there is one defined > already for it's MAC address in a config file somewhere? Yes, that's correct. You can also set up a generic pool of addresses that a VM may get one from if you don't know its MAC address, but then you're not guaranteed to get the same IP address every time. The problem I encountered with VMWare VMs was that the MAC address wasn't generated until the VM was first powered on, so configuring DHCP ahead of time wasn't possible. As we didn't have any automated provisioning set up, the process was to do an initial boot and interrupt the boot process fairly quickly and power the VM off. Then I'd grab the MAC address from VSphere and pop it into the DHCP server's config. > Is there a way to have a MAC address/IP pairing generated if one does not > exist? I think the approach I'd take with this is to have a fairly small pool of addresses used for temporary IPs while a box is being provisioned. Once the box is up, you could have another puppet module that would figure out, using some other policy (potentially as simple as doing a DNS lookup on your VM's hostname), what the IP address of the box should be, find the MAC address of the NIC (exposed by facter), then put that in to the DHCP server's config. Automated provisioning solutions such as Foreman or Razor (http://puppetlabs.com/blog/puppet-razor-module/) may have better/other ways of doing it, but that would be my initial approach. That Razor page also links to Puppetlabs' own DHCP module (https://github.com/puppetlabs/puppetlabs-dhcp), so I'd be prone to try that for your DHCP config needs first, before looking at modules on the Forge. Regards, Matt. -- 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] FreeBSD 3.0 Port
Hi Everyone; Has anyone created a puppet agent 3.0 BSD port? I would be very grateful to get my hands on it! thanks! Bee -- 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] Static IP assignment
So I take it that when the new VM announces itself to the network, it will go off to the DHCP server and pick a static IP if there is one defined already for it's MAC address in a config file somewhere? Is there a way to have a MAC address/IP pairing generated if one does not exist? Thanks, Gordon On Wednesday, 17 October 2012 15:36:45 UTC+1, Matthew Burgess wrote: > > On Wed, Oct 17, 2012 at 3:13 PM, GordonJB > > wrote: > > I have a server which we're running a lot of VM's on, including a Puppet > > master and various nodes under puppet management. When we add new VM's > with > > VSphere, the new nodes have dynamic IP's. > > > > What we're looking to do is have each VM have a static IP and have these > > automatically assigned from a pool of addresses. I am looking in to > Puppet > > to do this (so i.e. when we add a new puppet node, it is given a static > IP > > address). Is this something that's possible? If so, how would I go about > it? > > I looked into Foreman, but honestly I could never quite figure out if it > was > > what I needed, or get it set up on a server. > > You could use Foreman, as it can manage DHCP for you, but if you're not > planning to use any of its other features, its probably a bit of an > overkill. > > All you need is a DHCP server, where you'd configure your range of static > IP addresses that you want your VMs to sit in, and presumably a list of > MAC address to IP address mappings. > > There are a number of modules on the puppet forge > (http://forge.puppetlabs.com/) concerning DHCP that you could either > make use of directly, or use as inspiration for your own. > > Regards, > > Matt. > -- 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/-/IYCi1DVhxe8J. 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] Static IP assignment
So I take it that when the new VM announces itself to the network, it will go off to the DHCP server and pick a static IP if there is one defined already for it's MAC address in a config file somewhere? Is there a way to have a MAC address/IP pairing generated if one does not exist? On Wednesday, 17 October 2012 15:36:45 UTC+1, Matthew Burgess wrote: > > On Wed, Oct 17, 2012 at 3:13 PM, GordonJB > > wrote: > > I have a server which we're running a lot of VM's on, including a Puppet > > master and various nodes under puppet management. When we add new VM's > with > > VSphere, the new nodes have dynamic IP's. > > > > What we're looking to do is have each VM have a static IP and have these > > automatically assigned from a pool of addresses. I am looking in to > Puppet > > to do this (so i.e. when we add a new puppet node, it is given a static > IP > > address). Is this something that's possible? If so, how would I go about > it? > > I looked into Foreman, but honestly I could never quite figure out if it > was > > what I needed, or get it set up on a server. > > You could use Foreman, as it can manage DHCP for you, but if you're not > planning to use any of its other features, its probably a bit of an > overkill. > > All you need is a DHCP server, where you'd configure your range of static > IP addresses that you want your VMs to sit in, and presumably a list of > MAC address to IP address mappings. > > There are a number of modules on the puppet forge > (http://forge.puppetlabs.com/) concerning DHCP that you could either > make use of directly, or use as inspiration for your own. > > Regards, > > Matt. > -- 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/-/Fv-0D6JNmzsJ. 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] dynamic data in hiera
thx! that works! However, in testing just now I bumped against something strange. When I add %{$nodeID} (which I should not), the CPU usage of the puppet master shoots to 100% and stays there. The client will eventually time out (execution expired) and the puppet master keeps burning CPU cycles. This is a test setup up, so no other nodes are connected but one and it is quite reproducable on this setup. Is this a known issue? Peter Op woensdag 17 oktober 2012 16:30:03 UTC+2 schreef R.I. Pienaar het volgende: > > > > - Original Message - > > From: "Peter De Cleyn" > > > To: puppet...@googlegroups.com > > Sent: Wednesday, October 17, 2012 3:24:30 PM > > Subject: [Puppet Users] dynamic data in hiera > > > > Hi list, > > > > I wondered if I could include 'dynamic' data inside a hiera yaml > > file. I would like to be able to add variables in scope of the > > resource which performs a hiera call. So e.g. > > > > in hiera yaml: > > > > address: "192.168.1.#{nodeID}" > > try %{nodeID} > -- 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/-/uoayA6QJge8J. 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] Static IP assignment
On Wed, Oct 17, 2012 at 3:13 PM, GordonJB wrote: > I have a server which we're running a lot of VM's on, including a Puppet > master and various nodes under puppet management. When we add new VM's with > VSphere, the new nodes have dynamic IP's. > > What we're looking to do is have each VM have a static IP and have these > automatically assigned from a pool of addresses. I am looking in to Puppet > to do this (so i.e. when we add a new puppet node, it is given a static IP > address). Is this something that's possible? If so, how would I go about it? > I looked into Foreman, but honestly I could never quite figure out if it was > what I needed, or get it set up on a server. You could use Foreman, as it can manage DHCP for you, but if you're not planning to use any of its other features, its probably a bit of an overkill. All you need is a DHCP server, where you'd configure your range of static IP addresses that you want your VMs to sit in, and presumably a list of MAC address to IP address mappings. There are a number of modules on the puppet forge (http://forge.puppetlabs.com/) concerning DHCP that you could either make use of directly, or use as inspiration for your own. Regards, Matt. -- 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] dynamic data in hiera
- Original Message - > From: "Peter De Cleyn" > To: puppet-users@googlegroups.com > Sent: Wednesday, October 17, 2012 3:24:30 PM > Subject: [Puppet Users] dynamic data in hiera > > Hi list, > > I wondered if I could include 'dynamic' data inside a hiera yaml > file. I would like to be able to add variables in scope of the > resource which performs a hiera call. So e.g. > > in hiera yaml: > > address: "192.168.1.#{nodeID}" try %{nodeID} -- 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] dynamic data in hiera
Hi list, I wondered if I could include 'dynamic' data inside a hiera yaml file. I would like to be able to add variables in scope of the resource which performs a hiera call. So e.g. in hiera yaml: address: "192.168.1.#{nodeID}" in puppet node test { $nodeID = 5 $ip=hiera(address) } Is such thing possible and if so what is the correct syntax? thanks Peter -- 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: Unable to create the rrd graph
On Tuesday, October 16, 2012 9:45:49 AM UTC-4, Nishant Jain wrote: Hello Everybody, I have been trying to use the rrdgraph reporting feature available in puppet. After performing all the instruction maintained on the site http://docs.puppetlabs.com/references/latest/report.html , the rrd directory for the agents get created but they are empty. When i check the log files in /var/log/messages, I get to see the following error Failed to set owner to '0': Operation not permitted - /var/lib/puppet/rrd/ftldwshost174.wsdev.citrix.com RRD library is missing; cannot store metrics I have installed the RRD lib and tools using the following commands :- yum install rrdtool-ruby I tried installing from the source from the following url:http://rubyforge.org/projects/rubyrrdtool/ But it tends to give an error in make Can anybody tell me how to resolve this issue. Thanks, Nishant Which version of puppet? What OS? What version of ruby? In the 2.6 days it would always report the failed to set owner error for the clients first run. 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.
[Puppet Users] Static IP assignment
I have a server which we're running a lot of VM's on, including a Puppet master and various nodes under puppet management. When we add new VM's with VSphere, the new nodes have dynamic IP's. What we're looking to do is have each VM have a static IP and have these automatically assigned from a pool of addresses. I am looking in to Puppet to do this (so i.e. when we add a new puppet node, it is given a static IP address). Is this something that's possible? If so, how would I go about it? I looked into Foreman, but honestly I could never quite figure out if it was what I needed, or get it set up on a server. Thanks -- 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/-/lfb9HiQnNC4J. 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 3.0 and yum groupinstall
jcbollinger wrote: > > > On Wednesday, October 17, 2012 6:17:49 AM UTC-5, jdehnert wrote: > > I can't seem to find any direct reference yo this in the puppet 3.0 > docs so does anyone know if puppet 3.0 can handle yum groupinstalls > without resorting to using an exec? > > > > No, I'm pretty sure not. Puppet's built-in resources include Package to > model individual packages, but nothing modeling package groups. I think > it would be possible to write a custom resource type to cover that, but > using such resources would require some care to avoid conflicting > declarations of groups and packages within those groups. > I believe this ticket is the closest we've come to this: http://projects.puppetlabs.com/issues/5175 And the workaround suggested there was an exec. Regards James Turnbull -- James Turnbull Puppet Labs 1-503-734-8571 To schedule a meeting with me: http://doodle.com/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.
[Puppet Users] Re: Puppet 3.0 and yum groupinstall
On Wednesday, October 17, 2012 6:17:49 AM UTC-5, jdehnert wrote: > > I can't seem to find any direct reference yo this in the puppet 3.0 docs > so does anyone know if puppet 3.0 can handle yum groupinstalls without > resorting to using an exec? No, I'm pretty sure not. Puppet's built-in resources include Package to model individual packages, but nothing modeling package groups. I think it would be possible to write a custom resource type to cover that, but using such resources would require some care to avoid conflicting declarations of groups and packages within those groups. John -- 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/-/SmasmYgFeVgJ. 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] Benchmark puppetDB
Hi Nan, Thank for your reply, yes that what im talking about, i can't prove just with link to puppet blog, yes you right catalog compile should give our output, do you have some example of one with large number of resources for my testing? Thank for your help Regards, On Tue, Oct 16, 2012 at 1:12 AM, Nan Liu wrote: > On Mon, Oct 15, 2012 at 1:41 AM, shell heriyanto > wrote: > > I know puppetDB its more faster than storeconfigs, but to replace > > storeconfigs with puppetDB into production server > > Its need more explanation than some link from puppetlabs, need prove to > my > > bos and team. > > For testing i just have 1 puppetmaster and 1 and 2 puppet agent, how i > can > > look different performance? > > Its that any idea / or complex puppet stanza to benchmark / compare this > > with storeconfigs? > > A catalog compile should show the difference in speed (especially one > with large number of resources). This is discussed in the Puppet DB > blog post. Also Deepak has great talk at Puppet Conf discussing why > PuppetDB is async (which isn't something quite as easy to benchmark > with just 2 agents): > > http://youtu.be/xw83cRofkpM > > 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. > > -- 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 3.0 and yum groupinstall
I can't seem to find any direct reference yo this in the puppet 3.0 docs so does anyone know if puppet 3.0 can handle yum groupinstalls without resorting to using an exec? -- 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/-/5QboggWCwh4J. 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] want to find the agent utilization
On Wed, Oct 17, 2012 at 9:52 AM, SRIRAAM DHILIBAN wrote: > Is there any way to get the report about how much the agent is utilized > and how much time the agent is powered ON using PE ? . Will the agent send > any report when it is powering ON and powering OFF ..Will the uptime of > each agent gets saved anywhere in the master's database You can use Puppet Dashboard or Foreman for this purpose. > > -- > 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/-/Vc8oDU2sducJ. > 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.