Deploy a MariaDB
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
imports
scripts
.gitignore
README.md
aws.yaml
azure.yaml
gcp.yaml
openstack.yaml

README.md

CircleCI

MariaDB Blueprint

This blueprint deploys a MariaDB/Galera Cluster. This blueprint is part of the End-to-end Solutions Package, which demonstrates functionality in Cloudify using a Database, Load Balancer, and several front-end applications. After completing this deployment, continue with the solution package by installing the HAProxy Blueprint.

Compatibility

Tested with:

  • Cloudify 4.3.1

Pre-installation steps

Please note the following requirement for manager configuration.

This example requires configuration of multiple management (agent) networks upon installation of your Cloudify Manager.

The required name of the agent network is external, and should map to a public IP address. For example:

[centos@ip-10-10-4-47 ~]$ sudo grep "networks" /etc/cloudify/config.yaml 
    networks: {default: 10.10.4.47, external: 54.67.45.103}

Upload the required plugins:

Check the relevant blueprint for the latest version of the plugin.

Install the relevant example network blueprint for the IaaS that you wish to deploy on:

In addition to the pre-requisites for your example network blueprint, you will need the following secrets:

  • agent_key_private and agent_key_public. If you do not already have these secrets, can generate them with the keys.yaml blueprint in the helpful blueprint repo.

Installation

On your Cloudify Manager, navigate to Local Blueprints select Upload.

Right-click and copy URL. Paste the URL where it says Enter blueprint url. Provide a blueprint name, such as db in the field labeled blueprint name.

Select the blueprint for the relevant IaaS you wish to deploy on, for example aws.yaml from Blueprint filename menu. Click Upload.

After the new blueprint has been created, click the Deploy button.

Navigate to Deployments, find your new deployment, select Install from the _workflow_s menu. At this stage, you may provide your own values for any of the default deployment inputs.

For example, the openstack.yaml blueprint requires that you provide a value for image. This is the ID of a Centos 7 image. You may also need to override the default flavor as the default value 2 may not be available in your account or appropriate.

Uninstallation

Navigate to the deployment and select Uninstall. When the uninstall workflow is finished, select Delete deployment.

Database Substitution

You can modify this blueprint to support another DBMS besides MariaDB.

To see an example of how to do this, make the following change to the blueprint.

Replace the MariaDB imports with Postgres imports:

  - imports/cloud-config.yaml
  - imports/mariadb.yaml
#  - imports/cloud-config.yaml
#  - imports/mariadb.yaml
  - imports/cloud-config-postgres.yaml
  - imports/postgresql.yaml