fix branding, route cron mail, add msca shim
[awsible] / roles / msca / files / msca.sh
diff --git a/roles/msca/files/msca.sh b/roles/msca/files/msca.sh
new file mode 100755 (executable)
index 0000000..674730b
--- /dev/null
@@ -0,0 +1,12 @@
+# configure environment for MSCA AWS things
+
+# as of pip2.7, all pip installed binaries are here
+# pathmunge /usr/local/bin
+
+## Add user-data to environment.  Because we use asgard this should be safe...
+## came from http://stackoverflow.com/questions/10520605/bashs-source-command-not-working-with-a-file-curld-from-internet
+## NOTE, if you create your own init script you must copy the below to /etc/default/myScriptName
+source /dev/stdin <<< "$(curl -s --fail http://169.254.169.254/latest/user-data)"
+
+# set 'screen' title
+echo -n -e "\033k$INSTANCE_ID-$CLOUD_CLUSTER\033\\"