Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created May 20, 2013 17:50
Show Gist options
  • Save tbatchelli/5613923 to your computer and use it in GitHub Desktop.
Save tbatchelli/5613923 to your computer and use it in GitHub Desktop.
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> -----------------------------------------
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> #!/usr/bin/env bash
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'package-manager configure :proxy http://10.0.3.2:3128...';
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> {
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'remote-file /etc/apt/apt.conf.d/50pallet...';
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> {
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:150
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:322
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:315
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { cat > /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new <<'EOFpallet'
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> ACQUIRE::http::proxy "http://10.0.3.2:3128";
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> EOFpallet
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> } && \
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:198
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> filediff= && \
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:199
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> if [ -e /etc/apt/apt.conf.d/50pallet ] && [ -e /var/lib/pallet/etc/apt/apt.conf.d/50pallet ]; then
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:201
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:168
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> diff -u /etc/apt/apt.conf.d/50pallet /var/lib/pallet/etc/apt/apt.conf.d/50pallet
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:202
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> filediff=$?
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:204
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> md5diff= && \
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:205
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> if [ -e /var/lib/pallet/etc/apt/apt.conf.d/50pallet ] && [ -e /var/lib/pallet/etc/apt/apt.conf.d/50pallet.md5 ]; then
2013-05-20 10:44:06,465 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:207
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:246
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> ( cd $(dirname /var/lib/pallet/etc/apt/apt.conf.d/50pallet.md5) && md5sum --quiet --check $(basename /var/lib/pallet/etc/apt/apt.conf.d/50pallet.md5) )
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:208
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> md5diff=$?
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:210
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> contentdiff= && \
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:211
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> if [ -e /etc/apt/apt.conf.d/50pallet ] && [ -e /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new ]; then
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:213
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:168
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> diff -u /etc/apt/apt.conf.d/50pallet /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:214
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> contentdiff=$?
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,466 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:217
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> errexit=0 && \
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:218
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> if [ "${filediff}" == "1" ]; then
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:220
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> echo Existing file did not match the pallet master copy: FAIL
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:222
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> errexit=1
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:224
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> if [ "${md5diff}" == "1" ]; then
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:226
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> echo Existing content did not match md5: FAIL
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:227
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> errexit=1
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:230
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> [ "${errexit}" == "0" ] && \
2013-05-20 10:44:06,467 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:233
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> if ! ( [ "${contentdiff}" == "0" ] ) && [ -e /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new ]; then
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:237
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:77
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> cp -f --backup="numbered" /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new /var/lib/pallet/etc/apt/apt.conf.d/50pallet
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:239
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:61
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> mv -f /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new /etc/apt/apt.conf.d/50pallet
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> fi && \
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> ( # file.clj:26
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> cp=$(readlink -f /etc/apt/apt.conf.d/50pallet) && \
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> cd $(dirname ${cp}) && \
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:228
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> md5sum $(basename ${cp})
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> )>/var/lib/pallet/etc/apt/apt.conf.d/50pallet.md5 && \
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:247
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> echo MD5 sum is $(cat /var/lib/pallet/etc/apt/apt.conf.d/50pallet.md5) && \
2013-05-20 10:44:06,468 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:251
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:149
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> ls -t /etc/apt/apt.conf.d/50pallet.~[0-9]*~ 2> /dev/null | \
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:163
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> tail -n "+6" | \
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:28
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> xargs \
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> rm --force
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> } || { echo '#> remote-file /etc/apt/apt.conf.d/50pallet : FAIL'; exit 1;} >&2
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> echo '#> remote-file /etc/apt/apt.conf.d/50pallet : SUCCESS'
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==>
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> } || { echo '#> package-manager configure :proxy http://10.0.3.2:3128 : FAIL'; exit 1;} >&2
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> echo '#> package-manager configure :proxy http://10.0.3.2:3128 : SUCCESS'
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> echo 'package-manager update ...';
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> {
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> # package.clj:518
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:598
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> apt-get -qq update
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> } || { echo '#> package-manager update : FAIL'; exit 1;} >&2
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> echo '#> package-manager update : SUCCESS'
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==>
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> exit $?
2013-05-20 10:44:06,469 DEBUG p.s.execute 192.168.56.103 ==> ------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment