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 18.104.22.168 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 22.214.171.124 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.
Speaker: Stephan Fabel, Arturo Suarez Date/Time: February 21, 2018 at 12PM EST / 5PM GMT OpenStack has often been positioned as an alternative to traditional proprietary virtualization environments. Join Arturo Suarez and Stephan Fabel…
At Canonical, we’ve been doing work to make sure Ubuntu OpenStack deploys on ARM servers as easily as on x86. Whether you have Qualcomm 2400 REP boards, Cavium ThunderX boards, HiSilicon D05 boards, or other Ubuntu …
Storage Made Easy (SME) today announced the availability of the Storage Made Easy™ Enterprise File Fabric™ charm through Canonical’s Juju charm store. The store provides access to a wide range of best practice solutions which…