-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f0fbdf
commit 9a1b65e
Showing
5 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# restore snapshot | ||
# snapshot (restore) | ||
|
||
```{admonition} Use case | ||
:class: note | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# snapshot | ||
# snapshot (create) | ||
|
||
```{admonition} Use case | ||
:class: note | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# upgrade cluster | ||
|
||
```{admonition} Use case | ||
:class: note | ||
* You have an existing cluster deployed via HashiStack. | ||
* You have the unseal key and root token corresponding. | ||
``` | ||
---- | ||
```{admonition} Be aware | ||
:class: warning | ||
* Always [create a snapshot](snapshot) before cluster upgrade. | ||
* Always [be trained for a snapshot restore](restore) before cluster upgrade. | ||
These operations should not be discovered under the stress of any live issue. | ||
``` | ||
|
||
## Change role variable to desired version | ||
|
||
```{code-block} | ||
:caption: In any var file applied to hashistack_masters ansible group | ||
--- | ||
hs_vault_version: "<your desired version>" | ||
``` | ||
```{admonition} See also | ||
:class: note | ||
* [vault roles variables](/reference/roles/role_vault "Internals") | ||
``` | ||
|
||
|
||
## Apply upgrade procedure | ||
|
||
```{code-block} | ||
:caption: Run upgrade | ||
> ansible-playbook wescale.hashistack.vault_upgrade | ||
``` | ||
|
||
The playbook will sequentially: | ||
|
||
* upgrade cluster's follower nodes | ||
* upgrade the leader node | ||
* unseal the cluster | ||
|