davids / puppet-mysql-old Goto Github PK
View Code? Open in Web Editor NEWManage mysql databases, users and grants as native resources in puppet
Manage mysql databases, users and grants as native resources in puppet
Primitive native types to manage MySQL databases, users and grants. Debian systems need to put this in their site.pp: # mysql defaults Mysql_database { defaults => "/etc/mysql/debian.cnf" } Mysql_user { defaults => "/etc/mysql/debian.cnf" } Mysql_grant { defaults => "/etc/mysql/debian.cnf" }
It seems that the mysql provider needs to have the mysql client installed before it is added to a configuration. I tried adding
class mysql::server {
Class["mysql::client"] -> Class["mysql::server"]
}
But that didn't help. Doing an apt-get install mysql-client was the only way I found around this error.
Client version: 0.25.4
Server version: 2.6.11
Just checked out the module today by chance and had a few issues.
You reference a hard coded mysql config file location in your code. This won't work for many many locations. I'm not running debian for instance. I think for the sanity of most folks they will not want a hard coded config file (defaults-file), but would prefer everything to default to the installation default (/etc/my.cnf on CentOS and many others). In my utilization, I remove the hard coded instances in order to move on.
Just checked out the module today by chance and had a few issues.
run_tests references '../plugins' when it should reference '../lib'. A quick change there and things run much better.
I'm getting this error from puppet:
err: Could not prefetch mysql_user provider 'mysql': Provider mysql has not defined the 'instances' class method
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.