search for: optional_command

Displaying 4 results from an estimated 4 matches for "optional_command".

Did you mean: optional_commands
2013 Apr 16
0
How to get return code of a command used in a custom provider.
When using optional_commands in a custom provider is there a means to get the return code of the execution? Something similar to "echo $?" on Linux. For example, if I define foo optional_commands :foo => ''foo'' I want to execute foo() and test if it was successful or not with in some condit...
2012 Aug 11
2
Extending Puppet Woes
...ving 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." defaultfor :kernel => ''Linux'' optional_commands :mysql => ''mysql'' def create def create mysql("-u #{resource[:rootuser]} -p\''#{resource[:rootpassword]}\'' -h #{resource[:host]} -NBev", "create database #{@resource[:name]} character set #{resource[:charset]}") end It fail...
2012 Jul 15
3
system users caching
Hi! On my servers, i''m using pam-ldap and cie. All the configuration of the system is done by puppet. After to the system installation, when i run puppet, in a first time, puppet sets up the ldap configuration and after, the services installation and configuration. While setting up of one of these services, puppet doesn''t find a user which is provided by LDAP. When i
2012 Sep 26
14
Glassfish custom provider and 'file does not exist'
Hi there, I''m trying to setup Glassfish config management using puppet. I''ve found larstobi''s module here <https://github.com/larstobi/puppet-glassfish/>which I''ve cloned and am starting to tweak, as it would appear that the mentioned module is based on Solaris, therefore I''m starting to add support for EL. My code tree is