In the previous recipe, we learned how to install the Juju service orchestration framework. Now, we will look at how to use Juju to deploy and manage a service.
We will deploy a sample WordPress installation with a load balancer. The MySQL service will be used as the database for WordPress. Both services are available in the Juju Charm store.
Follow these steps to manage services with Juju:
Let's start by deploying the WordPress service with
juju deploy
. This should give you the following output:$ juju deploy wordpress Added charm "cs:trusty/wordpress-4" to the model. Deploying charm "cs:trusty/wordpress-4" with the charm series "trusty".
Now, deploy a MySQL service to store WordPress contents:
$ juju deploy mysql Added charm "cs:trusty/mysql-38" to the model. Deploying charm "cs:trusty/mysql-38" with the charm series "trusty".
Now, you can use
juju status
to confirm your deployed services...