Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #76 from brdude/master

Default types hacks not needed.
  • Loading branch information...
commit c1e3bcabf4cf720597646b7c263d9e4360413aac 2 parents 65de49f + f0f9e76
@bodepd bodepd authored
View
28 lib/puppet/provider/database/default.rb
@@ -1,28 +0,0 @@
-Puppet::Type.type(:database).provide(:default) do
-
- desc "This is a default provider that does nothing. This allows us to install mysql on the same puppet run where we want to use it."
-
- def self.instances
- []
- end
-
- def create
- return false
- end
-
- def destroy
- return false
- end
-
- def exists?
- fail('This is just the default provider for database, all it does is fail')
- end
-
- def charset
- return false
- end
-
- def charset=(value)
- return false
- end
-end
View
27 lib/puppet/provider/database_grant/default.rb
@@ -1,27 +0,0 @@
-# A grant is either global or per-db. This can be distinguished by the syntax
-# of the name:
-# user@host => global
-# user@host/db => per-db
-
-Puppet::Type.type(:database_grant).provide(:default) do
-
- desc "Uses mysql as database."
-
- def self.instances
- []
- end
-
- def destroy
- return false
- end
-
- def create
- return false
- end
-
- def exists?
- fail('Default provider for database_grant should never be used')
- end
-
-end
-
View
28 lib/puppet/provider/database_user/default.rb
@@ -1,28 +0,0 @@
-Puppet::Type.type(:database_user).provide(:default) do
-
- desc "manage users for a mysql database."
-
- def self.instances
- []
- end
-
- def create
- return false
- end
-
- def destroy
- return false
- end
-
- def exists?
- fail("this is just a default, it should not actually be used")
- end
-
- def password_hash
- return false
- end
-
- def password_hash=(string)
- return false
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.