Displaying 2 results from an estimated 2 matches for "defaultfor".
Did you mean:
default_for
2012 Aug 11
2
Extending Puppet Woes
...ing 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."
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...
2010 Oct 12
4
[0.25.5] Default provider
...and trying to get it to work on Debian. I
only modified the command so it would include --defaults-file=/etc/
mysql/debian.cnf. But when I try to use the type, I get:
err: Could not run Puppet configuration client: Could not find a
default provider for mysql_database
So I tried adding the line:
defaultfor :operatingsystem => :debian
To the providers. But I''m still getting the message the it cannot find
the default provider. I''ve been searching online for documentation on
how to modify the type so it would know which provider to select, but
although there are a lot of types find...