Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.
/ datagov-deploy-mysql Public archive

Ansible role for configuring a MySQL database with application credentials

License

Notifications You must be signed in to change notification settings

GSA/datagov-deploy-mysql

Repository files navigation

CircleCI

datagov-deploy-mysql

Configures mysql server with for a Data.gov application including an app database and user.

Usage

---
- name: create application database
  hosts: all
  roles:
    - role: gsa.datagov-deploy-mysql

Dependencies

  • PyMySQL

Variables

mysql_app_name string

The name of your application which will be used as a default for the database name, user, and other configuration.

mysql_user_password string required

The password to set on the database user, used for your app to login to the database.

mysql_user_name string (default: {{ mysql_app_name }})

Explicitly set the database user name to create.

mysql_database_name string (default: {{ mysql_app_name }})

The name of the database to create.

mysql_login_host string (default: localhost)

The remote host where the database will be created.

mysql_login_user string (default: root)

The master database user with superuser permissions to login as. This user is used by the role to create and configure the database. It should not be your app user.

mysql_login_password string required

The master password to use to login to the PostgreSQL host.

Contributing

See CONTRIBUTING for additional information.

Development

Install dependencies.

$ pipenv install

Run the playbook with molecule.

$ pipenv run molecule converge

Run the tests.

$ pipenv run molecule test

For more information on how to use Molecule for development, see our wiki.

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

About

Ansible role for configuring a MySQL database with application credentials

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages