[Puppet Users] vmware-vcsa module !!!
I have a esx host installed and a standalone centos server. what I am trying to do is via foreman - Setting up the module for centos server - So that it can install vcsa on my esx server. I end up getting error as Info: Applying configuration version '1412754558' Debug: PuppetX::Puppetlabs::Transport::Ssh initializing connection to: 192.168.1.26 Debug: Executing on 192.168.1.26: vpxd_servicecfg eula read Debug: Execution result: sh: vpxd_servicecfg: not found Error: /Stage[main]/Vcsas/Vcsa[demo]/Vcsa_eula[demo]: Could not evaluate: odd number of arguments for Hash /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `[]' /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `exists?' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve' Please node this is a vanilla esx server, do I need to do anything else before applying the module.. any help is greatly appreciated. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMX448TuwbK7yS6ZayP-%2BLv6SUAYB_JmsSajWBt0Cq8piQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] vmware-vcsa module !!!
I am using the module https://forge.puppetlabs.com/vmware/vcsa Hv just added the following to the end of init.pp so that I can use this define as a class class vcsas($user_data) { create_resources('vcsa',$user_data) } From foreman I am passing the following parameters demo: username: root password: vmware server: 192.168.1.26 db_type: embedded capacity: m On Wed, Oct 8, 2014 at 6:25 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello Rakesh, Please post your code that this error comes from. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c56382ed-2573-4f31-ab89-e60a08b010a3%40googlegroups.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMU0zvob3uJCyi-cOkr%2BswnQn8Rh6v0SwH0tBxbp0zjxyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] vmware-vcsa module !!!
Nan.. Thanks a lot for your help. On Wed, Oct 8, 2014 at 8:08 PM, Nan Liu nan@gmail.com wrote: On Wed, Oct 8, 2014 at 1:49 AM, Rakesh Kathpal rkath...@gmail.com wrote: I have a esx host installed and a standalone centos server. what I am trying to do is via foreman - Setting up the module for centos server - So that it can install vcsa on my esx server. I end up getting error as Info: Applying configuration version '1412754558' Debug: PuppetX::Puppetlabs::Transport::Ssh initializing connection to: 192.168.1.26 Debug: Executing on 192.168.1.26: vpxd_servicecfg eula read Debug: Execution result: sh: vpxd_servicecfg: not found Error: /Stage[main]/Vcsas/Vcsa[demo]/Vcsa_eula[demo]: Could not evaluate: odd number of arguments for Hash /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `[]' /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `exists?' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve' Please node this is a vanilla esx server, do I need to do anything else before applying the module.. The module is intended to run against a vcenter server appliance (5.0-5.5 versions), not an ESX server. You will need to use ovftool or other means to import the appliance first. vpxd_servicecfg is a command that should be available on the vcenter appliance. There's also an outstanding issue with 5.5 related to a sshd setting, there's more info here: https://github.com/vmware/vmware-vcsa/issues/19 HTH, Nan -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CACqVBqDpgMBpGO3dn2Vg8ER%2B_rfPu6ZiFLwa2J3ZnuO60XxvjA%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CACqVBqDpgMBpGO3dn2Vg8ER%2B_rfPu6ZiFLwa2J3ZnuO60XxvjA%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMX8ejR1pZf_PA2jLBMak-N2zOZnY7TXUupPRz2qdOrCxw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Puppet Manifest Involving Multiple Nodes
Thanks a ton Felix.. On Mon, Sep 15, 2014 at 8:10 PM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hi, designs like this are rather difficult to achieve with Puppet. They rely on the paradigm of a scripting engine, with Puppet is not! Puppet works best once you attain a state of affairs which you can confidently apply to your agents. It would perhaps be easiest to do the preliminary steps outside of Puppet. 1. Deploy files to the test instance. 2. Validate, rollback on failure, bail out. 3. Push files to Puppet VCS. Puppet will can then handle the production deployment for you. HTH, Felix On 09/15/2014 04:13 PM, Rakesh Kathpal wrote: Any help ? On Fri, Sep 12, 2014 at 1:45 PM, Rakesh Kathpal rkath...@gmail.com mailto:rkath...@gmail.com wrote: Hi, I need to copy of set of files to 10 / 20 nodes but the process is as follows Copy all files on 1 agent Validate the files If successful only then copy files to other servers else revert changes on first node itself and stop I understand that I can do this for one node but am really confused as to how can control the behavior on multiple nodes. Thanks, RK. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5416FA70.8010609%40alumni.tu-berlin.de . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWxEG3V7E-21oYTuqz6sEf11p62vXcDgWe4X-r8R7TKHg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Puppet Manifest Involving Multiple Nodes
Any help ? On Fri, Sep 12, 2014 at 1:45 PM, Rakesh Kathpal rkath...@gmail.com wrote: Hi, I need to copy of set of files to 10 / 20 nodes but the process is as follows Copy all files on 1 agent Validate the files If successful only then copy files to other servers else revert changes on first node itself and stop I understand that I can do this for one node but am really confused as to how can control the behavior on multiple nodes. Thanks, RK. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWL-yF6BHZBaFqKASavxX%2BkW3AO8HW6KywC0qd2w0aS0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Puppet Manifest Involving Multiple Nodes
Hi, I need to copy of set of files to 10 / 20 nodes but the process is as follows Copy all files on 1 agent Validate the files If successful only then copy files to other servers else revert changes on first node itself and stop I understand that I can do this for one node but am really confused as to how can control the behavior on multiple nodes. Thanks, RK. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMU7zOqF72yED99b0xvaC52i%3DPgEgdV%3Ds%2B%2BpAc4kr_zn7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: postrun command in windows
Dear Josh, Thanks a lot for the update. I understand this seems to be a bug.. have seen the ticket open on this.. Wanted to know if there any workaround? Thanks Regards, Rakesh K. On Fri, Jul 4, 2014 at 12:46 AM, Josh Cooper j...@puppetlabs.com wrote: On Wed, Jul 2, 2014 at 11:26 AM, Rakesh Kathpal rkath...@gmail.com wrote: Yes.. it works perfectly from commandline.. On 2 Jul 2014 19:33, Brahim Dagher brahim.dag...@gmail.com wrote: Do you have success running 'puppet facts upload' from the command line? On Tuesday, July 1, 2014 7:38:40 AM UTC-4, Rakesh K wrote: Hi, My puppet.conf on windows looks like the following [main] server=mypuppetmaster.com pluginsync=true autoflush=true environment=production certname =mypuppetagent.com report=true postrun_command='puppet facts upload' When I am trying the puppet run, I am getting the error below *Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.* I even tried using the complete path but still same issue... I am using puppet 3.4.2., please let me know if there is any resolution for this issue.. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b8935d03-9dd1-48e4-9efe-c26877624003%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/b8935d03-9dd1-48e4-9efe-c26877624003%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW_hshroTEyathLMM%3DiL7kPgn0zZzn5hMfU4zMJ3XDa8g%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAEJrXMW_hshroTEyathLMM%3DiL7kPgn0zZzn5hMfU4zMJ3XDa8g%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. This is https://tickets.puppetlabs.com/browse/PUP-1431. If you use process monitor, you will likely see puppet is calling CreateProcess with a program named puppet facts upload instead of the puppet program with arguments facts upload. Josh -- Josh Cooper Developer, Puppet Labs *Join us at PuppetConf 2014 http://www.puppetconf.com/, September 20-24 in San Francisco* *Register by July 31st to take advantage of the Early Bird discount https://puppetconf2014.eventbrite.com/?discount=EarlyBird **—**save $249!* -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3D9GDccKZUhbvN8qCOr_m%2BY1rTV84wzXBvWrHgpnE%3D%2Bhg%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3D9GDccKZUhbvN8qCOr_m%2BY1rTV84wzXBvWrHgpnE%3D%2Bhg%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWWjA5_W7HaMa_3OWXPYjz1B5y2zDS9f9%3DShQQgnTaEAg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: postrun command in windows
Appreciate any insight on this issue??? On Tue, Jul 1, 2014 at 5:08 PM, Rakesh Kathpal rkath...@gmail.com wrote: Hi, My puppet.conf on windows looks like the following [main] server=mypuppetmaster.com pluginsync=true autoflush=true environment=production certname =mypuppetagent.com report=true postrun_command='puppet facts upload' When I am trying the puppet run, I am getting the error below *Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.* I even tried using the complete path but still same issue... I am using puppet 3.4.2., please let me know if there is any resolution for this issue.. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMV8F4wvvd%2BZ5VNvG0rDSAnE_qs74%3DmR01LN7bmqhq7EbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: postrun command in windows
Yes.. it works perfectly from commandline.. On 2 Jul 2014 19:33, Brahim Dagher brahim.dag...@gmail.com wrote: Do you have success running 'puppet facts upload' from the command line? On Tuesday, July 1, 2014 7:38:40 AM UTC-4, Rakesh K wrote: Hi, My puppet.conf on windows looks like the following [main] server=mypuppetmaster.com pluginsync=true autoflush=true environment=production certname =mypuppetagent.com report=true postrun_command='puppet facts upload' When I am trying the puppet run, I am getting the error below *Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.* I even tried using the complete path but still same issue... I am using puppet 3.4.2., please let me know if there is any resolution for this issue.. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b8935d03-9dd1-48e4-9efe-c26877624003%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/b8935d03-9dd1-48e4-9efe-c26877624003%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW_hshroTEyathLMM%3DiL7kPgn0zZzn5hMfU4zMJ3XDa8g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] New Puppet book: Extending Puppet
Congratulations Alessandro ... just ordered the ebook.. looks promising. - Rakesh K. On Sat, Jun 28, 2014 at 6:52 AM, Rich Burroughs r...@richburroughs.com wrote: Yes congrats :) The table of contents looks like it covers a lot of useful material. Rich On Thursday, June 26, 2014, Alessandro Franceschi a...@lab42.it wrote: Sorry for the shameless promotion, but I suppose this might be of interest for the readers of this group. After more that 6 months of pain, efforts, frustration and excitement it's finally out a book where I tried to pour all my knowledge and experience on Puppet. It's oriented to people who have already some experience on Puppet (for beginners there are definitively more fitting titles around) and I hope it can give some useful information also to experienced users. Find more about it at: http://www.packtpub.com/extending-puppet/book You can get a free chapter here: http://bit.ly/1qbxWZy I'd take this occasion to thank some members of this group for their support, in particular: Brice Figureau, who has been a great technical reviewer and has prevented me from making some big mistakes. His support and help has been decisive. Nigel Kersten, who has written the Foreword and has given me very useful hints and feedback. Joshua Hoblitt, who has reviewed some chapters and has given great advices on the language and the contents. Daniele Sluijters, who has been a very precise technical reviewer for some chapters. Jon Forrest, who has slashed the language of my first drafts and opened my eyes on what it means to write in proper english (I obviously haven't learnt how to do it properly, but thanks to the reviewers the final output has been definitively more linguistically appropriate than the first drafts). I hope this book can help people who work with Puppet and, if you happen to get it, please give feedback, in any way you find appropriate. Thank you Alessandro Franceschi -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/30744a77-5c0b-4a14-94ff-6fa4cd364b32%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/30744a77-5c0b-4a14-94ff-6fa4cd364b32%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAPGcbtA7KiUNmmJTR3HH0D8rsCzQDS51OOvOx9FE0-dAQQzV6w%40mail.gmail.com https://groups.google.com/d/msgid/puppet-users/CAPGcbtA7KiUNmmJTR3HH0D8rsCzQDS51OOvOx9FE0-dAQQzV6w%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMXKpmpL2di8pioYqZgF6CgX6mJn%3Dzf_1t9tQJk1hLbNKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] postrun command in windows
Hi, My puppet.conf on windows looks like the following [main] server=mypuppetmaster.com pluginsync=true autoflush=true environment=production certname =mypuppetagent.com report=true postrun_command='puppet facts upload' When I am trying the puppet run, I am getting the error below *Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.* I even tried using the complete path but still same issue... I am using puppet 3.4.2., please let me know if there is any resolution for this issue.. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMUAYNGOuNNchtuKPQqH0%3DqFBeJietXBA1sokppAYk4fFA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] PuppetDB connection issue - Failed to connect!!
Santanu,. can you please try and update your jetti.ini as follows [jetty] host = 0.0.0.0 port = 8080 *ssl-host = 0.0.0.0* ssl-port = 8081 ssl-key = /etc/puppetdb/ssl/private.pem ssl-cert = /etc/puppetdb/ssl/public.pem ssl-ca-cert = /etc/puppetdb/ssl/ca.pem Restart puppetdb and verify... On Wed, Jun 18, 2014 at 5:03 AM, Sans r.santanu@gmail.com wrote: The puppetdb log is attached in the previous post. And, here is the curl output: root@puppet:~# curl ' http://puppet.internal:8080/v2/metrics/mbean/java.lang:type=Memory' { ObjectPendingFinalizationCount : 0, HeapMemoryUsage : { committed : 86220800, init : 8052480, max : 194641920, used : 41882456 }, NonHeapMemoryUsage : { committed : 63504384, init : 24313856, max : 224395264, used : 63257288 }, Verbose : false, ObjectName : java.lang:type=Memory -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/36c1d8af-e7bb-4d95-960f-f00db7dc460e%40googlegroups.com https://groups.google.com/d/msgid/puppet-users/36c1d8af-e7bb-4d95-960f-f00db7dc460e%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMUf75zSg1w7PUS3Zb0ufx1WnZtxvcO6W%2Bjdhdbj_7-%3DyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
Ken / Deepak, first of all thanks a ton for the great help. It seems there is some issue with the puppet facts upload command I already have the certname server configuration directives declared in the puppet.conf but for some reason the same are not being recognized by the puppet facts command When I am trying to run *# puppet facts upload* ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) *Error: getaddrinfo: Name or service not knownError: Try 'puppet help facts upload' for usage* But when I try to run *# puppet facts upload --server=puppet_master_server --certname=agent_certname*ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) *Notice: Uploaded facts for 'agent_certname'* Also I tried to use the postrun_command within the puppet.conf on the client node but I end up getting the same error. Please let me know if there is something that I am missing, as I am planning to either use puppet facts upload within my manifest or in the postrun command. Awaiting your reply. Thanks Regards, Rakesh K. On Wed, Jun 11, 2014 at 8:21 PM, Ken Barber k...@puppetlabs.com wrote: My colleague Deepak just brought to my attention another mechanism which works like option #3 without the hard work: puppet facts upload But you'll need to ensure your auth.conf on your puppet master has a snippet like the following: path ~ ^/facts/([^/]+)$ method save allow $1 Without it, you'll get a permission denied error. ken. On Wed, Jun 11, 2014 at 2:22 PM, Ken Barber k...@puppetlabs.com wrote: Sorry for re-opening a old thread but I am still struggling on related topic.. Step 1: I am copying some .rb files to the /usr/lib/ruby/site_ruby/ruby/1.8/facter/ folder Step 2: A facter command gives me the values for all new custom / external facts But the values for new facts will not get into puppetdb untill a next agent run... Is there a way to run puppet from within a manifest or any other way to force replace facts remotely on the agent ??? * You could run things in noop mode potentially, which would force a fact submission. * You could run puppet apply, and use a masterless way of submitting facts also (setup would be required: http://docs.puppetlabs.com/puppetdb/2.0/connect_puppet_apply.html). * You could submit a POST request in a script for your facts against the master, throwing away the catalog (saves on the noop processing) * You could sumibt the facts manually to PuppetDB yourself, here is a rough script I use for testing which you could modify to match your needs: https://gist.github.com/kbarber/6190c64335613111c9df Each one has its own pros and cons. In particular some of these require direct communication between the node and the PDB instance which might not be desirable in some cases. None of these things have common solutions today that we (the PDB maintainers) maintain ourselves, but a few people have done things like the above in the past in their own bespoke way. ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTne8zw%3DcZDHg4cdBhK6T0EcC5axvWKQs7ALxcX6WB4aig%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMXuu5A5ETD0QbR28TY259kGgE-YQpwHYJCwCBbh5964Gg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
*puppet.conf on master * [main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl certname = puppet dns_alt_names = puppetmaster.mydomain.com, puppetdb.mydomain.com pluginsync = true autosign = true node_terminus = exec external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL= http://puppetadmin:myp...@puppetdb.mydomain.com:3000 /usr/share/puppet-dashboard/bin/external_node reports = store, http reporturl = http://puppetadmin:myp...@puppetdb.mydomain.com:3000/reports/upload storeconfigs = true storeconfigs_backend = puppetdb usecacheonfailure = false *working puppet.conf on agent after your suggestion*[main] # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl server = myagent.mydomain.com certname = myagentcertname report = true [agent] # The file in which puppetd stores a list of the classes # associated with the retrieved configuratiion. Can be loaded in # the separate ``puppet`` executable using the ``--loadclasses`` # option. # The default value is '$confdir/classes.txt'. classfile = $vardir/classes.txt # Where puppetd caches the local configuration. An # extension indicating the cache format is added automatically. # The default value is '$confdir/localconfig'. localconfig = $vardir/localconfig The files above are my current master and agent configs, I have updated the agent config after your suggestion and it seems to be working great... But now I will need to update my puppet agent config(for the above change and to include postrun_command for puppet facts upload) on almost 2000 agents.. I understand that I can do it via puppet itself but each server has a different certname I guess.. I will need to use templates... but is it correct that any change to puppet.conf is parsed immediately and does not require a restart. Thanks a lot for your help once again.. Regards, Rakesh K. On Thu, Jun 12, 2014 at 5:54 PM, Ken Barber k...@puppetlabs.com wrote: first of all thanks a ton for the great help. No problem, I'm glad Deepak chimed in about 'facts upload' its a much better way to do it. It seems there is some issue with the puppet facts upload command I already have the certname server configuration directives declared in the puppet.conf but for some reason the same are not being recognized by the puppet facts command When I am trying to run # puppet facts upload ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) This is a mysql error ... btw. Let see your puppet.conf on the agent your testing on, it looks almost as if you have same old storeconfig setups remaining somewhere. Check in particular for db* style settings ... ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Error: getaddrinfo: Name or service not known Error: Try 'puppet help facts upload' for usage But when I try to run # puppet facts upload --server=puppet_master_server --certname=agent_certname ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Notice: Uploaded facts for 'agent_certname' Also I tried to use the postrun_command within the puppet.conf on the client node but I end up getting the same error. Yeah, I'll need to see the puppet.conf on the agent you are trying to run the facts upload specifically. Remember 'puppet facts upload' doesn't use your [agent] section (its not an agent is it?), so you might need to specify the server in your [main]. ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTnCZJR_z7hWJeZbAhmbKREp6rz%2BUJ73c3%2B0fZZYQ3ZYng%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit
Re: [Puppet Users] puppetdb question !!!
I need to use certnames as we are an IDC and need to handle large number of instances and have a unique naming convention for each device. We cannot force hostnames on servers(belonging to customers) so our unique device name is forced on the certname. Anyways.. Can you also shed some light on the mysql error that I am getting... On Thu, Jun 12, 2014 at 6:22 PM, Ken Barber k...@puppetlabs.com wrote: The files above are my current master and agent configs, I have updated the agent config after your suggestion and it seems to be working great... But now I will need to update my puppet agent config(for the above change and to include postrun_command for puppet facts upload) on almost 2000 agents.. I understand that I can do it via puppet itself but each server has a different certname Weird that the certname default doesn't match what you expect. This is normally a combination of the facter outputs for 'hostname' and 'domain'. There are ways to adjust the box (like ensuring the search/domain fields in resolv.conf return the correct domain for example) to return the correct certname, and its often better to do it this way, but it might affect other things in strange ways. Its a complex-ish topic ... if you wanted to go down this route instead of changing your certname in puppet.conf we can probably help. What surprises me is that the agent doesn't need this ... Otherwise yeah, it can be changed with templates, I'm less of a fan of forcing the certname in most cases, better to fix it so the defaults are correct if possible. Ideally the box after provisioning (eg. razor/foreman/cobbler) should have all the correct settings on it so certname is always correct straight after provisioning, that way you avoid chicken-and-egg scenarios with trying to adjust 'certname' post-provisioning. I guess.. I will need to use templates... but is it correct that any change to puppet.conf is parsed immediately and does not require a restart. I believe this to be true? But I'm no puppet expert these days so things might have changed :-). Thanks a lot for your help once again.. Your welcome. ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTnu2bU3X2uu6PJbAn8vEpqB7D7Ht4KDAqpLF6nLPU-TRw%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMUEN2uHKu-Q6beW5h-0g%3DtcZpz_YkhHPp%3DW3CnQ9eG9-w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
This doesnt only happen in case of a puppet facts upload but even in a case of puppet agent --test And yes the master configs that I have provided are correct ones that I have been using now. On Thu, Jun 12, 2014 at 6:39 PM, Ken Barber k...@puppetlabs.com wrote: Also, try running puppet facts upload --debug --trace and see if that gives us more info. On Thu, Jun 12, 2014 at 2:08 PM, Ken Barber k...@puppetlabs.com wrote: I need to use certnames as we are an IDC and need to handle large number of instances and have a unique naming convention for each device. We cannot force hostnames on servers(belonging to customers) so our unique device name is forced on the certname. Fair enough. Anyways.. Can you also shed some light on the mysql error that I am getting... I can't see it in the posted configs ... not sure. This would normally happen if you had configured legacy storedconfigs but I can't see this in your puppet.conf files you've provided. As something to at least try, I'd try commenting out anything to do with mysql in your puppet.conf perhaps, like the ENC settings and the report settings on your master? Otherwise I'm short of ideas TBH. Are the puppet.conf files you provided accurate? ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTkomRvHu9T_m36P5DCrMtYcCi6ghc3Oys%3DZ%3DJJjrS7kfw%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWCmH9a9cH5GY-qxR7_4GxmrWtCAveKbw71_hFqcuYBhA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] puppetdb command api !!!
I am trying to execute the command api for puppetdb with the command replace facts curl -G -H Accept: application/json 'http://localhost:8080/v2/commands' --data-urlencode 'payload={command:replace facts,version: 2,payload:{name:\node_name\}}' As output of the above command just a uuid is printed, but I seem to get some errors in the logs for illegal argument... So will this replace all facts with their latest values ?? Or is there another way to do that ? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMVLafySLa9-uy-dFOd%2B2ojXzgwr%3DykK1Fe5GzGWqrvjfg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Default report to be Json
Hi, I keep getting the following error in my logs and according to what I am seeing around the performance improves alot when we change the report format and agent server communication to JSON YAML in network requests is deprecated and will be removed in a future version I am using puppet master and agent on 3.4.2 Can someone please guide how will I be able to change this setting for dashboard as well as for puppet. Thanks, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWWnh7u4bNMWY9c--e4i0cYjEAjBQhXq_wvMHELJ_0P8g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
Hi , I am still struggling on the replace fact part, is there any way to force replace_facts for a node. I am actually adding new facts by coping them directly into the facter dir but unfortunately they are not getting replicated to puppetdb. Is there any way to force puppetdb to replace_facts. This is really urgent for me, any help is greatly appreciated. Regards, Rakesh K. On Wed, Mar 12, 2014 at 1:25 PM, Rakesh Kathpal rkath...@gmail.com wrote: https://tickets.puppetlabs.com/browse/PDB-508 On Tue, Mar 11, 2014 at 10:28 PM, Ken Barber k...@puppetlabs.com wrote: Just a suggestion .. it will really good if you can add field date added to the certname table just reporting purposes. Feel free to raise that as a feature request here Rakesh: https://tickets.puppetlabs.com/browse/PDB ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNT%3D6LBjFCDrym8auMw7ufxMwBmV_d6x-yTO4CxdMPkdKqQ%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW8zjnUaAaQ%3DJapew%2Bja5fnAJdy1G6fTyO%3Dws%3D4%2Bt4ZLg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
I am not copying the facts to the facts.d folder.. but i am creating the facts as .rb files and placing them into /usr/lib/ruby/site_ruby/ruby/1.8/facter/. On Sun, Mar 30, 2014 at 8:48 PM, Christopher Wood christopher_w...@pobox.com wrote: After copying these facts into /etc/facter/facts.d, are you kicking off another puppet agent run? Facts get sent to the master on each agent run, not before. http://docs.puppetlabs.com/guides/custom_facts.html#viewing-fact-values On Sun, Mar 30, 2014 at 07:35:54PM +0530, Rakesh Kathpal wrote: Hi , I am still struggling on the replace fact part, is there any way to force replace_facts for a node. I am actually adding new facts by coping them directly into the facter dir but unfortunately they are not getting replicated to puppetdb. Is there any way to force puppetdb to replace_facts. This is really urgent for me, any help is greatly appreciated. Regards, Rakesh K. On Wed, Mar 12, 2014 at 1:25 PM, Rakesh Kathpal [1] rkath...@gmail.com wrote: [2]https://tickets.puppetlabs.com/browse/PDB-508 On Tue, Mar 11, 2014 at 10:28 PM, Ken Barber [3]k...@puppetlabs.com wrote: Just a suggestion .. it will really good if you can add field date added to the certname table just reporting purposes. Feel free to raise that as a feature request here Rakesh: [4]https://tickets.puppetlabs.com/browse/PDB ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to [5]puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit [6] https://groups.google.com/d/msgid/puppet-users/CAE4bNT%3D6LBjFCDrym8auMw7ufxMwBmV_d6x-yTO4CxdMPkdKqQ%40mail.gmail.com . For more options, visit [7]https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to [8]puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit [9] https://groups.google.com/d/msgid/puppet-users/CAEJrXMW8zjnUaAaQ%3DJapew%2Bja5fnAJdy1G6fTyO%3Dws%3D4%2Bt4ZLg%40mail.gmail.com . For more options, visit [10]https://groups.google.com/d/optout. References Visible links 1. mailto:rkath...@gmail.com 2. https://tickets.puppetlabs.com/browse/PDB-508 3. mailto:k...@puppetlabs.com 4. https://tickets.puppetlabs.com/browse/PDB 5. mailto:puppet-users%2bunsubscr...@googlegroups.com 6. https://groups.google.com/d/msgid/puppet-users/CAE4bNT%3D6LBjFCDrym8auMw7ufxMwBmV_d6x-yTO4CxdMPkdKqQ%40mail.gmail.com 7. https://groups.google.com/d/optout 8. mailto:puppet-users+unsubscr...@googlegroups.com 9. https://groups.google.com/d/msgid/puppet-users/CAEJrXMW8zjnUaAaQ%3DJapew%2Bja5fnAJdy1G6fTyO%3Dws%3D4%2Bt4ZLg%40mail.gmail.com?utm_medium=emailutm_source=footer 10. https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140330151817.GA24743%40iniquitous.heresiarch.ca . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMU%2B%2BtaYG6q-NtLvnLpQp%2BFQ%2B1P%2BhrCiG%3DPPw_yYR%3D-jrA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] YAML in network requests is deprecated
Hi, I see that this issues has been fixed in puppet 3.3. https://projects.puppetlabs.com/issues/21427 I am using puppet 3.4 but still receiving a lot of warning related to this. Can someone please suggest how can fix this issue on my master. Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMU6DEyS8nmZVw-xmjD2oV3HdwsZYMHxb0NHgrtuQX8hSg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] HP-UX Puppet Init Script !!
Thanks a ton garrett. I need to only run puppet client on hp-ux. On Mon, Mar 24, 2014 at 2:15 AM, Garrett Honeycutt g...@garretthoneycutt.comwrote: On 3/22/14, 5:33 PM, Rakesh Kathpal wrote: Hi, I have been successfully able to install puppet on hu-ux, all I am looking is to run puppet agent from this server. Can someone please help me with the init script for puppet agent on HP-UX ?? It would be great if you have one, else if you can point me to the correct directions for creating one. Thanks, Rakesh K Hi Rakesh, Might I suggest not running puppet as a service at all and instead running it from cron. Doing so provides some more flexibility and helps protect against memory leaks. My module[1] for managing puppet would likely work for you with minimal modification. Would be glad to work with you on it to support HP-UX. [1] - https://github.com/ghoneycutt/puppet-module-puppet Best regards, -g -- Garrett Honeycutt @learnpuppet Puppet Training with LearnPuppet.com Mobile: +1.206.414.8658 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/532F47D6.5000206%40garretthoneycutt.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMXifKtgw1X63gGq94f0VoyZrk073YEefs96EWv1y%2BJA7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: HP-UX Puppet Init Script !!
looks great.. !!! Thanks a lot Ryan.. On Mon, Mar 24, 2014 at 6:40 PM, Ryan Anderson ryan.c.ander...@gmail.comwrote: A puppet init script would essentially be: case $1 in start) echo Starting puppet agent puppet agent --verbose ;; stop) echo Stopping puppet agent kill `cat /var/run/puppet/agent.pid` ;; esac To make it work on HP-UX, copy the init script into /sbin/init.d, then create sym-links in /sbin/rc2.d/S99puppet and /sbin/rc0.d/K01puppet that point to it. On Saturday, March 22, 2014 11:33:54 AM UTC-5, Rakesh K wrote: Hi, I have been successfully able to install puppet on hu-ux, all I am looking is to run puppet agent from this server. Can someone please help me with the init script for puppet agent on HP-UX ?? It would be great if you have one, else if you can point me to the correct directions for creating one. Thanks, Rakesh K -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/718530ff-ebf6-4c52-8fe2-29fac4ffdd44%40googlegroups.comhttps://groups.google.com/d/msgid/puppet-users/718530ff-ebf6-4c52-8fe2-29fac4ffdd44%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMX2N%3Dq-%3D81NoSNT1fgACz5E_j7rP0RN_ydu%2B0zUJSbdqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] HP-UX Puppet Init Script !!
Hi, I have been successfully able to install puppet on hu-ux, all I am looking is to run puppet agent from this server. Can someone please help me with the init script for puppet agent on HP-UX ?? It would be great if you have one, else if you can point me to the correct directions for creating one. Thanks, Rakesh K -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMXVgfa1QTGb4pV2SdCREpe1eJeR5BsNmtZKCvr9A1vn0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
https://tickets.puppetlabs.com/browse/PDB-508 On Tue, Mar 11, 2014 at 10:28 PM, Ken Barber k...@puppetlabs.com wrote: Just a suggestion .. it will really good if you can add field date added to the certname table just reporting purposes. Feel free to raise that as a feature request here Rakesh: https://tickets.puppetlabs.com/browse/PDB ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNT%3D6LBjFCDrym8auMw7ufxMwBmV_d6x-yTO4CxdMPkdKqQ%40mail.gmail.com . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMUuNe%2B-cQ79N3qxQNKDMQ2gK0a7KNo97nYv6YKPzOnkyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] puppetdb question !!!
Hi, Its been some time that I have been working with puppet. I have recently installed puppetdb and am using puppetdb APIs to fetch the data about facts etc.. Few things that I have noticed are 1) Whenever I add a custom fact, I do not see it in the postgresql db until I delete all the facts for the particular certname from db (manually). So that in the next puppet run on the client, all facts will be carried into the puppetdb. So is it the way, puppetdb is designed to work or am I missing something here? 2) Is there any way to know if a new node has started using puppet. I know I can get a node list using the puppetdb API, but is there any way to know amongst these nodes, which are new. Or is there any other way to get newly added nodes in puppetdb / puppet?? Appreciate any help on these queries. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW7MvdaPTGcPjoZTJB4SkNGCy_wLcjpHNXwa%3D6hsTg5jQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] puppetdb question !!!
Deepak.. Thanks alot for the info, really appreciate your help. 1) Regarding replace facts, I will recheck the issue and get back to you if it still seems to be a bug. 2) The thing is I need to run a report for the newly added report, so I am running a poller script which will poll every 5 mins and check for the new node, as soon it gets a new node it will run a report based on the facts received. Though I can get a list using the api or bu directly accessing the certname table in puppetdb but there is no way to know which are new nodes unless I sync the tables locally (which is again a tedious task). Just a suggestion .. it will really good if you can add field date added to the certname table just reporting purposes. Regards, Rakesh K. On Tue, Mar 11, 2014 at 12:12 AM, Deepak Giridharagopal dee...@puppetlabs.com wrote: On Mon, Mar 10, 2014 at 6:30 AM, Rakesh Kathpal rkath...@gmail.comwrote: Hi, Its been some time that I have been working with puppet. I have recently installed puppetdb and am using puppetdb APIs to fetch the data about facts etc.. Few things that I have noticed are 1) Whenever I add a custom fact, I do not see it in the postgresql db until I delete all the facts for the particular certname from db (manually). So that in the next puppet run on the client, all facts will be carried into the puppetdb. So is it the way, puppetdb is designed to work or am I missing something here? That is not the way it's designed to work, and I strongly recommend against direct manipulation of postgres (at the point you're messing with the db directly, your changes are outside of puppetdb's control...so caveat emptor). PuppetDB stores new facts for a node whenever a puppetmaster sends new facts to PuppetDB. That normally happens when you run puppet on the node itself...it runs facter, sends facts to the master, master sends a copy of those facts to puppetdb. You can verify that facts are going to puppetdb by looking at puppetdb.log; it should indicate that we've received a replace facts command for the node in question. You can also check the API directly. On your puppetdb node, curl http://localhost:8080/v3/nodes/foobar.com . That will dump out information about when we've last received data for that node. If it appears that puppetdb is getting updated facts for a node, but it doesn't include a custom fact, and forcibly clearing out the data results in that fact appearing, then I'd file a bug and include all of that information (including what version of puppetdb you're on). 2) Is there any way to know if a new node has started using puppet. I know I can get a node list using the puppetdb API, but is there any way to know amongst these nodes, which are new. Or is there any other way to get newly added nodes in puppetdb / puppet?? There's no mechanism currently in PuppetDB to get notified when a new node is added. PuppetDB tracks the timestamps of the latest data (catalogs, facts, reports) for each node, and that doesn't include the first time we ever got data for a node. If you can describe the desired API in more detail, this would make a good feature request. Appreciate any help on these queries. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW7MvdaPTGcPjoZTJB4SkNGCy_wLcjpHNXwa%3D6hsTg5jQ%40mail.gmail.comhttps://groups.google.com/d/msgid/puppet-users/CAEJrXMW7MvdaPTGcPjoZTJB4SkNGCy_wLcjpHNXwa%3D6hsTg5jQ%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOjOXY19k5jQHtTtgb_zidSVeyJB6N5SVWdQWCajCKCM5jBQUg%40mail.gmail.comhttps://groups.google.com/d/msgid/puppet-users/CAOjOXY19k5jQHtTtgb_zidSVeyJB6N5SVWdQWCajCKCM5jBQUg%40mail.gmail.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWqipycaPSYNrZBRY_kkkneUJ%2BWzdxGeZ0oq-E8DMiM7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Sending Mail from puppet master !!!
Hi, The functionality that I am trying to achieve is Step 1: Running a command / script triggered by a puppet run on the client Step 2: Gathering the output of script Step 3: Send the output via email to external source Please note here, I am not sure about email settings on the client, so I would need the email to be sent out from the master and the output here is not a puppet run report but an output from my script that has executed on the client. I understand that I am expecting something which is not a core puppet deliverable but I strongly believe that this can be achieved via puppet. In case we are not able to send email, if we can atleast carry the output to the master by any chance... Awaiting any suggestions / hacks Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMVwEOg%3DnKaURxOzecisEJcy847xRnqjkNmiaDPGEjJLoA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Sending Mail from puppet master !!!
Johan, Thanks for your reply. I had tried to explore this option but it seems, the report/output that is generated is only related and limited to the puppet run. Even for the script / command that I will be running via puppet, the report just contains whether it was successfully executed or not, I do not get the details output of the script. - Rakesh K. On Thu, Feb 20, 2014 at 2:34 PM, Johan De Wit jo...@open-future.be wrote: Hi, http://docs.puppetlabs.com/references/latest/report.html#tagmail If you can get the output in execution report on your node, you could use the tagmail configuration on the master to send email to the right resource. That's the first place I would look at for a possible solution Grts Johan On 02/20/2014 09:46 AM, Rakesh Kathpal wrote: Hi, The functionality that I am trying to achieve is Step 1: Running a command / script triggered by a puppet run on the client Step 2: Gathering the output of script Step 3: Send the output via email to external source Please note here, I am not sure about email settings on the client, so I would need the email to be sent out from the master and the output here is not a puppet run report but an output from my script that has executed on the client. I understand that I am expecting something which is not a core puppet deliverable but I strongly believe that this can be achieved via puppet. In case we are not able to send email, if we can atleast carry the output to the master by any chance... Awaiting any suggestions / hacks Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/CAEJrXMVwEOg%3DnKaURxOzecisEJcy847xRnqjkNmi aDPGEjJLoA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013 (PCP006) _ Open-Future Phone +32 (0)2/255 70 70 Zavelstraat 72 Fax +32 (0)2/255 70 71 3071 KORTENBERG Mobile+32 (0)474/42 40 73 BELGIUM http://www.open-future.be _ Next Events: Zabbix Certified Training | http://www.open-future.be/ zabbix-certified-training-10-till-12th-march Zabbix for Large Environments Training | http://www.open-future.be/ zabbix-large-environments-training-13-till-14th-march Puppet Intruction Course | http://www.open-future.be/ puppet-introduction-course-14th-april Puppet Advanced Training | http://www.open-future.be/ puppet-advanced-training-15-till-17th-april Subscribe to our newsletter | http://eepurl.com/BUG8H -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/ msgid/puppet-users/5305C514.3090709%40open-future.be. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW4dTuvnYdEFzv-euSmy0bGPQyTJo1y2k19tF0DaZN1Pg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Sending Mail from puppet master !!!
Looks good.. Tks a lot Johan Martin.. On Thu, Feb 20, 2014 at 3:13 PM, Martin Alfke tux...@gmail.com wrote: Hi, On 20 Feb 2014, at 10:21, Rakesh Kathpal rkath...@gmail.com wrote: Johan, Thanks for your reply. I had tried to explore this option but it seems, the report/output that is generated is only related and limited to the puppet run. Even for the script / command that I will be running via puppet, the report just contains whether it was successfully executed or not, I do not get the details output of the script. Is the script executed using exec resource type? The exec resource can be configured to generate log output. http://docs.puppetlabs.com/references/latest/type.html#exec-attributes logoutput = # Whether to log command output in addition to... hth, Martin - Rakesh K. On Thu, Feb 20, 2014 at 2:34 PM, Johan De Wit jo...@open-future.be wrote: Hi, http://docs.puppetlabs.com/references/latest/report.html#tagmail If you can get the output in execution report on your node, you could use the tagmail configuration on the master to send email to the right resource. That's the first place I would look at for a possible solution Grts Johan On 02/20/2014 09:46 AM, Rakesh Kathpal wrote: Hi, The functionality that I am trying to achieve is Step 1: Running a command / script triggered by a puppet run on the client Step 2: Gathering the output of script Step 3: Send the output via email to external source Please note here, I am not sure about email settings on the client, so I would need the email to be sent out from the master and the output here is not a puppet run report but an output from my script that has executed on the client. I understand that I am expecting something which is not a core puppet deliverable but I strongly believe that this can be achieved via puppet. In case we are not able to send email, if we can atleast carry the output to the master by any chance... Awaiting any suggestions / hacks Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMVwEOg%3DnKaURxOzecisEJcy847xRnqjkNmiaDPGEjJLoA%40mail.gmail.com . For more options, visit https://groups.google.com/groups/opt_out. -- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013 (PCP006) _ Open-Future Phone +32 (0)2/255 70 70 Zavelstraat 72 Fax +32 (0)2/255 70 71 3071 KORTENBERG Mobile+32 (0)474/42 40 73 BELGIUM http://www.open-future.be _ Next Events: Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-10-till-12th-march Zabbix for Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-13-till-14th-march Puppet Intruction Course | http://www.open-future.be/puppet-introduction-course-14th-april Puppet Advanced Training | http://www.open-future.be/puppet-advanced-training-15-till-17th-april Subscribe to our newsletter | http://eepurl.com/BUG8H -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5305C514.3090709%40open-future.be . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMW4dTuvnYdEFzv-euSmy0bGPQyTJo1y2k19tF0DaZN1Pg%40mail.gmail.com . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/A9B45011-C8F3-4D35-A448-33EA3F13C050%40gmail.com . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users
Re: [Puppet Users] Upgrade from Puppet 2.7.20 to latest !!!
Thanks a lot Pete for your really helpful reply.. :) On Fri, Nov 15, 2013 at 4:49 PM, Peter Meier peter.me...@immerda.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But the problem is that I have a lot of modules (downloaded from forge and few of my own) which used by hundreds of puppet clients. I need to know 1) Will the functionality of these modules get affected after this upgrade ? There might be some impact. A good thing is to already have cleaned up all deprecation warnings on the master, before going to 3.. If you want to be really sure, compile your catalogs once with 2.7 and then once with 3.3.2 and diff them so you might get an idea what could go wrong. If your modules are in a good shape, then the you likely won't anythig. There is Volcane's catalog-diff for that and there is a wrapper script that can assist you doing that: https://github.com/duritong/puppet_catalog_test But you will have to investigate some time to! 2) Other than ritual of being on the latest verison, are there actually any benefits of upgrading? speed. 3) Any other precautions that I should take during / before / after the upgrade ? Get rid off all deprecation warnings. ~pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlKGAywACgkQbwltcAfKi39V6gCfav2RRfwlRZWM8X2oESphZ6OT b2kAn1B7vmSSgPZTarhVpr2xWZFSmPuy =Mqha -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52860331.50401%40immerda.ch . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWWw53D%3DLd9F9TomSMtch8ZBF20ukfLt4W8jxba0Weyhg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] need help !!!
Hi, I am using puppet 2.7.20 server on linux and windows client with same version of puppet. Until recently everything was working fine but lately I have started getting the error below [0m [0;32minfo: Caching catalog for node_windows [0m [0;37mdebug: Puppet::Type::Exec::ProviderShell: feature posix is missing [0m [0;37mdebug: Puppet::Type::Exec::ProviderPosix: feature posix is missing [0m [0;37mdebug: Creating default schedules [0m *[1;35merr: Got an uncaught exception of type SystemStackError: stack level too deep [0m *[0;37mdebug: Storing state [0m [0;32minfo: Creating state file C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml [0m [0;37mdebug: Stored state in 0.16 seconds [0m [0;36mnotice: Finished catalog run in 0.23 seconds [0m [0;37mdebug: Value of 'preferred_seriali Please note I use a new windows client every time and do unattended installation of the puppet client and then run the puppet command to fetch the catalog. Request you guys to help out asap. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMWNnmEa7t%3DPsgzt2Au4hJaD34i1mmA84F0jU3_c%3D0xq0Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: need help !!!
One thing that I have observed is.. I get the error only during the first run... when I execute the puppet command for the second time, it runs without any issues... On Thu, Oct 31, 2013 at 4:10 PM, Rakesh Kathpal rkath...@gmail.com wrote: Hi, I am using puppet 2.7.20 server on linux and windows client with same version of puppet. Until recently everything was working fine but lately I have started getting the error below [0m [0;32minfo: Caching catalog for node_windows [0m [0;37mdebug: Puppet::Type::Exec::ProviderShell: feature posix is missing [0m [0;37mdebug: Puppet::Type::Exec::ProviderPosix: feature posix is missing [0m [0;37mdebug: Creating default schedules [0m *[1;35merr: Got an uncaught exception of type SystemStackError: stack level too deep [0m *[0;37mdebug: Storing state [0m [0;32minfo: Creating state file C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml [0m [0;37mdebug: Stored state in 0.16 seconds [0m [0;36mnotice: Finished catalog run in 0.23 seconds [0m [0;37mdebug: Value of 'preferred_seriali Please note I use a new windows client every time and do unattended installation of the puppet client and then run the puppet command to fetch the catalog. Request you guys to help out asap. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEJrXMUY0auOmGMPmrZcfN0ePkMfOiH1EgwwCCV8KJN6AxenKQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Windows Reboot
Dear James, So how exactly can I use this resource while doing my operations.. Say.. I want to perform the operation in a following sequence 1) Puppet Run starts 2) Install MSI 3) Reboot 4) Apply another puppet manifest 5) Puppet Run Completes Thanks a lot for your help. Regards, Rakesh K. On Wed, Mar 20, 2013 at 10:12 AM, Josh Cooper j...@puppetlabs.com wrote: On Monday, March 11, 2013, ad wrote: James, Not yet, see http://projects.puppetlabs.com/issues/19162. My (ugly) approach for this now is a refreshonly exec with a delayed shutdown. I'd like to see a reboot = true or such for all resources that tell the agent to reboot after a run is complete when that resource is applied. I did something similar, reboot resource type that is only triggered via notify/subscribe relationship from another resource. See https://github.com/joshcooper/puppetlabs-reboot Adam, I'm curious about the approach you're talking about also. If reboot was a metaparameter, I don't think it would be possible to specify the reboot message or reason code (for different resources) But perhaps that's not really important? Adam On Monday, March 11, 2013 6:55:46 AM UTC-5, jim wrote: Hi Guys I'm using puppet for my windows configuration, and was wondering when installing / configuration something windowys, it requires a reboot, how does this effect the puppet run e.g. join to domain ? e.g. removing old version of software e.g. host re-name Is there options you can tell puppet its going to reboot and to finish that puppet run upon restart Regards James -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
That will be really great. Awaiting the implementation details from your side. Thanks Regards, Rakesh K. On Thu, Mar 14, 2013 at 6:08 PM, Rich Siegel rismo...@gmail.com wrote: I do it with an exec resource using PowerShell provider and get-webfile. Works well and fast. If interested I can post the implementation details. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Copying a 900 mb file to Windows !!!
Hi, I am writing a puppet manifest to install a service pack on windows, what I observe is that in case the exe file is withing 50 - 70 Mb the transfer to windows happens without any issues. But the current service pack windows6.1-KB976932-X64.exe is around 900 Mb. My manifest is as follows file { 'c:/temp/windows6.1-KB976932-X64.exe': ensure = 'file', mode = '0755', owner = 'Administrator', group = 'Administrators', source = 'puppet:///modules/hotfix/windows6.1-KB976932-X64.exe', } I am getting the error below err: /Stage[main]/Hotfix::Win2k8x64_sp1/File[c:/windows6.1-KB976932-X64.exe]/ensure: change from absent to file failed: Could not set 'file on ensure: end of file reached at /etc/puppet/modules/hotfix/manifests/win2k8x64_sp1.pp:26 Please suggest -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Copying a 900 mb file to Windows !!!
Tks for your reply joe.. The windows machine in this case is a VM.. so I guess I will update the template with SP1 instead of installing it on the fly. Thanks and Regards, Rakesh K. On Wed, Mar 13, 2013 at 10:16 PM, joe lava...@gmail.com wrote: I wouldn't even do this with a file resource. I'd write a small script to pull it down from a web server and install it then have puppet run that as an exec. I'd also have the script remove the update when it's done since you probably don't want 900mb on disk for no reason. On Wednesday, March 13, 2013 7:38:49 AM UTC-6, Rakesh K wrote: Hi, I am writing a puppet manifest to install a service pack on windows, what I observe is that in case the exe file is withing 50 - 70 Mb the transfer to windows happens without any issues. But the current service pack windows6.1-KB976932-X64.exe is around 900 Mb. My manifest is as follows file { 'c:/temp/windows6.1-KB976932-**X64.exe': ensure = 'file', mode = '0755', owner = 'Administrator', group = 'Administrators', source = 'puppet:///modules/hotfix/** windows6.1-KB976932-X64.exe', } I am getting the error below err: /Stage[main]/Hotfix::**Win2k8x64_sp1/File[c:/** windows6.1-KB976932-X64.exe]/**ensure: change from absent to file failed: Could not set 'file on ensure: end of file reached at /etc/puppet/modules/hotfix/**manifests/win2k8x64_sp1.pp:26 Please suggest -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Windows Fact for architecture !!!
Thanks a ton.. josh and Adam.. Will try your suggestions. Thanks Regards, Rakesh K. On Mon, Mar 11, 2013 at 9:15 AM, Josh Cooper j...@puppetlabs.com wrote: The current windows architecture and hardwaremodel facts are incorrect when running a Windows 32-bit OS on 64-bit hardware. This is http://projects.puppetlabs.com/issues/16948 to be released in facter 1.7 Josh On Sun, Mar 10, 2013 at 10:34 AM, ad adam.denn...@gmail.com wrote: You may have better luck using the os_architecture fact from winfacts. https://forge.puppetlabs.com/adenning/winfacts hth, Adam On Sunday, March 10, 2013 1:22:13 AM UTC-6, Rakesh K wrote: Hi, I am trying to write a manifests for windows and need to do a sequence of things based on architecture.. but the current windows facts like architecture etc are giving me ambiguous results... I am using puppet version 2.7.20 and prefect to use the same version for a while.. Can someone suggest a solution for this issue... Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Windows Fact for architecture !!!
Hi, I am trying to write a manifests for windows and need to do a sequence of things based on architecture.. but the current windows facts like architecture etc are giving me ambiguous results... I am using puppet version 2.7.20 and prefect to use the same version for a while.. Can someone suggest a solution for this issue... Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] How we can mangae Puppet node Automatic updates
In the file /etc/puppet/puppet.conf In the [main] section. Thanks Regards, Rakesh K. On Thu, Feb 28, 2013 at 9:19 PM, Jithin Xavier jithin.xavi...@gmail.comwrote: Thanks Matt, On which file I should edit to update runinterval? Thanks Jithin On Thu, Feb 28, 2013 at 8:56 PM, Matthew Burgess matthew.2.burg...@gmail.com wrote: On Thu, Feb 28, 2013 at 3:18 PM, Jithin Xavier jithin.xavi...@gmail.com wrote: Hi All, Puppet node is automatically updating every 30 minutes,Is there anyway to update that time span? Yes, this is set in the agent's puppet.conf file: http://docs.puppetlabs.com/references/3.1.latest/configuration.html#runinterval Regards, Matt. -- You received this message because you are subscribed to a topic in the Google Groups Puppet Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/d0n0k02crgI/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- -Regards Jithin Xavier +91-9739505163 Skype- jithinxavi in.linkedin.com/in/jithinxavier/ -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Puppet Mssql Module
Hi, I am trying to use the module * https://github.com/puppetlabs/puppetlabs-mssql* for my windows 2003 server and am getting the error below - err: /Stage[main]/Mssql/User[SQLSVC]/ensure: change from absent to present fail d: User update failed: SetInfo OLE error code:800708C5 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. err: /Stage[main]/Mssql/User[SQLASSVC]/ensure: change from absent to present fa led: User update failed: SetInfo OLE error code:800708C5 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. --- *Please note I have already taken care of the dism[netfx3] dependency and also install the neccessary hotfix required for sql installation. I am trying to install mssql 2008 R2.* *And my puppet version is 2.7.20.* Anyone having any info. on this then please help me out... Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Question Windows manifests
Dear Felix, Thanks a ton for your reply and great piece of information. I will do the needful on my side. Thanks again, Regards, Rakesh K. On Wed, Feb 20, 2013 at 3:41 PM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hi, On 02/20/2013 06:43 AM, Rakesh Kathpal wrote: file { 'install': path = c:\install.bat, ... exec {'install_sw': file { 'remove': ensure = absent, ... I am quite sure that there is something syntactically wrong my code but donno what? Can someone please shed some light on this? Actually, sorry to say this, but there's something conceptually wrong with this. You're walking into the C-like programming language trap. The thing is - the puppet DSL is nothing like traditional, statement based programming. The above are not three statements that are executed in order. They are supposed to be three properties of system state. You are telling puppet that you want it to make sure three things hold true: 1. c:\install.bat is present and has specific content 2. c:\install.bat is getting executed 3. c:\install.bat is not on your system 1 and 3 are conflicting. Puppet cannot maintain a state in which both are true. You will have a hard time bending puppet towards this behaviour. I suggest you just get rid of the final file resource and let the install.bat remain (but do choose a location that is better suited to store such internal administrative data). Also please note that you probably either want to add refreshonly to your exec resource, but that is rather unclean design (if the execution fails once, puppet will not know it needs to re-run because the file will not notify it again). The better alternative is a sensible creates or unless condition. HTH, Felix -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Question Windows manifests
Hi, I am creating a file resouce which is bat file, and I am running the file to perform some operation. I need to know how do I delete the file after the operation is performed... the code I tried is as follows class rk{ file { c:\install.bat: ensure = present, content = template(rk/inst.txt), notify = Exec['install'] } exec {'install': command = c:\install.bat, timeout = 0, require = File['c:\install.bat'], } file { c:\install.bat: ensure = absent, } } Now it gives me a duplicate declaration error for resource file I understand its very logical to get this error but can someone please give some pointers to resolve this issue. Thanks a lot. Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Question Windows manifests
thanks a ton.. I will give it try and revert... On Tue, Feb 19, 2013 at 7:58 PM, Bernd Adamowicz bernd.adamow...@esailors.de wrote: You could try: ** ** file { ‘delete-install-bat’: ensure = absent, path = ‘c:\install.bat’, require = Exec[‘install’], } ** ** Cheers, Bernd *From:* puppet-users@googlegroups.com [mailto: puppet-users@googlegroups.com] *On Behalf Of *Rakesh Kathpal *Sent:* Dienstag, 19. Februar 2013 15:22 *To:* puppet-users@googlegroups.com *Subject:* [Puppet Users] Question Windows manifests ** ** Hi, I am creating a file resouce which is bat file, and I am running the file to perform some operation. I need to know how do I delete the file after the operation is performed... the code I tried is as follows class rk{ file { c:\install.bat: ensure = present, content = template(rk/inst.txt), notify = Exec['install'] } exec {'install': command = c:\install.bat, timeout = 0, require = File['c:\install.bat'], } file { c:\install.bat: ensure = absent, } } Now it gives me a duplicate declaration error for resource file I understand its very logical to get this error but can someone please give some pointers to resolve this issue. Thanks a lot. Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Question Windows manifests
unfortunately getting a different error now err: Failed to apply catalog: Cannot alias File[install] to [c:/install.bat] at /etc/puppet/modules/rk/manifests/init.pp:8; resource [File, c:/install.bat] already declared at /etc/puppet/modules/rk/manifests/init.pp:20 --- my manifests looks like follows -- class rk { file { 'install': path = c:\install.bat, ensure = present, content = template(rk/inst.txt), notify = Exec['install_sw'] } exec {'install_sw': command = c:\install.bat, timeout = 0, require = File['install'], notify = File['remove'] } file { 'remove': ensure = absent, path = c:\install.bat, require = Exec['install_sw'] } } --- I am quite sure that there is something syntactically wrong my code but donno what? Can someone please shed some light on this? Thanks Regards, Rakesh K. On Wed, Feb 20, 2013 at 10:32 AM, Rakesh Kathpal rkath...@gmail.com wrote: thanks a ton.. I will give it try and revert... On Tue, Feb 19, 2013 at 7:58 PM, Bernd Adamowicz bernd.adamow...@esailors.de wrote: You could try: ** ** file { ‘delete-install-bat’: ensure = absent, path = ‘c:\install.bat’, require = Exec[‘install’], } ** ** Cheers, Bernd *From:* puppet-users@googlegroups.com [mailto: puppet-users@googlegroups.com] *On Behalf Of *Rakesh Kathpal *Sent:* Dienstag, 19. Februar 2013 15:22 *To:* puppet-users@googlegroups.com *Subject:* [Puppet Users] Question Windows manifests ** ** Hi, I am creating a file resouce which is bat file, and I am running the file to perform some operation. I need to know how do I delete the file after the operation is performed... the code I tried is as follows class rk{ file { c:\install.bat: ensure = present, content = template(rk/inst.txt), notify = Exec['install'] } exec {'install': command = c:\install.bat, timeout = 0, require = File['c:\install.bat'], } file { c:\install.bat: ensure = absent, } } Now it gives me a duplicate declaration error for resource file I understand its very logical to get this error but can someone please give some pointers to resolve this issue. Thanks a lot. Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] IIS / ASP.Net Module for Windows 2003 / windows 2008
Dear Ryan Simon, Thanks for your reply. The thing is I have already tested the dism module on windows 2008 R2 and am satisfied. But I am looking for iis and asp.net module for windows 2003 and windows 2008. Thanks Regards, Rakesh K. On Wed, Feb 13, 2013 at 4:56 AM, Ryan Coleman r...@puppetlabs.com wrote: On Thu, Feb 7, 2013 at 3:18 AM, Rakesh Kathpal rkath...@gmail.com wrote: I am looking for IIS and asp.net module for windows 2003 windows 2008, can anyone please help ? Hi. For starters, this example from the dism module will install iis and .net. dism { 'NetFx3': ensure = present, } dism { 'IIS-WebServer': ensure = present, answer = 'C:\answer\iis.xml', } What exactly would you like to accomplish? The iis module you reference can take you into configuring application pools and so on. -- Ryan Coleman | Modules Forge | @ryanycoleman | ryancoleman in #puppet -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: IIS / ASP.Net Module for Windows 2003 / windows 2008
Can someone please help me out with this issue? On Thu, Feb 7, 2013 at 6:39 PM, Rakesh Kathpal rkath...@gmail.com wrote: Please see.. if you can help me out in this issue... Appreciate your efforts.. -- Forwarded message -- From: Rakesh Kathpal rkath...@gmail.com Date: Thu, Feb 7, 2013 at 4:48 PM Subject: IIS / ASP.Net Module for Windows 2003 / windows 2008 To: puppet-users@googlegroups.com Hi, I am looking for IIS and asp.net module for windows 2003 windows 2008, can anyone please help ? I came across the module https://github.com/puppetlabs/puppetlabs-dismbut it works only for windows 2008 R2 Also I had a look at the module https://github.com/simondean/puppet-iisbut not sure what should I put it in my nodes.pp for it to work. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] IIS / ASP.Net Module for Windows 2003 / windows 2008
Hi, I am looking for IIS and asp.net module for windows 2003 windows 2008, can anyone please help ? I came across the module https://github.com/puppetlabs/puppetlabs-dism but it works only for windows 2008 R2 Also I had a look at the module https://github.com/simondean/puppet-iis but not sure what should I put it in my nodes.pp for it to work. Thanks Regards, Rakesh K. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] JBOSS installation and Configuration through puppet
Hi, Have you made any changes recently in last 2 days or so... I haven't pulled the module after the netinstall fix you have done... The init.d startup issue still persists.. rest all has been fixed. Also there issues if unzip or wget are not installed on the client machine. Thanks Regards, Rakesh K. On Thu, Jan 24, 2013 at 6:54 PM, Alessandro Franceschi a...@lab42.it wrote: Hi Rakesh, I just would like to know if the latest commits on GitHub have solved your problem. Best regards, al On Friday, January 18, 2013 12:39:47 PM UTC+1, Rakesh K wrote: Hi, I am a big fan of example42 modules and using most of them, currently I am facing issues with the Jboss module I ma using the latest jboss build from example42 and latest puppi modules as well.. but still getting the following errors -- info: Caching catalog for ABC info: Applying configuration version '1358506111' notice: /Stage[main]/Jboss::User/User[**jboss]/ensure: created notice: /Stage[main]/Jboss::Install/**File[jboss_link]/ensure: created notice: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Retrieve http://download.jboss.org/**jbossas/6.1/jboss-as-** distribution-6.1.0.Final.zip]/**returns:http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.zip%5D/returns:executed successfully notice: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]/returns: executed successfully info: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]: Scheduling refresh of Exec[PostExtract jboss-as-distribution-6.1.0.**Final.zip] info: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]: Scheduling refresh of Exec[Chown jboss-as-distribution-6.1.0.**Final.zip] err: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[PostExtract jboss-as-distribution-6.1.0.**Final.zip]: Failed to call refresh: Working directory '/opt/jboss-as-distribution-6.**1.0.Final' does not exist err: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Chown jboss-as-distribution-6.1.0.**Final.zip]: Failed to call refresh: chown -R root:root /opt/jboss-as-distribution-6.**1.0.Final returned 1 instead of one of [0] at /etc/puppet/modules/puppi/**manifests/netinstall.pp:118 notice: /Stage[main]/Jboss::Service/**File[jboss.init]/ensure: created notice: /Stage[main]/Jboss::Service/**Service[jboss]/ensure: ensure changed 'stopped' to 'running' notice: Finished catalog run in 49.37 seconds my node manifest is node 'ABC' { class { 'jboss': } Currently I am trying the module on centos but will need it immediately for suse/ubuntu and rhel as well please help.. Thanks in advance... On Fri, Jan 11, 2013 at 10:42 PM, Alessandro Franceschi a...@lab42.itwrote: There were some bugs in the module for some not well tested installation options (the module can install version 4, 5, 6 and 7 either via package, upstream source or puppi (from upstream files) and I personally used only one of these combinations). These problem should have been now be fixed, find the updated version on GitHub: https://github.com/example42/**puppet-jbosshttps://github.com/example42/puppet-jboss Please let me know if there are other issues you find with the module. For quicker replies on problems with Example42 modules I suggest to open issues via GitHub. Best regards Alessandro Franceschi / Example42 Il giorno giovedì 10 gennaio 2013 20:30:12 UTC+1, Andrey Kouznetsov ha scritto: I have the same error. I am using puppet-jboss module from example42 and trying to install it on clean ubuntu 12.04 server. User jboss does not exists before (so and after) I run puppet agent. Here is part of output: Debug: Executing '/usr/sbin/groupadd jboss' Notice: /Stage[main]/Jboss::User/**Group**[jboss]/ensure: created Debug: /Stage[main]/Jboss::User/**Group**[jboss]: The container Class[Jboss::User] will propagate my refresh event Debug: Executing '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' Error: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned 9: useradd: group jboss exists - if you want to add this user to that group, use -g. Error: /Stage[main]/Jboss::User/User[jboss]/ensure: change from absent to present failed: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned 9: useradd: group jboss exists - if you want to add this user to that group, use -g. Debug: Class[Jboss::User]: The container Stage[main] will propagate my refresh event On Monday, August 27, 2012 4:58:40 AM UTC+4, skylove wrote: the user jobss is exists in you
Re: [Puppet Users] JBOSS installation and Configuration through puppet
err: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Extract jboss-as-distribution-6.1.0.Final.zip]/returns: change from notrun to 0 failed: sh: 1: unzip: not found On Thu, Jan 24, 2013 at 7:06 PM, Rakesh Kathpal rkath...@gmail.com wrote: Hi, Have you made any changes recently in last 2 days or so... I haven't pulled the module after the netinstall fix you have done... The init.d startup issue still persists.. rest all has been fixed. Also there issues if unzip or wget are not installed on the client machine. Thanks Regards, Rakesh K. On Thu, Jan 24, 2013 at 6:54 PM, Alessandro Franceschi a...@lab42.itwrote: Hi Rakesh, I just would like to know if the latest commits on GitHub have solved your problem. Best regards, al On Friday, January 18, 2013 12:39:47 PM UTC+1, Rakesh K wrote: Hi, I am a big fan of example42 modules and using most of them, currently I am facing issues with the Jboss module I ma using the latest jboss build from example42 and latest puppi modules as well.. but still getting the following errors -- info: Caching catalog for ABC info: Applying configuration version '1358506111' notice: /Stage[main]/Jboss::User/User[**jboss]/ensure: created notice: /Stage[main]/Jboss::Install/**File[jboss_link]/ensure: created notice: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Retrieve http://download.jboss.org/**jbossas/6.1/jboss-as-** distribution-6.1.0.Final.zip]/**returns:http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.zip%5D/returns:executed successfully notice: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]/returns: executed successfully info: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]: Scheduling refresh of Exec[PostExtract jboss-as-distribution-6.1.0.**Final.zip] info: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Extract jboss-as-distribution-6.1.0.**Final.zip]: Scheduling refresh of Exec[Chown jboss-as-distribution-6.1.0.**Final.zip] err: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[PostExtract jboss-as-distribution-6.1.0.**Final.zip]: Failed to call refresh: Working directory '/opt/jboss-as-distribution-6.**1.0.Final' does not exist err: /Stage[main]/Jboss::Install/**Puppi::Netinstall[netinstall_**jboss]/Exec[Chown jboss-as-distribution-6.1.0.**Final.zip]: Failed to call refresh: chown -R root:root /opt/jboss-as-distribution-6.**1.0.Final returned 1 instead of one of [0] at /etc/puppet/modules/puppi/** manifests/netinstall.pp:118 notice: /Stage[main]/Jboss::Service/**File[jboss.init]/ensure: created notice: /Stage[main]/Jboss::Service/**Service[jboss]/ensure: ensure changed 'stopped' to 'running' notice: Finished catalog run in 49.37 seconds my node manifest is node 'ABC' { class { 'jboss': } Currently I am trying the module on centos but will need it immediately for suse/ubuntu and rhel as well please help.. Thanks in advance... On Fri, Jan 11, 2013 at 10:42 PM, Alessandro Franceschi a...@lab42.itwrote: There were some bugs in the module for some not well tested installation options (the module can install version 4, 5, 6 and 7 either via package, upstream source or puppi (from upstream files) and I personally used only one of these combinations). These problem should have been now be fixed, find the updated version on GitHub: https://github.com/example42/**puppet-jbosshttps://github.com/example42/puppet-jboss Please let me know if there are other issues you find with the module. For quicker replies on problems with Example42 modules I suggest to open issues via GitHub. Best regards Alessandro Franceschi / Example42 Il giorno giovedì 10 gennaio 2013 20:30:12 UTC+1, Andrey Kouznetsov ha scritto: I have the same error. I am using puppet-jboss module from example42 and trying to install it on clean ubuntu 12.04 server. User jboss does not exists before (so and after) I run puppet agent. Here is part of output: Debug: Executing '/usr/sbin/groupadd jboss' Notice: /Stage[main]/Jboss::User/**Group**[jboss]/ensure: created Debug: /Stage[main]/Jboss::User/**Group**[jboss]: The container Class[Jboss::User] will propagate my refresh event Debug: Executing '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' Error: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned 9: useradd: group jboss exists - if you want to add this user to that group, use -g. Error: /Stage[main]/Jboss::User/User[jboss]/ensure: change from absent to present failed: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned
Re: [Puppet Users] JBOSS installation and Configuration through puppet
Hi, I am a big fan of example42 modules and using most of them, currently I am facing issues with the Jboss module I ma using the latest jboss build from example42 and latest puppi modules as well.. but still getting the following errors -- info: Caching catalog for ABC info: Applying configuration version '1358506111' notice: /Stage[main]/Jboss::User/User[jboss]/ensure: created notice: /Stage[main]/Jboss::Install/File[jboss_link]/ensure: created notice: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Retrieve http://download.jboss.org/jbossas/6.1/jboss-as-distribution-6.1.0.Final.zip]/returns:executed successfully notice: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Extract jboss-as-distribution-6.1.0.Final.zip]/returns: executed successfully info: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Extract jboss-as-distribution-6.1.0.Final.zip]: Scheduling refresh of Exec[PostExtract jboss-as-distribution-6.1.0.Final.zip] info: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Extract jboss-as-distribution-6.1.0.Final.zip]: Scheduling refresh of Exec[Chown jboss-as-distribution-6.1.0.Final.zip] err: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[PostExtract jboss-as-distribution-6.1.0.Final.zip]: Failed to call refresh: Working directory '/opt/jboss-as-distribution-6.1.0.Final' does not exist err: /Stage[main]/Jboss::Install/Puppi::Netinstall[netinstall_jboss]/Exec[Chown jboss-as-distribution-6.1.0.Final.zip]: Failed to call refresh: chown -R root:root /opt/jboss-as-distribution-6.1.0.Final returned 1 instead of one of [0] at /etc/puppet/modules/puppi/manifests/netinstall.pp:118 notice: /Stage[main]/Jboss::Service/File[jboss.init]/ensure: created notice: /Stage[main]/Jboss::Service/Service[jboss]/ensure: ensure changed 'stopped' to 'running' notice: Finished catalog run in 49.37 seconds my node manifest is node 'ABC' { class { 'jboss': } Currently I am trying the module on centos but will need it immediately for suse/ubuntu and rhel as well please help.. Thanks in advance... On Fri, Jan 11, 2013 at 10:42 PM, Alessandro Franceschi a...@lab42.it wrote: There were some bugs in the module for some not well tested installation options (the module can install version 4, 5, 6 and 7 either via package, upstream source or puppi (from upstream files) and I personally used only one of these combinations). These problem should have been now be fixed, find the updated version on GitHub: https://github.com/example42/puppet-jboss Please let me know if there are other issues you find with the module. For quicker replies on problems with Example42 modules I suggest to open issues via GitHub. Best regards Alessandro Franceschi / Example42 Il giorno giovedì 10 gennaio 2013 20:30:12 UTC+1, Andrey Kouznetsov ha scritto: I have the same error. I am using puppet-jboss module from example42 and trying to install it on clean ubuntu 12.04 server. User jboss does not exists before (so and after) I run puppet agent. Here is part of output: Debug: Executing '/usr/sbin/groupadd jboss' Notice: /Stage[main]/Jboss::User/**Group[jboss]/ensure: created Debug: /Stage[main]/Jboss::User/**Group[jboss]: The container Class[Jboss::User] will propagate my refresh event Debug: Executing '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' Error: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned 9: useradd: group jboss exists - if you want to add this user to that group, use -g. Error: /Stage[main]/Jboss::User/User[**jboss]/ensure: change from absent to present failed: Could not create user jboss: Execution of '/usr/sbin/useradd -p ! -c jboss user -d /opt/jboss -s /bin/bash jboss' returned 9: useradd: group jboss exists - if you want to add this user to that group, use -g. Debug: Class[Jboss::User]: The container Stage[main] will propagate my refresh event On Monday, August 27, 2012 4:58:40 AM UTC+4, skylove wrote: the user jobss is exists in you system! 2012/8/25 Ajeet Raina ajeet...@gmail.com Hi All, I have puppet server and client ready. I found JBOSS module and manifests under https://github.com/**example42/puppet-jboss/https://github.com/example42/puppet-jboss/blob/master/manifests/init.pp and imported it through git. I am encountering these isse while I run : http://pastebin.com/S67JqmSK -- 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/-/**iaYlyzVcuLUJhttps://groups.google.com/d/msg/puppet-users/-/iaYlyzVcuLUJ . To post to this group, send email to puppet...@googlegroups.com. To unsubscribe from this group, send email to puppet-users...@googlegroups.**com. For more options, visit this
[Puppet Users] puppet modules for suse / sles !!!
Hi, I am a sysadmin and currently evaluating puppet. I am not a programmer so generally use ready modules from Lab42 or other contributors on puppet forge / github. Currently I am looking for Apache / Mysql and Php puppet modules for SLES, I have got the modules working for rhel/ububtu and centos. Really appreciate any help on this. Thanks Regards, Rakesh K. -- 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] Issues with installing some modules !!!
Hi, Following are the requested details OS - Centos 5.4 Puppet Server - 2.7.12 Pupper Client - puppet-2.6.16 puppet-mysql module version - 0.4.0https://github.com/puppetlabs/puppetlabs-mysql/commit/583e60fe843082e5c551ee93ab2ce45b47733216 Git Cloned from : https://github.com/puppetlabs/puppetlabs-mysql.git Yes.. I first used the config_hash = { 'root_password' = 'mypass' } parameter but later when it wasn't working, I commented it. I also enabled pluginsync in my puppet.conf. Still no avail. I really appreciate the help from you guys. Thanks Regards, Rakesh K. On Thu, Aug 2, 2012 at 11:58 PM, Nan Liu n...@puppetlabs.com wrote: On Thu, Aug 2, 2012 at 11:19 AM, Ryan Coleman r...@puppetlabs.com wrote: On Tue, Jul 31, 2012 at 11:53 PM, Rakesh K rkath...@gmail.com wrote: For mysql I am using the module https://github.com/puppetlabs/puppetlabs-mysql What I am observing is mysql is gets installed and everything but no db is added, also intermittently the password is not set, it is neither not blank nor does it set the password that I have mentioned. The nodes.pp that I am using is as follows [root@pmast1 manifests]# cat /etc/puppet/manifests/nodes.pp class baseclass { class { 'mysql': } class { 'mysql::server': #config_hash = { 'root_password' = 'mypass' } } mysql::db { 'mydb': user = 'myuser', password = 'mypass', host = 'localhost', grant= ['all'], } } I just noticed that you have commented out the config_hash parameter. Have you tried uncommenting that and setting 'mypass' to the actual value of your database servers root password? Puppet uses this information to configure the file /root/.my.cnf which is leveraged when the various mysql commands are run to provision the database, create database users and assign grants. Yeah, per Ryan, most likely you already have an existing password, and you need to set old_root_password before you can set the new password: ... config_hash = { root_password = 'mypass', old_root_password = 'oldpass', } ... 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] Issues with some modules !!!
Hi, I am new to puppet and have started evaluating various features in last few days. I am not a developer and am mostly going to use the modules available on github or puppet forge. Currently I have tried all easier modules and they seem to work perfectly without any issues, but now the problem is arising when I am trying to use modules like mysql, tomcat etc... For mysql I am using the module https://github.com/puppetlabs/puppetlabs-mysql What I am observing is mysql is gets installed and everything but no db is added, also intermittently the password is not set, it is neither not blank nor does it set the password that I have mentioned. The nodes.pp that I am using is as follows [root@pmast1 manifests]# cat /etc/puppet/manifests/nodes.pp class baseclass { class { 'mysql': } class { 'mysql::server': #config_hash = { 'root_password' = 'mypass' } } mysql::db { 'mydb': user = 'myuser', password = 'mypass', host = 'localhost', grant= ['all'], } } node 'pclient1.example.com' { include baseclass } Now as in nodes.pp if I try to set the password it gives me the error below on the puppet client node [root@pclient1 ~]# puppetd --test notice: Ignoring --listen on onetime run info: Caching catalog for pclient1.example.com info: Applying configuration version '1343801984' notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: mysqladmin: connect to server at 'localhost' failed notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: error: 'Access denied for user 'root'@'localhost' (using password: NO)' err: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: change from notrun to 0 failed: mysqladmin -u root password mypass returned 1 instead of one of [0] at /etc/puppet/modules/mysql/manifests/config.pp:94 notice: /File[/root/.my.cnf]: Dependency Exec[set_mysql_rootpw] has failures: true warning: /File[/root/.my.cnf]: Skipping because of failed dependencies notice: /Stage[main]/Mysql::Config/Exec[mysqld-restart]: Dependency Exec[set_mysql_rootpw] has failures: true warning: /Stage[main]/Mysql::Config/Exec[mysqld-restart]: Skipping because of failed dependencies notice: Finished catalog run in 0.56 seconds And in case I do not specify the password in the nodes.pp, not sure what password is sets but only adds the mysql service to the client node. I am sure I am missing something and here but not sure what... Also in case of tomcat I am having similar issues not sure how can I add applications or tomcat in the /usr/local/tomcat path. Thanks for your help in advance. Rakesh K. -- 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.