Skip to content

Commit

Permalink
add inventory example for kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
gadelkareem authored Dec 12, 2018
1 parent 861527f commit eb226fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/Supfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb226fd

Please sign in to comment.