From eb226fd06d318ad3f3067fbddc7e15a37a4c845c Mon Sep 17 00:00:00 2001 From: Waleed Gadelkareem Date: Wed, 12 Dec 2018 16:05:59 +0100 Subject: [PATCH] add inventory example for kubernetes --- example/Supfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/Supfile b/example/Supfile index ebd46e5..5140496 100644 --- a/example/Supfile +++ b/example/Supfile @@ -30,6 +30,9 @@ networks: prod: inventory: for i in 1 2 3 4; do echo "ubuntu@prod$i.example.com"; done + + k8s: + inventory: for i in $(kubectl get nodes -o jsonpath={.items[*].status.addresses[?\(@.type==\"InternalIP\"\)].address}); do echo "ubuntu@$i"; done commands: # Named set of commands to be run remotely