Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niedbalski/juju-upgrade-plan
Plugin for define an upgrade plan
https://github.com/niedbalski/juju-upgrade-plan
Last synced: about 1 month ago
JSON representation
Plugin for define an upgrade plan
- Host: GitHub
- URL: https://github.com/niedbalski/juju-upgrade-plan
- Owner: niedbalski
- License: mit
- Created: 2015-04-07T22:51:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-08T12:21:05.000Z (over 9 years ago)
- Last Synced: 2024-10-15T08:32:58.446Z (3 months ago)
- Language: Python
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
Juju plugin for defining a system upgrade plan.
## Example
The following is an example configuration used by this plugin. (WIP)
```yaml
juju-core:
upgrade: true
version: latest # pick the latest, or use "1.23.0"
failure: abort # on failure, abort your upgrade plan
upload-tools: true#Here you define your upgrade plan steps
steps:
0:
postgresql:
charm-store-revision: 3
#branch: "@revision=foo,,@tag=foo"
failure: continue # on failure, continue with your upgrade plan
force: false
pre-upgrade:
failure: continue # if any of the commands fails ( local or on the service unit ) continue.
run:
local:
- "juju status"
unit:
- "ps -fea | grep pg"post-upgrade:
failure: continue
run:
local:
- "juju status"
unit:
- "ps -fea | grep mysql"
1:
rabbitmq-server:
charm-store-revision: 4
failure: continue
force: true#This will run , before any upgrade is applied (only local)
pre-upgrade:
failure: abort
run:
local:
- "juju status"#This will run , after all the upgrades are applied
post-upgrade:
failure: continue
run:
local:
- "juju add-relation foo:bar bar:foo"
```