June 2018
Beginner
578 pages
13h 39m
English
Now that our MariaDB installation is complete, we should do something with it. There are a few sample databases available on GitHub. Let's look at importing the employee database provided by datacharmer. We will be using a slightly altered version of the SQL dumps, but more on that later in the section.
We are going to be using nested variables for this part of the playbook; these can be found in mariadb/defaults/main.yml:
mariadb_sample_database: create_database: true source_url: "https://github.com/russmckendrick/test_db/archive/master.zip" path: "/tmp/test_db-master" db_name: "employees" db_user: "employees" db_password: "employees" dump_files: - "employees.sql" - "load_departments.dump" - "load_employees.dump" ...
Read now
Unlock full access