Skip to content

Commit

Permalink
Merge pull request pressly#153 from gadelkareem/patch-1
Browse files Browse the repository at this point in the history
add inventory example for kubernetes
  • Loading branch information
VojtechVitek authored Dec 13, 2018
2 parents 861527f + eb226fd commit be6dff4
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 be6dff4

Please sign in to comment.