Skip to content

Instantly share code, notes, and snippets.

View eric-aldinger's full-sized avatar

Eric Aldinger eric-aldinger

  • @ShiftWise
  • right here
View GitHub Profile
d-i clock-setup/utc boolean false
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
#!/bin/bash
parse_json() {
secretsJson=$1
echo $secretsJson |
jq --raw-output --compact-output 'to_entries | .[] | .key+"="+.value+"; export "+.key+";"' |
while read command;
do
eval "${command} echo 'this is the var within the loop: '; env|grep rank;";echo "this is the command: ${command}";echo "this is parent pid in the loop: "+$$; echo "this is the current pid in the loop: "+$BASHPID;
done;
#!/bin/bash
secretsJson='{
"somename":"hello",
"rank":"admiral"
}'
echo $secretsJson | jq --raw-output --compact-output 'to_entries | .[] | "export " + .key+"=\""+.value+"\""' | while read command; do eval "${command}; echo 'env vars within command';env|grep somename; env |grep rank;"; done
echo "test env is set outside command"
env|grep somename; env |grep rank;
2017/01/19 13:54:35 [INFO] Packer version: 0.12.1
2017/01/19 13:54:35 Packer Target OS/Arch: linux amd64
2017/01/19 13:54:35 Built with Go Version: go1.7.3
2017/01/19 13:54:35 Detected home directory from env var: /home/vagrant
2017/01/19 13:54:35 Using internal plugin for digitalocean
2017/01/19 13:54:35 Using internal plugin for file
2017/01/19 13:54:35 Using internal plugin for vmware-iso
2017/01/19 13:54:35 Using internal plugin for vmware-vmx
2017/01/19 13:54:35 Using internal plugin for cloudstack
2017/01/19 13:54:35 Using internal plugin for amazon-ebsvolume

plugins.sbt

logLevel := Level.Warn addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.4.0")

addSbtPlugin("org.scala-sbt.plugins" % "sbt-onejar" % "0.8")

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.1.4")