[Puppet Users] Mysql database synching using mcollective/puppet
Hi, I was wondering if there was an easy way of managing database schemas and content on different servers using mcollective/puppet Some of my thoughts are - since puppet seems to use ruby on rails maybe I can use active record migrations to do this ?(I don't know much about ruby or rails by the way). One problem I faced when doing something else was that other vendor libraries? did not seem easily accessible from the main puppet ruby interpreter so may not be easily available in a mcollective agent? Kind Regards, Chandra -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Puppet + uwsgi-plugin-rack-ruby anyone?
Meh, didn't work :| -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] using rubygems from epel
Hi, I'm trying to install a new puppet master. The passenger documentation says that I should gem install rack passenger Would it be possible (version-wise) to use instead the epel packages? yum install rubygem-rack rubygem-passenger mod_passenger installs the following versions: rubygem-rack 1.1.0-2.el6 rubygem-passenger 3.0.21-5.el6 mod_passenger 3.0.21-5.el6 Thanks. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Two (hopefuly minor) Questions (ip-array, line for several hosts)
Hey folks, that worked, thanks. -Christian. Am Donnerstag, 10. Oktober 2013 11:54:31 UTC+2 schrieb christian...@googlemail.com: Hey Folks, I have two question, which I hope are minor. First off I would like an array with all IPs for a system. This would come in handy for sshkeys, hosts and the likes. Second, and more important, I need to add a line into a file for every host. To clarify here is an example: - I have 3 (theoretical) nameservers, which configs (zones) get distributed over puppet. - I want, in each zonefile a line mydomain.de. IN NS $fqdn::dns::server. Furthermore I want those lines purged if a NS does clean/deactivated. Thanks for your help in advance! -Christian. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Error: allocator undefined for Proc
I had this problem all of a sudden, just changed some puppet classes in my modules, but no particular stuff or no error in the catalog creation. Env : Puppet master version 3.2.0-rc1 Centos kernel 2.6.32-279.11.1.el6.x86_64 ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Info: Caching catalog for jbossvdbmaster.prod.italy.cloudlabcsi.eu Debug: Searched for resources in 0.01 seconds Debug: Searched for resource params and tags in 0.02 seconds Debug: Resource removal in 0.01 seconds Error: allocator undefined for Proc /usr/lib/ruby/1.8/yaml.rb:133:in `transfer' /usr/lib/ruby/1.8/yaml.rb:133:in `node_import' /usr/lib/ruby/1.8/yaml.rb:133:in `load' /usr/lib/ruby/1.8/yaml.rb:133:in `load' /usr/lib/ruby/site_ruby/1.8/puppet/util/rails/reference_serializer.rb:6:in `unserialize_value' /usr/lib/ruby/site_ruby/1.8/puppet/rails/param_value.rb:36:in `value' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:144:in `__send__' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:144:in `attribute_change' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:118:in `changes' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/inflector/methods.rb:113:in `inject' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:118:in `each' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:118:in `inject' /usr/lib/ruby/gems/1.8/gems/activemodel-3.0.0/lib/active_model/dirty.rb:118:in `changes' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/attribute_methods/dirty.rb:22:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:237:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:289:in `with_transaction_returning_status' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:204:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:287:in `with_transaction_returning_status' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:237:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:248:in `rollback_active_record_state!' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:236:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/associations/has_many_association.rb:66:in `insert_record' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/associations/association_proxy.rb:151:in `send' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/associations/association_proxy.rb:151:in `send' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/autosave_association.rb:306:in `save_collection_association' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/autosave_association.rb:297:in `each' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/autosave_association.rb:297:in `save_collection_association' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/autosave_association.rb:163:in `autosave_associated_records_for_param_values' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:415:in `_run_update_callbacks' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/callbacks.rb:285:in `update' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/persistence.rb:247:in `create_or_update' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/callbacks.rb:277:in `create_or_update' /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:428:in `_run_save_callbacks' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/callbacks.rb:277:in `create_or_update' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/persistence.rb:39:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/validations.rb:43:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/attribute_methods/dirty.rb:21:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:237:in `save' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:289:in `with_transaction_returning_status' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:204:in `transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0/lib/active_record/transactions.rb:287:in `with_transaction_returning_status'
[Puppet Users] Re: Force default parameters in hiera
Sounds to me that your hierarchy needs some rethinking. What makes this node special? Is it common to other nodes now or in the future? Does an existing fact exist that can be used in the Hiera hierarchy? If the serverlist is moved from common.yaml up the hierarchy, you'd be able to solve your issue. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] New to Puppet, trying to get it workign with a FreeBSD agent
Hello, I have been following through some of the documentation trying to make use of puppet in a test environment. I went ahead and tried to install puppet-passenger and puppet dashboard. I think i have succesfully done this, because at mymaster.local:3000/ I get the dashboard webpage (albeit with no nodes or anything reporting) and at https://mymaster.local:8140 I get a cert trying to be served to my browser. Are these good indicators of something at least working? On my pupper master box, which is Ubuntu, here is what /etc/puppet/puppet.conf contains [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. reports = store, http reporturl = http://mymaster.local:3000/reports/upload ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY and in the master's etc/hosts there is a reference to the agent, so it can ping it by name. and as of right now, i only have one FreeBSD puppet client. In it's /usr/local/etc/puppet/puppet.conf [agent] server = mymaster report = true pluginsync = true and its hosts file has mymaster, so I can ping it by name. However, on my agent, if i type puppet agent -t I get the following: Error: Could not request certificate: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: (null) Exiting; failed to retrieve certificate and waitforcert is disabled I tried this with the -w option, and did sudo puppet cert list on the master, but i never saw anything show up. What am I missing here? Can someone point me to some better documentation? It seemed like what I read was lacking a bit, especially for the agent setup in the FreeBSD box. Thanks! -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Few questions about Puppet
Hi All, I'm new to puppet and I've three requirements to achieve using puppet. 1. I've a json file shown below that I need to modify, when I run my puppet script. { assets:{ ignore:[], icons:{ gadget:icon-dashboard, ebook :icon-ebook, site :icon-site, default:icon-dashboard } } } I need to add a new entry in the mid of icons, say a:b. How do I do this? 2. I replace a directory using another directory. And I need to do the same after doing some other additions to configuration. I get the following error when I apply the 'file resource twice. Duplicate declaration: File[/home/shazni/Documents/Junk/wso2greg-4.6.0/samples/asset-models/ApplicationModel/] is already declared in file /home/shazni/.puppet/modules/gregstore/manifests/init.pp at line 85; cannot redeclare at /home/shazni/.puppet/modules/gregstore/manifests/init.pp:108 on node wso2-thinkpad-t530.private.wso2.com My script does this. file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } // Some more work file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } How to solve this issue? 3. I want to run a script file, which in turn invoke some java class files. How to to do it in the same file? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Few questions about Puppet
Hi Shazni, 1. I've a json file shown below that I need to modify, when I run my puppet script. { assets:{ ignore:[], icons:{ gadget:icon-dashboard, ebook :icon-ebook, site :icon-site, default:icon-dashboard } } } I need to add a new entry in the mid of icons, say a:b. How do I do this? In this case you can explore the puppet *augeas* resource type. It will allow you to change the file contents. But you have to learn the augeas tool format. Refer, http://docs.puppetlabs.com/references/latest/type.html#augeas http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas#Using+Puppet+with+Augeas 2. I replace a directory using another directory. And I need to do the same after doing some other additions to configuration. I get the following error when I apply the 'file resource twice. Duplicate declaration: File[/home/shazni/Documents/Junk/wso2greg-4.6.0/samples/asset-models/ApplicationModel/] is already declared in file /home/shazni/.puppet/modules/gregstore/manifests/init.pp at line 85; cannot redeclare at /home/shazni/.puppet/modules/gregstore/manifests/init.pp:108 on node wso2-thinkpad-t530.private.wso2.com My script does this. file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } // Some more work file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } How to solve this issue? puppet does not allow you to perform operation on same file twice in manifests. You have to do the all operations on single file in one file resource(*Exactly once*) 3. I want to run a script file, which in turn invoke some java class files. How to to do it in the same file? Transfer the script file to puppet agent/client using *FILE* resource and then use *EXEC* resource to execute that script file. Hope this will help. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Few questions about Puppet
Thank Rahul for your responses. I would like to know how do I achieve my requirements. The second one seems a bit trickier On Wednesday, October 23, 2013 3:41:08 PM UTC+5:30, shazni nazeer wrote: Hi All, I'm new to puppet and I've three requirements to achieve using puppet. 1. I've a json file shown below that I need to modify, when I run my puppet script. { assets:{ ignore:[], icons:{ gadget:icon-dashboard, ebook :icon-ebook, site :icon-site, default:icon-dashboard } } } I need to add a new entry in the mid of icons, say a:b. How do I do this? 2. I replace a directory using another directory. And I need to do the same after doing some other additions to configuration. I get the following error when I apply the 'file resource twice. Duplicate declaration: File[/home/shazni/Documents/Junk/wso2greg-4.6.0/samples/asset-models/ApplicationModel/] is already declared in file /home/shazni/.puppet/modules/gregstore/manifests/init.pp at line 85; cannot redeclare at /home/shazni/.puppet/modules/gregstore/manifests/init.pp:108 on node wso2-thinkpad-t530.private.wso2.com My script does this. file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } // Some more work file { $StoreHome/repository/deployment/server/jaggeryapps/store/extensions/assets/servicex: ensure = directory, recurse = true, purge = true, force = true, source = puppet:///modules/gregstore/setup-beta2/store/servicex/, } How to solve this issue? 3. I want to run a script file, which in turn invoke some java class files. How to to do it in the same file? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Chocolatey Plugin Issues
Hello, So I am attempting to use chocolatey as a provider for puppet on my windows machine and I am at the stage now where I am manually running manifests to see if I am getting all the syntax correct. I am running into a strange issue though. I have a package I created called 'rwin'. I can install it perfectly using the cinst command: cinst rwin -source z:\software\rwin However, when I try to install via puppet manifest package { 'rwin': ensure = latest, provider = 'chocolatey', source = 'Z:\Software\rwin', } it appears to do nothing at all. I don't get any error messages, it merely says Notice: compiled catalog etc... Notice: /Stage[main]//Package[rwin]/ensure: created Notice: finished catalog etc... And the package does not install, it does not appear under puppet resource package. Obviously this is my own package, so it is unlikely that anyone can replicate the issue, but can anyone tell me how I can see what chocolatey is doing, or what puppet is doing? The stuff spit out by --debug --verbose and --trace is not helpful, since everything is identical to a package that *does* work, only nothing happens. This leads me to believe it is a chocolatey issue, especially since packages installed with the 'windows' provider appear to work perfectly. Unfortunately I can see that something is happening in powershell, but there is no output from the point that puppet calls chocolatey until it returns. I'm going to try and download a chocolatey package that I can install from the web and see if I can install it with an alternate source as soon as I get back to my desk and will post the results of that. Thanks for your help! Jason Bray -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Force default parameters in hiera
On Tuesday, October 22, 2013 4:36:35 PM UTC-5, Marc Huffnagle wrote: I have a hiera configuration that specifies the following hierarchy: :hierarchy: - nodes/%{::fqdn} - common In this example, let's say I'm using the puppetlabs ntp module, which has a parameter called servers. I have a list of NTP servers that I want to be used by all but one node. On one of my nodes (let's call that node agent1), I want to use the default value for that servers parameter. If I specify that list of servers in common.yaml, it will be applied to all of the hosts (including on agent1). Is there something that I can put in nodes/agent1.yaml that will force it to use the default parameter value, while the other hosts use the servers that I specify in common.yaml? Is there a way to tell hiera stop looking for this value, and prevent it from continuing through the hierarchy? Even better would be a way to tell it stop looking for any value under ntp. No, there is no such feature at this time. I'm with William in finding your objective rather unintuitive. If you have an exceptional node, then the Hiera approach is to provide that node's exceptional data in a per-node hierarchy level. I fail to see why it would be better to embed an abort lookup marker in place of the data than it would be to put the actual desired data in that same place. Alternatively, if you don't want to provide any data at all for a given (node, tag) pair, then structure your hierarchy and data so that no data file that applies to the node in question associates any value with the given tag. John -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Upgrading a .msi package through Puppet
Hey! I would like to be able of upgrade a windows application just copying the .msi file into a ../module/files directory, without having to modify any manifest. Something like: file { 'C:\\files\\packages\\Package.msi': ensure = present, source = 'puppet:///modules/SOME-MODULE/packages/Package.msi', } package { 'Package': ensure = installed, provider= 'windows', source= 'C:\\files\\packages\\Package.msi', } The main problem I'm facing is to tell Puppet to install the latest version, without defining the specific package. I would like to do something like version = latest. Any ideas on where to begin? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: how to pass the value to custom function?
Thanks John! That fixed problem. I believe, in that, case symbol should be used over string in a hash? Cheers!! On Tuesday, October 22, 2013 2:12:17 PM UTC+1, jcbollinger wrote: Your hash keys are symbols, whereas argument 0 to the function is a string. 'linux' != :linux. Try adding cls = cls.to_sym if cls.is_a? String between initially setting cls and testing whether it is a key of your hash. John -- 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. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Baffled by variable scope problem
Hello all. I have been banging my head against this problem and I cannot for the life of me determine what is wrong. We are running Puppet v3.2.2. Here's the situation: We have a module called domex. The domex modules has an init.pp that defines a domex class. Various things happen in that module, but the important part is some variable definitions, so I'll whittle it down. init.pp: class domex { $nifi_dir = extlookup('nifi_install_base_dir','/opt/niagarafiles/default','iep') $storm_streaming_pkg_reqs = infrastructure-deps-iep-storm-addon } I've put notify statements in so I can verify the contents of the variables are correct in the init.pp and they are. Now, I have two subclasses, each defined in their own files. nifi.pp: class domex::nifi { include domex $nifi_dir = $domex::nifi_dir } A notify statement shows that $nifi_dir gets populated with the correct value. storm.pp class domex::storm { include domex $storm_pkg_reqs = $domex::storm_streaming_pkg_reqs } In this case, $storm_pkg_reqs ends up no value. The value of $domex::storm_streaming_pkg_reqs also has no value. Nothing else touches any of these variables in any other manifest. I do not the reason $storm_pkg_reqs ends up being undefined. I know this setup seems a bit convoluted, but it's not my choice, I'm having to take existing puppet modules and tweak them for our environment, so wholesale structural changes are out of the question (no matter how much I might like to make them). Any and all help would be greatly appreciated! Thanks, Bob -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Convert mco status output to json format
You rocks Alan.. You saved lot of my time. Thanks a lot On Tuesday, October 22, 2013 5:10:42 PM UTC-4, Alan wrote: You're interacting with a higher level mco application, the puppet application, which wraps around calling the agent. You probably want to query the agent directly, using the rpc application. try: mco rpc puppet status -F myvar=something --json On 22/10/13 17:31, Jayesh Mahajan wrote: Greeting everyone, I'm trying to get the output of mco result in json format. However it looks like it doesnt work for the command which has statistics in it. I'm not sure if I'm missing something. e.g. *#mco puppet status -F myvar=SOMETHING -j * -- The output is not json format same for summery and count. i.e. mco puppet summery -F myvar=SOMETHING -j #etc However, runonce shows the output in json format. *#mco puppet runonce -F myvar=SOMETHING -j* Do any one know how can we convert the result of status,summery and count into json format? Thanks, Jayesh -- 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...@googlegroups.com javascript:. To post to this group, send email to puppet...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/puppet-users. 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Upgrading a .msi package through Puppet
Take a look at https://projects.puppetlabs.com/issues/21133. I'm not sure if there is an ensure = latest yet or not. On Wed, Oct 23, 2013 at 9:12 AM, Lorenzo Jesús Cubero lj.cub...@gmail.comwrote: Hey! I would like to be able of upgrade a windows application just copying the .msi file into a ../module/files directory, without having to modify any manifest. Something like: file { 'C:\\files\\packages\\Package.msi': ensure = present, source = 'puppet:///modules/SOME-MODULE/packages/Package.msi', } package { 'Package': ensure = installed, provider= 'windows', source= 'C:\\files\\packages\\Package.msi', } The main problem I'm facing is to tell Puppet to install the latest version, without defining the specific package. I would like to do something like version = latest. Any ideas on where to begin? -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- Rob Reynolds Developer, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Chocolatey Plugin Issues
Can you run puppet with --trace --debug --verbose? My guess is that source doesn't work with the version of the chocolatey provider that you have installed (the one on the forge needs to be updated still). On Wed, Oct 23, 2013 at 8:03 AM, Jason Bray jbray.1...@gmail.com wrote: Hello, So I am attempting to use chocolatey as a provider for puppet on my windows machine and I am at the stage now where I am manually running manifests to see if I am getting all the syntax correct. I am running into a strange issue though. I have a package I created called 'rwin'. I can install it perfectly using the cinst command: cinst rwin -source z:\software\rwin However, when I try to install via puppet manifest package { 'rwin': ensure = latest, provider = 'chocolatey', source = 'Z:\Software\rwin', } it appears to do nothing at all. I don't get any error messages, it merely says Notice: compiled catalog etc... Notice: /Stage[main]//Package[rwin]/ensure: created Notice: finished catalog etc... And the package does not install, it does not appear under puppet resource package. Obviously this is my own package, so it is unlikely that anyone can replicate the issue, but can anyone tell me how I can see what chocolatey is doing, or what puppet is doing? The stuff spit out by --debug --verbose and --trace is not helpful, since everything is identical to a package that *does* work, only nothing happens. This leads me to believe it is a chocolatey issue, especially since packages installed with the 'windows' provider appear to work perfectly. Unfortunately I can see that something is happening in powershell, but there is no output from the point that puppet calls chocolatey until it returns. I'm going to try and download a chocolatey package that I can install from the web and see if I can install it with an alternate source as soon as I get back to my desk and will post the results of that. Thanks for your help! Jason Bray -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- Rob Reynolds Developer, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Chocolatey Plugin Issues
The reason for the --trace --debug --version is to see what the chocolatey provider is passing to the chocolatey tool. One suggested workaround for the forge version is to add the source to the chocolatey config. I'm not a fan of that and have added it to the provider and am working with Rich to get that into the provider and uploaded back to the forge. On Wed, Oct 23, 2013 at 1:50 PM, Rob Reynolds r...@puppetlabs.com wrote: Can you run puppet with --trace --debug --verbose? My guess is that source doesn't work with the version of the chocolatey provider that you have installed (the one on the forge needs to be updated still). On Wed, Oct 23, 2013 at 8:03 AM, Jason Bray jbray.1...@gmail.com wrote: Hello, So I am attempting to use chocolatey as a provider for puppet on my windows machine and I am at the stage now where I am manually running manifests to see if I am getting all the syntax correct. I am running into a strange issue though. I have a package I created called 'rwin'. I can install it perfectly using the cinst command: cinst rwin -source z:\software\rwin However, when I try to install via puppet manifest package { 'rwin': ensure = latest, provider = 'chocolatey', source = 'Z:\Software\rwin', } it appears to do nothing at all. I don't get any error messages, it merely says Notice: compiled catalog etc... Notice: /Stage[main]//Package[rwin]/ensure: created Notice: finished catalog etc... And the package does not install, it does not appear under puppet resource package. Obviously this is my own package, so it is unlikely that anyone can replicate the issue, but can anyone tell me how I can see what chocolatey is doing, or what puppet is doing? The stuff spit out by --debug --verbose and --trace is not helpful, since everything is identical to a package that *does* work, only nothing happens. This leads me to believe it is a chocolatey issue, especially since packages installed with the 'windows' provider appear to work perfectly. Unfortunately I can see that something is happening in powershell, but there is no output from the point that puppet calls chocolatey until it returns. I'm going to try and download a chocolatey package that I can install from the web and see if I can install it with an alternate source as soon as I get back to my desk and will post the results of that. Thanks for your help! Jason Bray -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- Rob Reynolds Developer, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- Rob Reynolds Developer, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] request for /proc/cpuinfo examples from aix, hpux, kfreebsd, non-x86 linux
On Mon, 2013-10-21 at 19:17 -0700, Joshua Hoblitt wrote: It's been a week and I haven't gotten a single response. Does anyone actually use those platforms? :) -Josh I don't have it running puppet quite yet, but if you're interested... Here is a copy of the /proc/cpuinfo from a Linux ARM platform (in this case, a Google/LG Nexus 4 smartphone - platform codename mako) You don't have any existing testcases for a quad-core ARM device, so it might be useful for you. (Attached so as to preserve tabs vs. spaces formatting.) -- Calvin Walton calvin.wal...@kepstin.ca -- 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. For more options, visit https://groups.google.com/groups/opt_out. Processor : ARMv7 Processor rev 2 (v7l) processor : 0 BogoMIPS: 13.53 processor : 1 BogoMIPS: 13.53 processor : 2 BogoMIPS: 13.53 processor : 3 BogoMIPS: 13.53 Features: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 CPU implementer : 0x51 CPU architecture: 7 CPU variant : 0x0 CPU part: 0x06f CPU revision: 2 Hardware: QCT APQ8064 MAKO Revision: 000b Serial :