Created
June 24, 2021 00:26
-
-
Save Richard-Barrett/6a0bdefb6701c66cca100330dd9631e1 to your computer and use it in GitHub Desktop.
Mirantis MKE XFS Check Script
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
#!/bin/bash | |
# =============================================== | |
# Created by: Richard Barrett | |
# Date Created: 06/23/2021 | |
# Purpose: Mirantis MKE XFS Config Check | |
# Company: Mirantis | |
# =============================================== | |
ROLE = "$(sudo docker node inspect self | jq '.[] .Spec.Role')" | |
MANAGER = "$(echo '"manager"')" | |
if {{ $ROLE = '"manager"'}} | |
then <check and store xfsinfo on manager output> | |
elif {{ $ROLE =! '"manager"'}} | |
<check and store xfsinfo on worker output> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to match this to: https://mirantis.jira.com/browse/DESDI-138?atlOrigin=eyJpIjoiNjc4NjQxOTAwMTU4NGVjNDkyYzBmMjY1NzI5ZDlhZTciLCJwIjoiaiJ9