Integrate Ansible into CLI client #160
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add the ability to spawn Ansible management tasks via the PVC CLI tool.
Can likely be embedded under the
cluster
subsection. Add tasks to run a bootstrap, full node run, cluster daemon upgrade, and full cluster upgrade, directly into the CLI tool.Would require addition to the JSON to capture where the cluster configuration is located, similar to how pvcbootstrapd does, but this doesn't seem problematic at all.
Can also potentially pave the way for tighter integration with pvcbootstrapd in the future as well, potentially launching that from the CLI as well.
We already know this integration is possible since it's done within pvcbootstrapd so the hard work is already done, just have to put the pieces together.
The CLI rewrite has paved the way for this to be feasible.
Planning to generate a new CLI section,
pvc ansible
, to handle this.Key features will include:
init
: Create a local configuration repository (wizard-style).new
: Configure a new cluster in the repository with auto-commit (wizard-style).update
: Update cluster configuration from the source (add/remove settings, etc.).edit
: Alter configuration of a cluster with auto-commit (wizard-style).run
: Subcategory, containing...a.
config
: Run the configuration playbook(s)b.
update
: Run a PVC daemon update (update-pvc-daemons.yml
oneshot)c.
upgrade
: Run a PVC cluster upgrade (upgrade-pvc-daemons.yml
oneshot)How exactly this will be implemented is still to be determined.