GithubHelp home page GithubHelp logo

trexglobal / mysql-formula Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saltstack-formulas/mysql-formula

0.0 6.0 0.0 253 KB

Install the MySQL client and/or server

Home Page: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License: Other

Ruby 2.97% Python 16.70% SaltStack 77.30% Shell 1.67% HTML 1.35%

mysql-formula's Introduction

mysql

Install the MySQL client and/or server on Linux and MacOS.

Available states

Meta-state including all server packages in correct order. This meta-state does not include mysql.remove_test_database.

Install "MySQL Community Server", "MySQL Workbench", and other related mysql products on MacOS (and create Desktop shortcuts).

Remove "MySQL Community Server", "MySQL Workbench", and any other enabled products from MacOS.

Install the MySQL client package on Linux.

Install the MySQL server package and start the service.

Debian OS family supports setting MySQL root password during install via debconf.

Note

If no root password is provided in the pillar, a random one will be created. Because Hydrogen doesn't have easy access to a random function (test.rand_str isn't introduced until Helium), instead, we use the not-at-all random grains.server_id. As this is cryptographically insecure, future formula versions should use the newly available random.get_str method.

Enforces a root password to be set.

Ensure that the MySQL service is not running.

Create and manage MySQL databases.

Install mysql python bindings.

Create and manage MySQL database users with definable GRANT privileges.

The state accepts MySQL hashed passwords or clear text. Hashed password have priority.

Note

See the salt.states.mysql_user docs for additional information on configuring hashed passwords.

Make sure to quote the passwords in the pillar so YAML doesn't throw an exception.

Warning

Do not use this state if your MySQL instance has a database in use called test. If you do, it will be irrevocably removed!

Remove the database called test, normally created as part of a default MySQL installation. This state is not included as part of the meta-state above as this name may conflict with a real database.

Install the MySQL development libraries and header files.

Note

Note that this state is not installed by the mysql meta-state unless you set your pillar data accordingly.

Add the official MySQL 5.7 repository.

Note

Note that this state currently only supports MySQL 5.7 for RHEL systems. Debian and Suse support to be added. Also need to add the option to allow selection of MySQL version (5.6 and 5.5 repos are added but disabled) and changed enabled repository accordingly.

Manage the MySQL configuration.

Note

There are currently two common ways to configure MySQL, a monolithic configuration file or a configuration directory with configuration files per component. By default this state will use a configuration directory for CentOS and Fedora, and a monolithic configuration file for all other supported OSes.

Whether the configuration directory is used or not depends on whether mysql.config_directory is defined in the pillar. If it is present it will pick the configuration from individual component keys (mysql.server, mysql.galera, mysql.libraries, etc) with optional global configuration from mysql.global. The monolithic configuration, however, is defined separately in mysql.config.

mysql-formula's People

Contributors

gravyboat avatar aboe76 avatar nmadhok avatar whiteinge avatar noelmcloughlin avatar wwentland avatar alxwr avatar pprkut avatar techhat avatar roock avatar routhinator avatar puneetk avatar davidjb avatar gtmanfred avatar tiger-seo avatar thatch45 avatar xenophonf avatar alfonsfoubert avatar cboltz avatar jochumdev avatar nesteves avatar utahdave avatar madflojo avatar vschum avatar tomasfejfar avatar sray avatar ronwilliams avatar stp-ip avatar neuhalje avatar javierbertoli avatar

Watchers

James Cloos avatar  avatar mario vejlupek avatar  avatar Amit Chotaliya avatar Jayalal Gopi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.