Your submission was sent successfully! Close

Jump to main content
  1. Blog
  2. Article

Adam Stokes
on 25 November 2015

Juju plugin: search charmstore


Sometimes it is just quicker to type a few commands on the cli than opening your browser window, going to jujucharms.com and typing out a search term to see what is available to you. So I wrote a tiny plugin to speed that up a bit.

Install the plugin

Currently supports Trusty, Vivid, and Wily

$ sudo apt-add-repository ppa:adam-stokes/juju-query
$ sudo apt-get update
$ sudo apt-get install juju-query

Searching the charmstore

If you know the exact name of the charm:

$ juju search ghost

Results in

Precise

 cs:precise/ghost-3

Example:

 juju deploy cs:precise/ghost-3

Get additional information:

 juju info cs:precise/ghost-3

Or part of a charm name

$ juju search nova-cloud\*

Gives us

Trusty

 cs:trusty/nova-cloud-controller-64

Precise

 cs:precise/nova-cloud-controller-55

Namespaced

 cs:~landscape/trusty/nova-cloud-controller-6
 cs:~landscape/trusty/nova-cloud-controller-next-49
 cs:~openstack-charmers-next/trusty/nova-cloud-controller-17
 cs:~cory-benfield/trusty/nova-cloud-controller-10
 cs:~andybavier/trusty/nova-cloud-controller-3
 cs:~mmenkhof/trusty/nova-cloud-controller-1
 cs:~plumgrid-team/trusty/nova-cloud-controller-0
 cs:~adam-collard/trusty/nova-cloud-controller-0
 cs:~bjornt/trusty/nova-cloud-controller-1
 cs:~chad.smith/trusty/nova-cloud-controller-0
 cs:~project-calico/trusty/nova-cloud-controller-0
 cs:~landscape/trusty/nova-cloud-controller-stable-integrityerror-1
 cs:~niedbalski/trusty/nova-cloud-controller-0
 cs:~celebdor/trusty/nova-cloud-controller-1
 cs:~landscape/trusty/nova-cloud-controller-leadership-election-0
 cs:~nuage-canonical/trusty/nova-cloud-controller-1
 cs:~le-charmers/trusty/nova-cloud-controller-0
 cs:~openstack-ubuntu-testing/precise/nova-cloud-controller-38
 cs:~charmers/precise/nova-cloud-controller-27
 cs:~springfield-team/precise/nova-cloud-controller-11
 cs:~gandelman-a/precise/nova-cloud-controller-2
 cs:~ivoks/precise/nova-cloud-controler-0

Example:

 juju deploy cs:~landscape/trusty/nova-cloud-controller-6

Get additional information:

 juju info cs:~landscape/trusty/nova-cloud-controller-6

Getting more information

This will give you the output of the README stored on jujucharms.com

$ juju info ghost|less

And the output of the README right to your screen \o/

ghost

Ghost is a simple, powerful publishing platform.

README

# Overview

Ghost is an Open Source application which allows you to write and publish your  
own blog, giving you the tools to make it easy and even fun to do. It's simple,  
elegant, and designed so that you can spend less time making your blog work and  
more time blogging.

This is an updated charm originally written by Jeff Pihach and ported over to  
the charms.reactive framework and updated for Trusty and the latest Ghost release.

# Quick Start

After you have a Juju cloud environment running:

    $ juju deploy ghost
    $ juju expose ghost

To access your newly installed blog you'll need to get the IP of the instance.

    $ juju status ghost

Visit `:2368/ghost/` to create your username and password.  
Continue setting up Ghost by following the  
[usage documentation](http://docs.ghost.org/usage/).

You will want to change the URL that Ghost uses to generate links internally to  
the URL you will be using for your blog.

    $ juju set ghost url=

# Configuration

To view the configuration options for this charm open the `config.yaml` file or:

    $ juju get ghost

This plugin utilizes theblues python library for interfacing with the charmstore’s api. Check out the project on their github page.

If you want to contribute to the plugin you can find that on my github page. Some other features I’d like to add is getting the configuration options, searching bundles, show what relations are provided/required, etc.

Read original article

Related posts


Michael C. Jaeger
4 September 2023

Efficiency redefined: Discover the power of software operators during Operator Day, co-located at KubeCon North America 2023

Charms Article

The 7th Operator Day is a virtual event and will take place on the first day of the KubeCon week, Monday, 6 November 2023. The event is entirely virtual. You can dial in from anywhere and attend. You can register at the KubeCon NA 2023 conference or directly at the event page. ...


Michael C. Jaeger
22 June 2023

Adopting a low-ops approach with software operators

Charms Article

How enterprise DevOps teams can automate repetitive tasks while staying in control  Low-ops means minimising the effort for operating applications by automating as many tasks as possible. However, given the maximum automation, how can an SRE or DevOps engineer stay in control? Doesn’t automating tasks and being in control sound like a par ...


Michael C. Jaeger
6 January 2022

Application composability and the shipping container

Charms Article

The previous blog post talked about the composability of applications. The key element for composing applications is defining the relations between application elements. And supporting relations is one of the advantages of the Charmed Operator Framework – including its runtime, the Charmed Operator Lifecycle Manager. The shipping containe ...