Skip to content

Commit 74cb7ec

Browse files
authored
Document getclusters (#183)
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent ed185c1 commit 74cb7ec

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,20 @@ python manage.py setclusters clusters.yaml
169169
Note that when access token expires, the refresh token is used to obtain new access token.
170170
At the same time the AAP returns also new refresh token.
171171
The Automation Dashboard internally updates both values.
172-
Implications:
172+
Implication:
173173

174-
- after token refresh happens, if you need to run `manage.py setclusters` again, you need to create a new token.
175174
- The same access and refresh tokens can be used only by one Automation Dashboard installation
176175

176+
If you ever need to run `python manage.py setclusters` again,
177+
you need to ensure the access and refresh token are still valid, for each AAP cluster.
178+
Use command below to show what is currently configured.
179+
The output can be stored into file, and used as input for `python manage.py setclusters`.
180+
181+
```bash
182+
python manage.py getclusters --decrypt`
183+
python manage.py getclusters --decrypt` > clusters-new.yaml
184+
```
185+
177186
### Setup SSO login with AAP
178187

179188
Configure OAuth2 authentication by editing the `local_settings.py` file:

0 commit comments

Comments
 (0)