This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg_path = '/vagrant/hello_world.py' | |
# we use a trick here to make the configuration change with | |
# the contents of the file, for simplicity. in a normal setting, packages would be | |
# versioned, and the version number would be changed in the configuration. | |
import hashlib | |
with open(pkg_path, 'rb') as f: | |
pkg_checksum = hashlib.md5(f.read()).hexdigest() | |
# copy hello_world.py into the local sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bhouse@admin1:~$ diff -u push-warm-spare{,.new} | |
--- push-warm-spare 2014-12-03 18:02:14.894289218 +0000 | |
+++ push-warm-spare.new 2014-12-03 18:01:07.985219963 +0000 | |
@@ -1,4 +1,4 @@ | |
-#!/bin/sh -e | |
+#!/bin/sh -exv | |
date | |
@@ -25,7 +25,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "test template for zdops workshop", | |
"Parameters" : { | |
"KeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance", | |
"Type" : "String" | |
} |
NewerOlder