Permalink
Browse files

Merge pull request #76 from brdude/master

Default types hacks not needed.
  • Loading branch information...
2 parents 65de49f + f0f9e76 commit c1e3bcabf4cf720597646b7c263d9e4360413aac @bodepd bodepd committed May 22, 2012
@@ -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
@@ -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
-
@@ -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

0 comments on commit c1e3bca

Please sign in to comment.