There are few things that really get me excited when it comes to technology. But those that do can be classified as follows:
Canonical, the company I work for, has released a tool which touches each of my interest areas, so much so that it’s almost magical.
Conjure-up is a tool whose primary goal is to simplify deployment. It uses the concept of “spells” that are descriptions(yaml files, charms, and deployment scripts) of how software should be deployed.
Here the official description of how it works from the website:
conjure-up provides you with a streamlined, turnkey solution. In order to provide that streamlined approach, conjure-up makes use of processing scripts. These scripts are executed at 3 different times in the deployment, just after a Juju bootstrap, just before a Juju deploy, and right after a Juju deploy.
Processing scripts give you the flexibility to alter LXD profiles in order to expose additional network interfaces to Neutron services, import images into Glance once the service is available, or notifying the Deployment status screen that your solution is ready and can be viewed at a specific URL.
With these powerful concepts you can package up the solution that can then be provided to coworkers who can easily deploy your solutions in any Public Cloud, MAAS, or LXD.
I currently use conjure-up to do a few routine tasks in my daily tech life:
Conjure-up can deploy spells to three different locations:
There are a few spells currently available to the general public today:
I will throughout the week will use one or more of these for as a way to demonstration our various tooling and solutions.
For this blog post, I will show you how to use conjure-up to deploy the Ghost spell to the AWS cloud. I do a lot of blogging and Ghost is a pretty cool application for that.
Now let’s install Conjure-up
$ sudo apt-add-repository ppa:conjure-up/next $ sudo apt-add-repository ppa:juju/devel $ sudo apt-get update $ sudo apt-get install conjure-up
This may take a little while to install all of the various packages required. Since conjure-up relies heavily on Juju, the big software modeling & orchestration tool, it will also install that.
Now let’s get to deploying the Ghost Application! It’s very simple to do, just:
$ conjure-up ghost
One conjure-up is running just follow the onscreen prompts.
Conjure up will do a few things during the install:
Once conjure-up has finished installing the ghost spell there are just a few more things you need to do. We will use Juju to finalize the configuration of the ghost application and expose it to the world.
First, expose your blog to the public
$ juju expose haproxy
Grab the PUBLIC-ADDRESS from the output of the command afterwards setting the Ghost URL correctly.
$ juju status haproxy ..... UNIT WORKLOAD AGENT MACHINE PUBLIC-ADDRESS PORTS MESSAGE haproxy/0 unknown idle 1 220.127.116.11 80/tcp .... $ juju set-config ghost url=http://<PUBLIC-ADDRESS>
Additionally , to create your ghost system account do the following
$ juju expose ghost
$ juju status ghost ..... UNIT WORKLOAD AGENT MACHINE PUBLIC-ADDRESS PORTS MESSAGE ghost/0 unknown idle 1 18.104.22.168 2368/tcp ....
<PUBLIC-ADDRESS>:2368/ghost/ to create your username and password. Continue setting up Ghost by following the usage documentation.
Once you are finished setting up your ghost account and setting it up, I suggest securing it by doing
$ juju unexpose ghost
That’s it. Simple, easy, magical set up of the Ghost Blogging application.
As mentioned earlier I use conjure-up to run demos, validate designs, and just generally have fun. If you are a cloud architect, engineer, developer or anyone else that needs to rapidly deploy software, conjure-up is your tool.
Summon the power of conjure-up today and experience the magic for yourself!
Btw, be on the lookout for an upcoming blog post on how to craft your own spell.
Ubuntu offers all the training, software infrastructure, tools, services and support you need for your public and private clouds.
The Canonical commissioned study found that 60% of financial services businesses bank on the benefits of multi-cloud to support emerging technologies, but significant skills gap still exists An independent report by 451 Research, ‘Multi-…
Want to enable your developers to deploy highly available web applications, web services or microservices? Do you also need to cater for existing and legacy workloads? Sounds like your requirements are in the sweet spot between what…
The appeal of Kubernetes is universal. Application development, operations and infrastructure teams recognise diverse reasons for its immediate utility and growing potential — a testament of Kubernetes’ empathetic design. Web apps,…