Skip to content

Instantly share code, notes, and snippets.

@Richard-Barrett
Created June 24, 2021 00:26
Show Gist options
  • Save Richard-Barrett/6a0bdefb6701c66cca100330dd9631e1 to your computer and use it in GitHub Desktop.
Save Richard-Barrett/6a0bdefb6701c66cca100330dd9631e1 to your computer and use it in GitHub Desktop.
Mirantis MKE XFS Check Script
#!/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