[go: up one dir, main page]

Jump to content

Juju (software)

From Wikipedia, the free encyclopedia
Juju
Original author(s)Canonical
Initial releaseMay 5, 2011; 13 years ago (2011-05-05)
Stable release
3.5.4[1] / 1 October 2024; 2 months ago (1 October 2024)
Repository
Written inGo
Operating systemUbuntu, macOS, CentOS
TypeOrchestration
LicenseGNU Affero General Public License
Websitejuju.is Edit this on Wikidata

Juju is a free and open-source application modeling tool developed by Canonical Ltd.[2] Juju is an application management system. It was built to reduce the operation overhead of software by facilitating, deploying, configuring, scaling, integrating, and performing operational tasks on public and private cloud services along with bare-metal servers and local container-based deployments.

Juju modeling complex software topologies

[edit]

Juju aims to provide a modeling language that abstracts the specifics of operating complex software topologies to reduce the cost of operations and provide flexibility. A Juju model is an environment to manage and operate a set of software applications. Models can be operated on a variety of public clouds.

A Juju controller is a service that tracks the events, state, and user activity across multiple models. A database server tool and databases available on a server are an example of a Juju controller and its models. Each model can have different configurations, sets of operating software, and users with various levels of access. Examples of models include a web application, load balancer, and database in a "web-app" model. Models allow deployments to be isolated into logical solutions and managed separately.

Juju charms

[edit]

The central mechanism behind Juju is called charms. Charms can be written in any programming language that can be executed from the command line. A charm is a collection of YAML configuration files and a selection of hooks. A hook is an executable file that can be used to install software, start or stop a service, manage relationships with other charms, upgrade charms, scale charms, configure charms, etc. Charms can have many properties. Using charm helpers, boiler-plate code is automatically generated, thereby speeding up charm creation.

Juju client and environments

[edit]

Juju has two components: a client and a bootstrap node. After installing the client, one or more environments can be bootstrapped. Juju environments can be bootstrapped on various clouds. By creating a Juju Provider, additional cloud environments can be supported.

Juju can also be bootstrapped on bare-metal servers. Large deployments can use Canonical's Metal as a Service. Small deployments can use the manual provider, which allows any SSH-accessible Ubuntu machine to be converted into a Juju-managed machine. Juju can also be installed on a local Ubuntu machine via LXC operating system–level virtualization and the local provider.

Command line and GUI

[edit]

Juju has both command line and GUI access. Automatically available on every controller, the Juju GUI allows users to visually see what software is currently running in which models. Users can also search the Charm Store [see below] and browse results with detailed charm information. Complex software stacks can be deployed via drag-and-drop.

Bundles

[edit]

Juju also has a concept of bundles. A bundle is a portable specification for a model with charms, configuration, and relations, all specified in a declarative YAML format. A bundle YAML file can later be imported into another Juju model and shared with others. Bundles can also be uploaded to the Charm Store, allowing others to deploy them.

In this example bundle, two applications are modeled: MediaWiki and MySQL. Users can modify attributes declared in the bundle to customize their deployment:

services:
  mediawiki:
    charm: mediawiki
    num_units: 1
    options:
      debug: false
      name: Please set name of wiki
      skin: vector
  mysql:
    charm: mysql
    num_units: 1
    options:
      binlog-format: MIXED
      dataset-size: 80%
      tuning-level: safest
series: trusty
relations:
- - mediawiki:db
  - mysql:db

Charm Store

[edit]

The Juju Charm Store launched on April 3, 2012.[3] The Charm Store regularly tests charms to notify charm authors when code breaks, in addition to ensuring that Juju users have access to the latest versions of charms.

Supported platforms

[edit]

Juju is available on the Ubuntu Server, with agents available for Ubuntu, CentOS,[4] and Microsoft Windows.[5] Support for both CentOS and Windows has been contributed by Cloudbase Solutions.

References

[edit]
  1. ^ "Release 3.5.4". 1 October 2024. Retrieved 22 October 2024.
  2. ^ juju.is https://juju.is/. Retrieved 2024-08-26. {{cite web}}: Missing or empty |title= (help)
  3. ^ Castro, Jorge O. (April 3, 2012). "Why the juju charm store will change the way you use Ubuntu Server". Jorge's Stompbox. Archived from the original on 2012-04-05. Retrieved September 1, 2012.
  4. ^ "CentOS userdata by aznashwan · Pull Request #2066 · juju/juju". GitHub. Retrieved 2021-05-27.
  5. ^ "Add windows userdata by gabriel-samfira · Pull Request #189 · juju/juju". GitHub. Retrieved 2021-05-27.