Follow the steps below to get started.
Running the following command will produce a .charm file,
license-manager-cli.charm:
$ make charmThe linter can be invoked with:
$ make lintThis requires flake8 and flake8-docstrings. Make sure to have them
available, either in a virtual environment or via a native package.
Create a text file license-manager-cli.yaml with this content:
license-manager-cli:
license-manager-backend-url: "http://<url-pointing-to-the-license-manager-backend>"
oidc-domain: "<domain-collected-from-oidc>"
oidc-client-id: "<client-id-for-oidc-app>"Using the built charm and the defined config, run the following command to deploy the charm:
$ juju deploy ./license-manager-cli.charm \
--config ./license-manager-cli.yaml \
--series centos7
$ juju relate license-manager-cli login # or any other node where it should be installedTo make a new release of the License Manager CLI Charm:
- Update the CHANGELOG file, moving the changes under the Unreleased section to the new version section. Always keep an
Unreleasedsection at the top. - Create a new commit with the title
Release x.y.z - Create a new annotated Git tag, adding a summary of the changes in the tag message:
$ git tag --annotate --sign x.y.z- Push the new tag to GitHub:
$ git push --tagsTo modify the charm configuration after it was deployed, use the juju config command. For example:
juju config license-manager-cli license-manager-backend-url=somenewvalue