ubuntu advantage #4

Supports: focal bionic xenial
Add to new model

Description

Ubuntu Advantage charm


Ubuntu Advantage charm

Description

This charm enables Ubuntu Advantage (https://ubuntu.com/advantage) subscriptions

Usage

Be sure to replace <token> with a valid value from https://ubuntu.com/advantage

juju deploy cs:ubuntu
juju deploy cs:~ubuntu-advantage-charmers/ubuntu-advantage --config ubuntu-advantage-token=<token>
juju add-relation ubuntu ubuntu-advantage

Developing

Create and activate a virtualenv with the development requirements:

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt

Testing

The Python operator framework includes a very nice harness for testing operator behaviour without full deployment. Just run_tests:

./run_tests

Configuration

contract_url
(string) Contract service url to use. Will default to the standard one if not supplied.
ppa
(string) PPA from which to install the ubuntu-advantage-tools package
ppa:ua-client/stable
token
(string) Ubuntu Advantage subscription token obtained from https://ubuntu.com/advantage