similar to: How to get return code of a command used in a custom provider.

Displaying 20 results from an estimated 80000 matches similar to: "How to get return code of a command used in a custom provider."

2013 Apr 29
2
checking puppet run status of node A during puppet run of node B
I have some middleware where the successful configuration of node B is dependent on the successful configuration of node A. Node B must pull additional information from node A during its configuration. Is there any built in functionality in puppet for checking the completion status of other nodes? Right now my intent is to write a custom function to query the puppetdb which is storing
2013 Aug 02
0
custom provider question
Hi all, I am using the sysctl provider from fiddyspence and it is doing a great job managing my system tuning. However, one thing that I would like to do is extend the provider to simply add the ability to insert a comment as part of the values that get written out so that visually on a system we can eye ball what the tuning parameter is being used for (so that we do not have to rely on
2013 Jun 19
0
Pip provider fails on RedHat osfamily when pip not installed via RPM (Could not locate the pip command)
In resolving bug 15980, the pip package provider was changed to recognize the RedHat osfamily fact and use the executable name "pip-python" in those environments. This does not take into account environments where pip has been installed via easy_install or by custom rpm providers. In those environments (such as mine) this osfamily change breaks the pip provider, requiring as a
2013 Jul 13
10
username/password combo for custom provider (couchbase)
Hi, I''m trying to program custom type for managing Couchbase buckets. Problem is that every RW operation to Couchbase cluster (creating, deleting, resizing bucket) requires admin privileges (username/password). Do you have any suggestion how should I pass the username/password to provider? If I make it a param, then every resource of type ''couchbucket'' will need to
2013 Mar 20
2
Still problem using Chocolatey provider on Windows
As some before me on the group, I have a problem getting the Chocolatey provider to work on Windows. I downloaded it from Github and placed it in /etc/puppetlabs/puppet/modules/chocolatey. (I am running Puppet Enterprise 2.7.19). On a Windows 8 client, I have a very simple manifest: class install_notepadplusplus { if $::osfamily == ''windows { $pkg =
2012 Jul 31
2
Custom Package Provider Issue
I''m running into a weird issue with a custom package provider for PEAR. I''m using the provider I found here<https://raw.github.com/gist/305778/13f46dea6eba07e38778d7159644b4210ebe7bbe/pear.rb>and the provider itself works fine. I''ve got it stored on the Puppet master under /etc/puppet/modules/common/lib/provider/package/pear.rb and the puppet.conf has pluginsync
2012 Aug 11
2
Extending Puppet Woes
I am looking to extend one of the puppet modules -"mysql". I found that they are extending Puppet with types and providers. First off I am having a difficult time find any documentationo on this and I do not know Ruby that well. The problem that I am having is this, I have the following code: Puppet::Type.type(:database).provide(:mysql) do desc "Manages MySQL database."
2013 Aug 05
3
serving .exe file via http (provider => windows)
hi everyone, i''m trying to roll out an .exe file for the puppet package provider "windows". my manifest looks like this: $package_source = "http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe" $package_name = "Check_MK Agent 1.2.3i1" package { "$package_name": ensure => installed, provider =>
2013 Oct 17
0
Error: Could not evaluate: invalid comparator for command get
Hello, I use saz/ssh module to config ssh server. Here is part of my manifese file: ssh::server::configline{ ''AllowGroups'': ensure => ''present'', value => $allowgroups } ssh::server::configline{ ''AllowUsers'': ensure => ''absent'', } But it report error after perform this change. Here is the error message: Info:
2013 Sep 10
0
vcsrepo: "Error 400 on Server: Invalid parameter provider"
With custom type ''vcsrepo'', I''ve been getting this error ever since I restarted my master box: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider at /etc/puppet/environments/local/modules/user_mpeebles/manifests/init.pp:56 on node 1001.milespeebles.org Warning: Not using cache on failed catalog Error: Could not
2013 Mar 15
0
New LDAP puppet provider using ldapmodify, ldapadd, ldapdelete etc.
Hi all, I use openldap and it''s newer slapd.d style of housing the configuration (as opposed to /etc/openldap/slapd.conf ). As such, to modify the config, the database itself, I''d prefer to use ldapmodify and ldapadd commands. I couldn''t find an existing ldap provider to nicely manage database entries (DNs), so I wrote one. It essentially does this: -
2013 Apr 05
2
Flush provider - Differentiating between new resource and modification?
Morning all I''m working on converting some of my NetApp providers to prefetch/flush style to try and optimize performance. I''ve hit an issue on my Netapp_user provider, around handling resource creation versus resource modification? What''s the easiest way to differentiate? Current code is here:
2013 Jun 07
1
" mco puppet runonce -v" fails when puppet returns code 2 for change
*Not sure if this a feature or a issue, if its a feature is there a way to configure it in puppet or mcollective? 1st Attempt(Failed) ------------------------------------------------------------------------------------------------------------------- * [root@mcqpuppetserver ~]# mco puppet runonce -v Discovering hosts using the mc method for 2 second(s) .... 1 * [
2013 Nov 04
0
brainstorm ldap type/provider
hi, Just thinking how i could manage ldap server with puppet, using dynamic configuration. I would follow the next step : In the manifest : install required packages for ldap server doing a ''site specific'' basic configuration, meaning pushing a custon /etc/<ldapbasedir>/slapd.d develop some ldap type, to tweak online the ldap server. I think this would only be used
2010 Sep 10
0
Custom package provider -- not stored locally?
I have a package provider which is a modified form of one of the default ones in the FreeBSD ports version of Puppet 2.6.1r3. I placed the provider in /usr/local/etc/puppet/modules/test/lib/puppet/ provider/ and ran puppetd on the client with the following command line: puppetd -o --no-daemonize -l console --pluginsync --server example.net I got the following output: notice:
2012 Jun 30
1
Custom provider/types and adding to puppet forge
*Note, I''m very green when it comes to ruby development.. I''ve created a couple of custom providers and types, both of which rely on a particular ruby gem in order to function. How should I go about ensuring the gem dependency on the puppet clients before puppet syncs the plugins (the broken ''require'' in the provider will cause puppet to exit during a run)? On
2013 May 09
0
loading custom type
rhel 6.4 puppet 3.1.1 I''ve written a puppet module for configuring qpidd brokers. I have installed the module in /usr/share/puppet/modules. I can successfully configure broker artifacts (exchanges, queues, bindings, etc), using manifests and puppet apply from the commandline. Now I''m trying to understand how I can do the same thing from inside a ruby script, instead of using
2013 Jun 08
4
Using yum provider to install local RPM
Hey guys, puppet n00b here. I think I already found an answer for my question here, but the topic was dated back in november of 2011, so I''m hoping things have changed since then! Here''s the topic I''m referring to. https://groups.google.com/forum/?fromgroups#!topic/puppet-users/oSHWWjMX-sE I''m running: CentOS 6.3 yum 3.2.29 puppet 3.2.1 To sum it up, I
2010 Aug 27
0
Writing custom package provider for tazpkg
I know this is not a Ruby mailing list but I am completely stumped. I''m writing a custom package provider for the tazpkg tool used in Slitaz Linux (http://www.slitaz.org/en/). I used the dpkg and apt package providers as templates. The provider can install a package just fine, the problem comes when a package is already installed and should not be installed again. It seems my REGEX is
2012 Aug 15
1
Calling custom Puppet function from within a provider
Hello, I have a custom Puppet function. Am I able to call that function from within my custom provider (written in Ruby)? Best, Mitchell -- 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