Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
update playbook
Browse files Browse the repository at this point in the history
Signed-off-by: David Chung <[email protected]>
  • Loading branch information
David Chung committed May 9, 2017
1 parent 4d4cfc0 commit 45d69d6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/playbooks/linuxkit/examples/sshd/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ echo "Generated config file. Running moby."
moby build {{$output}}

{{ $bundle := `sshd` }}
echo "Checksum:"{{ file (cat $bundle "-initrd.img" | nospace) | sha256sum }}
echo "Checksum:"{{ fetch (cat `file://` (env `PWD`) $bundle "-initrd.img" | nospace) | sha256sum }}
5 changes: 5 additions & 0 deletions docs/playbooks/linuxkit/examples/sshd/destroy-instances.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{/* =% sh %= */}}

{{ $plugin := flag "instance-plugin" "string" "Name of plugin" | prompt "What instance plugin to target?" "string" "instance-hyperkit" }}

infrakit instance --name {{ $plugin }} describe -q | awk '{print $1}' | xargs infrakit instance --name {{ $plugin }} destroy
3 changes: 3 additions & 0 deletions docs/playbooks/linuxkit/examples/sshd/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ list-instances : list-instances.sh

# Inspect global state
inspect : inspect.sh

# Destroy all
destroy-all : destroy-instances.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ $memory := flag "memory" "int" "Memory in MB" | prompt "How many mb for memory?" "int" 1024 }}
{{ $disk := flag "disk" "int" "Disk in MB" | prompt "How many mb for disk?" "int" 100 }}

{{ $checksum := file (cat $linuxkitPath "/" $bundle "-initrd.img" | nospace) | sha256sum }}
{{ $checksum := fetch (cat "file://" $linuxkitPath "/" $bundle "-initrd.img" | nospace) | sha256sum }}

LogicalID: {{ $privateIP }}
Tags:
Expand Down
2 changes: 1 addition & 1 deletion docs/playbooks/linuxkit/examples/sshd/scale-group.ikt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ $memory := flag "memory" "int" "Memory in MB" | prompt "How many mb for memory?" "int" 1024 }}
{{ $disk := flag "disk" "int" "Disk in MB" | prompt "How many mb for disk?" "int" 100 }}

{{ $checksum := file (cat $linuxkitPath "/" $bundle "-initrd.img" | nospace) | sha256sum }}
{{ $checksum := fetch (cat "file://" $linuxkitPath "/" $bundle "-initrd.img" | nospace) | sha256sum }}

- Plugin: group
Properties:
Expand Down

0 comments on commit 45d69d6

Please sign in to comment.