Created
January 26, 2011 21:22
-
-
Save dysinger/797490 to your computer and use it in GitHub Desktop.
Pallet Config
This file contains hidden or 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
This file contains hidden or 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
| (ns apparatus.pallet | |
| (require [pallet.core :as core] | |
| [pallet.resource :as resource] | |
| [pallet.resource.package :as package] | |
| [pallet.resource.exec-script :as exec] | |
| [pallet.crate.automated-admin-user :as admin] | |
| [pallet.crate.java :as java])) | |
| (core/defnode apparatus | |
| "Define an node" | |
| {;; :image-id "us-east-1/ami-a6f504cf" ;; 32 bit Maverick | |
| ;; :image-id "us-east-1/ami-08f40561" ;; 64 bit Maverick | |
| :image-id "us-east-1/ami-88f504e1" ;; 32 bit Lucid | |
| ;; :image-id "us-east-1/ami-f8f40591" ;; 64 bit Lucid | |
| ;; :os-family :ubuntu | |
| ;; :os-version-matches "10.10" | |
| ;; :min-cores 4 | |
| ;; :min-ram (* 32 1024) | |
| :inbound-ports [22 8080]} | |
| :bootstrap | |
| (resource/phase | |
| (package/package-manager :update) | |
| (exec/exec-checked-script "Upgrading" (apt-get "upgrade -y")) | |
| (admin/automated-admin-user) | |
| (java/java :sun))) | |
This file contains hidden or 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
| 2011-01-26 08:45:17,452 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 08:45:26,749 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 08:45:26,755 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 08:45:26,756 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 08:45:26,756 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 08:45:26,757 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 08:45:26,842 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@266901dc>}} 1} [] | |
| 2011-01-26 08:45:26,842 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 08:45:27,593 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 08:45:27,593 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@266901dc>}} 1} | |
| 2011-01-26 08:45:27,596 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@266901dc>}} 1} | |
| 2011-01-26 08:45:27,596 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 08:45:27,596 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 08:45:27,597 INFO [pallet.core] (main) Starting 1 nodes for :node | |
| 2011-01-26 08:45:27,619 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 08:45:27,620 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 08:45:27,620 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 08:45:27,628 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 08:45:27,628 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 08:45:27,628 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 08:45:27,638 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,638 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@1732781b invoking with (tim) empty? false | |
| 2011-01-26 08:45:27,639 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 08:45:27,639 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 08:45:27,639 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 08:45:27,642 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,642 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,642 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 08:45:27,643 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,643 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,643 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 08:45:27,644 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,644 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 08:45:27,645 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 08:45:27,664 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 08:45:27,664 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 08:45:27,664 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 08:45:27,670 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,671 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@636b1b61 invoking with () empty? true | |
| 2011-01-26 08:45:27,672 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 08:45:27,672 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 08:45:27,672 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 08:45:27,674 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 08:45:27,674 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 08:45:27,674 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 08:45:27,675 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,675 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,675 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 08:45:27,676 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/universe/" " ) print $0 \" \" \"" "universe" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,676 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,676 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 08:45:27,677 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 08:45:27,677 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 08:45:27,677 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 08:45:27,677 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 08:45:27,677 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 08:45:27,677 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 08:45:27,678 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,678 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,678 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 08:45:27,678 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/multiverse/" " ) print $0 \" \" \"" "multiverse" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,678 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 08:45:27,678 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 08:45:27,679 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 08:45:27,680 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 08:45:27,680 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 08:45:27,680 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 08:45:27,680 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 08:45:27,680 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 08:45:27,681 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,681 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@636b1b61 invoking with () empty? true | |
| 2011-01-26 08:45:27,681 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 08:45:27,681 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 08:45:27,681 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 08:45:27,687 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-bin shared/present-sun-dlj-v1-1 note" "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 08:45:27,687 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 08:45:27,687 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 08:45:27,687 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,687 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@cd2b045 invoking with (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 08:45:27,688 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-jdk shared/present-sun-dlj-v1-1 note" "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 08:45:27,688 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 08:45:27,688 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 08:45:27,688 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,688 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@cd2b045 invoking with (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 08:45:27,691 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 08:45:27,691 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@5c328896 invoking with (tim) empty? false | |
| 2011-01-26 08:45:27,692 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 08:45:27,692 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 08:45:27,692 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 08:45:27,693 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 08:45:27,693 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,693 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@79a55f23 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 08:45:27,694 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@79a55f23 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 08:45:27,694 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 08:45:27,694 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 08:45:27,695 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,695 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@58093139 invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 08:45:27,695 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 08:45:27,695 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 08:45:27,695 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 08:45:27,696 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,696 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@58093139 invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 08:45:27,696 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 08:45:27,702 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 08:45:27,702 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 08:45:27,703 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 08:45:27,703 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 08:45:27,704 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 08:45:27,704 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 08:45:27,704 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 08:45:27,707 TRACE [pallet.stevedore] (main) INVOKE os-version-name | |
| 2011-01-26 08:45:27,707 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:308] os-version-name () | |
| 2011-01-26 08:45:27,707 TRACE [pallet.script] (main) Looking up script :os-version-name | |
| 2011-01-26 08:45:27,707 TRACE [pallet.script] (main) Found implementations (:default [#{:debian :ubuntu}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,707 TRACE [pallet.script] (main) Found implementation for os-version-name - pallet.resource.hostinfo$eval5100$script_fn_for_os_version_name__5101@437ec256 invoking with () empty? true | |
| 2011-01-26 08:45:27,708 TRACE [pallet.stevedore] (main) INVOKE lsb_release(-c -s) | |
| 2011-01-26 08:45:27,708 TRACE [pallet.script] (main) invoke-target [pallet/resource/hostinfo.clj:null] lsb_release (-c -s) | |
| 2011-01-26 08:45:27,708 TRACE [pallet.script] (main) Looking up script :lsb_release | |
| 2011-01-26 08:45:27,708 TRACE [pallet.stevedore] (main) INVOKE backup-option | |
| 2011-01-26 08:45:27,709 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:130] backup-option () | |
| 2011-01-26 08:45:27,709 TRACE [pallet.script] (main) Looking up script :backup-option | |
| 2011-01-26 08:45:27,709 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,709 TRACE [pallet.script] (main) Found implementation for backup-option - pallet.resource.file$eval3665$script_fn_for_backup_option__3666@3708beb8 invoking with () empty? true | |
| 2011-01-26 08:45:27,711 TRACE [pallet.stevedore] (main) INVOKE mv(-f "--backup=numbered" "/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 08:45:27,711 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:223] mv (-f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 08:45:27,711 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 08:45:27,712 TRACE [pallet.stevedore] (main) INVOKE mv("/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 08:45:27,712 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:229] mv (/etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 08:45:27,712 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 08:45:27,713 TRACE [pallet.stevedore] (main) INVOKE md5sum-verify("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 08:45:27,713 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] md5sum-verify (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 08:45:27,713 TRACE [pallet.script] (main) Looking up script :md5sum-verify | |
| 2011-01-26 08:45:27,713 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] [#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,714 TRACE [pallet.script] (main) Found implementation for md5sum-verify - pallet.resource.file$eval3649$script_fn_for_md5sum_verify__3651@1f213e42 invoking with (/etc/apt/sources.list.d/Partner.list.md5) empty? false | |
| 2011-01-26 08:45:27,715 TRACE [pallet.stevedore] (main) INVOKE diff(-u "/etc/apt/sources.list.d/Partner.list" "/etc/apt/sources.list.d/Partner.list.new") | |
| 2011-01-26 08:45:27,715 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] diff (-u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new) | |
| 2011-01-26 08:45:27,715 TRACE [pallet.script] (main) Looking up script :diff | |
| 2011-01-26 08:45:27,716 TRACE [pallet.stevedore] (main) INVOKE echo("Existing content did not match md5:") | |
| 2011-01-26 08:45:27,716 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] echo (Existing content did not match md5:) | |
| 2011-01-26 08:45:27,716 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 08:45:27,716 TRACE [pallet.stevedore] (main) INVOKE exit(1) | |
| 2011-01-26 08:45:27,716 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] exit (1) | |
| 2011-01-26 08:45:27,716 TRACE [pallet.script] (main) Looking up script :exit | |
| 2011-01-26 08:45:27,717 TRACE [pallet.stevedore] (main) INVOKE md5sum("/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 08:45:27,718 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:136] md5sum (/etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 08:45:27,718 TRACE [pallet.script] (main) Looking up script :md5sum | |
| 2011-01-26 08:45:27,718 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,718 TRACE [pallet.script] (main) Found implementation for md5sum - pallet.resource.file$eval3637$script_fn_for_md5sum__3639@159a8bf2 invoking with (/etc/apt/sources.list.d/Partner.list) empty? false | |
| 2011-01-26 08:45:27,719 TRACE [pallet.stevedore] (main) INVOKE echo("MD5 sum is" (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 08:45:27,719 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] echo (MD5 sum is (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 08:45:27,719 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 08:45:27,719 TRACE [pallet.stevedore] (main) INVOKE cat("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 08:45:27,719 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] cat (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 08:45:27,719 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 08:45:27,720 TRACE [pallet.stevedore] (main) INVOKE ls(-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") "2>" "/dev/null") | |
| 2011-01-26 08:45:27,721 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] ls (-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") 2> /dev/null) | |
| 2011-01-26 08:45:27,721 TRACE [pallet.script] (main) Looking up script :ls | |
| 2011-01-26 08:45:27,721 TRACE [pallet.stevedore] (main) INVOKE tail(-n "+6") | |
| 2011-01-26 08:45:27,721 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] tail (-n +6) | |
| 2011-01-26 08:45:27,721 TRACE [pallet.script] (main) Looking up script :tail | |
| 2011-01-26 08:45:27,721 TRACE [pallet.stevedore] (main) INVOKE xargs(rm -f) | |
| 2011-01-26 08:45:27,721 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] xargs (rm -f) | |
| 2011-01-26 08:45:27,722 TRACE [pallet.script] (main) Looking up script :xargs | |
| 2011-01-26 08:45:27,723 TRACE [pallet.stevedore] (main) INVOKE package-manager-non-interactive | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:178] package-manager-non-interactive () | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) Looking up script :package-manager-non-interactive | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) Found implementation for package-manager-non-interactive - pallet.resource.package$eval5337$script_fn_for_package_manager_non_interactive__5338@5559c7f2 invoking with () empty? true | |
| 2011-01-26 08:45:27,723 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("debconf debconf/frontend select noninteractive" "debconf debconf/frontend seen false") | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] debconf-set-selections (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) | |
| 2011-01-26 08:45:27,723 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 08:45:27,724 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,724 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@cd2b045 invoking with (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) empty? false | |
| 2011-01-26 08:45:27,728 TRACE [pallet.stevedore] (main) INVOKE aptitude(install -q -y "sun-java6-bin+ sun-java6-jdk+") | |
| 2011-01-26 08:45:27,728 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:179] aptitude (install -q -y sun-java6-bin+ sun-java6-jdk+) | |
| 2011-01-26 08:45:27,728 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 08:45:27,730 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 08:45:27,730 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 08:45:27,730 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 08:45:27,730 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,730 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@582138 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 08:45:27,731 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 08:45:27,731 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 08:45:27,731 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 08:45:27,731 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,732 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@19ece3b5 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 08:45:27,732 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 08:45:27,732 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 08:45:27,733 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 08:45:27,733 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,733 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@f598d5f invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 08:45:27,734 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 08:45:27,734 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 08:45:27,734 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 08:45:27,734 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,735 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@40505fd8 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 08:45:27,735 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 08:45:27,735 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 08:45:27,735 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 08:45:27,736 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,736 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@19ece3b5 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 08:45:27,736 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 08:45:27,736 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 08:45:27,736 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 08:45:27,737 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 08:45:27,737 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@f598d5f invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 08:45:27,737 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 08:45:27,738 INFO [pallet.compute.jclouds] (main) building node template for :node | |
| 2011-01-26 08:45:27,738 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 08:45:27,738 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 08:45:27,739 INFO [pallet.compute.jclouds] (main) options {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]} | |
| 2011-01-26 09:11:08,991 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 09:11:08,992 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 09:11:08,998 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 1 nodes | |
| 2011-01-26 09:11:09,005 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 09:11:09,013 INFO [pallet.core] (main) apply-phase :configure for :node with 1 nodes | |
| 2011-01-26 09:11:09,013 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 09:11:09,014 INFO [pallet.core] (main) apply-phase :after-configure for :node with 1 nodes | |
| 2011-01-26 09:11:09,014 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 09:55:50,826 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 09:56:03,317 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 09:56:03,324 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 09:56:03,324 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 09:56:03,325 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 09:56:03,325 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 09:56:03,422 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@73b8dc93>}} 0} [] | |
| 2011-01-26 09:56:03,422 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 09:56:04,605 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 09:56:04,605 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@73b8dc93>}} 0} | |
| 2011-01-26 09:56:04,609 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :min-ram 1024, :min-cores 2, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@73b8dc93>}} -1} | |
| 2011-01-26 09:56:04,609 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 09:56:04,610 INFO [pallet.core] (main) destroying 1 nodes with tag :node | |
| 2011-01-26 09:56:37,065 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 09:56:38,738 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 09:56:38,739 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 09:56:38,745 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 0 nodes | |
| 2011-01-26 09:56:38,750 INFO [pallet.core] (main) apply-phase :configure for :node with 0 nodes | |
| 2011-01-26 09:56:38,751 INFO [pallet.core] (main) apply-phase :after-configure for :node with 0 nodes | |
| 2011-01-26 10:03:22,925 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 10:04:17,996 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 10:04:29,857 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 10:04:29,862 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 10:04:29,863 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 10:04:29,863 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 10:04:29,863 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 10:04:29,958 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :os-version "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@68d5c08f>}} 1} [] | |
| 2011-01-26 10:04:29,958 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 10:04:31,344 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 10:04:31,344 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :os-version "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@68d5c08f>}} 1} | |
| 2011-01-26 10:04:31,347 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :os-version "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@68d5c08f>}} 1} | |
| 2011-01-26 10:04:31,347 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 10:04:31,347 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 10:04:31,348 INFO [pallet.core] (main) Starting 1 nodes for :node | |
| 2011-01-26 10:04:31,371 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 10:04:31,371 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 10:04:31,372 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 10:04:31,381 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 10:04:31,381 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 10:04:31,381 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 10:04:31,396 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,397 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@45fe425 invoking with (tim) empty? false | |
| 2011-01-26 10:04:31,397 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 10:04:31,397 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 10:04:31,398 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:04:31,400 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,401 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,401 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 10:04:31,409 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,409 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,409 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:04:31,410 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,410 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:04:31,411 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:04:31,431 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:04:31,431 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:04:31,431 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:04:31,437 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,437 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@7904f4c8 invoking with () empty? true | |
| 2011-01-26 10:04:31,438 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:04:31,439 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:04:31,439 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:04:31,440 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:04:31,440 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:04:31,440 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:04:31,441 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,441 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,441 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:04:31,442 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/universe/" " ) print $0 \" \" \"" "universe" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,442 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,442 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:04:31,443 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:04:31,443 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:04:31,443 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:04:31,443 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:04:31,444 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:04:31,444 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:04:31,444 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,444 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,444 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:04:31,444 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/multiverse/" " ) print $0 \" \" \"" "multiverse" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,445 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:04:31,445 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:04:31,445 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:04:31,445 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:04:31,445 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:04:31,445 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:04:31,446 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:04:31,446 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:04:31,446 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,446 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@7904f4c8 invoking with () empty? true | |
| 2011-01-26 10:04:31,446 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:04:31,446 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:04:31,447 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:04:31,448 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-bin shared/present-sun-dlj-v1-1 note" "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:04:31,449 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:04:31,449 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:04:31,449 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,449 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3462b48a invoking with (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:04:31,449 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-jdk shared/present-sun-dlj-v1-1 note" "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:04:31,450 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:04:31,450 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:04:31,450 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,450 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3462b48a invoking with (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:04:31,453 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@3c3aeae4 invoking with (tim) empty? false | |
| 2011-01-26 10:04:31,453 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 10:04:31,453 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:04:31,454 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:04:31,454 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:04:31,454 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:04:31,454 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,454 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@40133da0 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:04:31,455 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:04:31,455 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:04:31,455 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:04:31,455 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,455 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@40133da0 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:04:31,456 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:04:31,456 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:04:31,456 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:04:31,456 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,456 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@2f32f43d invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:04:31,457 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:04:31,457 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:04:31,457 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:04:31,457 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,457 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@2f32f43d invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:04:31,458 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 10:04:31,463 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:04:31,464 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:04:31,464 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 10:04:31,465 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 10:04:31,466 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:04:31,466 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:04:31,466 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:04:31,469 TRACE [pallet.stevedore] (main) INVOKE os-version-name | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:308] os-version-name () | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) Looking up script :os-version-name | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) Found implementations (:default [#{:debian :ubuntu}]) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) Found implementation for os-version-name - pallet.resource.hostinfo$eval5100$script_fn_for_os_version_name__5101@3a40e900 invoking with () empty? true | |
| 2011-01-26 10:04:31,469 TRACE [pallet.stevedore] (main) INVOKE lsb_release(-c -s) | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) invoke-target [pallet/resource/hostinfo.clj:null] lsb_release (-c -s) | |
| 2011-01-26 10:04:31,469 TRACE [pallet.script] (main) Looking up script :lsb_release | |
| 2011-01-26 10:04:31,470 TRACE [pallet.stevedore] (main) INVOKE backup-option | |
| 2011-01-26 10:04:31,470 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:130] backup-option () | |
| 2011-01-26 10:04:31,470 TRACE [pallet.script] (main) Looking up script :backup-option | |
| 2011-01-26 10:04:31,471 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,471 TRACE [pallet.script] (main) Found implementation for backup-option - pallet.resource.file$eval3665$script_fn_for_backup_option__3666@7b811ce0 invoking with () empty? true | |
| 2011-01-26 10:04:31,473 TRACE [pallet.stevedore] (main) INVOKE mv(-f "--backup=numbered" "/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:04:31,473 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:223] mv (-f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:04:31,473 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:04:31,473 TRACE [pallet.stevedore] (main) INVOKE mv("/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:04:31,474 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:229] mv (/etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:04:31,474 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:04:31,475 TRACE [pallet.stevedore] (main) INVOKE md5sum-verify("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:04:31,475 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] md5sum-verify (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:04:31,475 TRACE [pallet.script] (main) Looking up script :md5sum-verify | |
| 2011-01-26 10:04:31,475 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] [#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,475 TRACE [pallet.script] (main) Found implementation for md5sum-verify - pallet.resource.file$eval3649$script_fn_for_md5sum_verify__3651@598ef578 invoking with (/etc/apt/sources.list.d/Partner.list.md5) empty? false | |
| 2011-01-26 10:04:31,477 TRACE [pallet.stevedore] (main) INVOKE diff(-u "/etc/apt/sources.list.d/Partner.list" "/etc/apt/sources.list.d/Partner.list.new") | |
| 2011-01-26 10:04:31,477 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] diff (-u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new) | |
| 2011-01-26 10:04:31,477 TRACE [pallet.script] (main) Looking up script :diff | |
| 2011-01-26 10:04:31,478 TRACE [pallet.stevedore] (main) INVOKE echo("Existing content did not match md5:") | |
| 2011-01-26 10:04:31,478 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] echo (Existing content did not match md5:) | |
| 2011-01-26 10:04:31,478 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:04:31,478 TRACE [pallet.stevedore] (main) INVOKE exit(1) | |
| 2011-01-26 10:04:31,478 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] exit (1) | |
| 2011-01-26 10:04:31,478 TRACE [pallet.script] (main) Looking up script :exit | |
| 2011-01-26 10:04:31,480 TRACE [pallet.stevedore] (main) INVOKE md5sum("/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:04:31,480 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:136] md5sum (/etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:04:31,480 TRACE [pallet.script] (main) Looking up script :md5sum | |
| 2011-01-26 10:04:31,480 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,480 TRACE [pallet.script] (main) Found implementation for md5sum - pallet.resource.file$eval3637$script_fn_for_md5sum__3639@37c02a77 invoking with (/etc/apt/sources.list.d/Partner.list) empty? false | |
| 2011-01-26 10:04:31,481 TRACE [pallet.stevedore] (main) INVOKE echo("MD5 sum is" (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:04:31,481 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] echo (MD5 sum is (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:04:31,481 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:04:31,481 TRACE [pallet.stevedore] (main) INVOKE cat("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:04:31,481 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] cat (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:04:31,481 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:04:31,482 TRACE [pallet.stevedore] (main) INVOKE ls(-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") "2>" "/dev/null") | |
| 2011-01-26 10:04:31,483 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] ls (-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") 2> /dev/null) | |
| 2011-01-26 10:04:31,483 TRACE [pallet.script] (main) Looking up script :ls | |
| 2011-01-26 10:04:31,483 TRACE [pallet.stevedore] (main) INVOKE tail(-n "+6") | |
| 2011-01-26 10:04:31,483 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] tail (-n +6) | |
| 2011-01-26 10:04:31,483 TRACE [pallet.script] (main) Looking up script :tail | |
| 2011-01-26 10:04:31,483 TRACE [pallet.stevedore] (main) INVOKE xargs(rm -f) | |
| 2011-01-26 10:04:31,484 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] xargs (rm -f) | |
| 2011-01-26 10:04:31,484 TRACE [pallet.script] (main) Looking up script :xargs | |
| 2011-01-26 10:04:31,485 TRACE [pallet.stevedore] (main) INVOKE package-manager-non-interactive | |
| 2011-01-26 10:04:31,485 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:178] package-manager-non-interactive () | |
| 2011-01-26 10:04:31,485 TRACE [pallet.script] (main) Looking up script :package-manager-non-interactive | |
| 2011-01-26 10:04:31,485 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,485 TRACE [pallet.script] (main) Found implementation for package-manager-non-interactive - pallet.resource.package$eval5337$script_fn_for_package_manager_non_interactive__5338@29240739 invoking with () empty? true | |
| 2011-01-26 10:04:31,486 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("debconf debconf/frontend select noninteractive" "debconf debconf/frontend seen false") | |
| 2011-01-26 10:04:31,486 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] debconf-set-selections (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) | |
| 2011-01-26 10:04:31,486 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:04:31,486 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,486 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3462b48a invoking with (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) empty? false | |
| 2011-01-26 10:04:31,497 TRACE [pallet.stevedore] (main) INVOKE aptitude(install -q -y "sun-java6-bin+ sun-java6-jdk+") | |
| 2011-01-26 10:04:31,497 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:179] aptitude (install -q -y sun-java6-bin+ sun-java6-jdk+) | |
| 2011-01-26 10:04:31,497 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:04:31,499 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 10:04:31,499 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 10:04:31,499 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 10:04:31,499 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,499 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@4149888e invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 10:04:31,500 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:04:31,500 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:04:31,500 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:04:31,500 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,501 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@42a4441e invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:04:31,501 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:04:31,501 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:04:31,502 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:04:31,502 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,502 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@2e742fc0 invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:04:31,503 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 10:04:31,503 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 10:04:31,503 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 10:04:31,503 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,504 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@4deafe13 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 10:04:31,504 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:04:31,504 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:04:31,504 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:04:31,505 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,505 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@42a4441e invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:04:31,505 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:04:31,505 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:04:31,505 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:04:31,506 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude :ubuntu-10.10) | |
| 2011-01-26 10:04:31,506 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@2e742fc0 invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:04:31,506 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:04:31,507 INFO [pallet.compute.jclouds] (main) building node template for :node | |
| 2011-01-26 10:04:31,507 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 10:04:31,507 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:04:31,508 INFO [pallet.compute.jclouds] (main) options {:os-family :ubuntu, :os-version "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]} | |
| 2011-01-26 10:27:34,653 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 10:27:44,000 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 10:27:44,006 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 10:27:44,007 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 10:27:44,008 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 10:27:44,008 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 10:27:44,075 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@391416b3>}} 1} [] | |
| 2011-01-26 10:27:44,075 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 10:27:44,850 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 10:27:44,850 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@391416b3>}} 1} | |
| 2011-01-26 10:27:44,853 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@391416b3>}} 1} | |
| 2011-01-26 10:27:44,853 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 10:27:44,854 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 10:27:44,854 INFO [pallet.core] (main) Starting 1 nodes for :node | |
| 2011-01-26 10:27:44,881 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 10:27:44,882 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 10:27:44,882 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 10:27:44,893 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 10:27:44,893 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 10:27:44,894 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 10:27:44,907 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,908 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@7b811ce0 invoking with (tim) empty? false | |
| 2011-01-26 10:27:44,908 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 10:27:44,908 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 10:27:44,908 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:27:44,911 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,912 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,912 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 10:27:44,912 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,913 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,913 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:27:44,923 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,923 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:27:44,924 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:27:44,943 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:27:44,943 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:27:44,943 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:27:44,948 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,949 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@37c02a77 invoking with () empty? true | |
| 2011-01-26 10:27:44,950 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:27:44,950 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:27:44,950 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:27:44,952 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:27:44,952 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:27:44,952 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:27:44,952 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,953 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,953 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:27:44,953 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/universe/" " ) print $0 \" \" \"" "universe" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,954 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,954 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:27:44,954 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:27:44,954 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:27:44,955 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:27:44,955 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:27:44,955 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:27:44,955 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:27:44,955 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,955 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,956 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:27:44,956 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/multiverse/" " ) print $0 \" \" \"" "multiverse" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,956 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:27:44,956 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:27:44,956 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:27:44,957 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:27:44,957 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:27:44,957 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:27:44,957 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:27:44,957 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:27:44,957 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,958 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@37c02a77 invoking with () empty? true | |
| 2011-01-26 10:27:44,958 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:27:44,958 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:27:44,958 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:27:44,960 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-bin shared/present-sun-dlj-v1-1 note" "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:27:44,960 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:27:44,960 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:27:44,960 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,961 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@29240739 invoking with (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:27:44,961 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-jdk shared/present-sun-dlj-v1-1 note" "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:27:44,961 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:27:44,961 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:27:44,961 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,961 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@29240739 invoking with (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:27:44,964 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 10:27:44,964 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@7c564448 invoking with (tim) empty? false | |
| 2011-01-26 10:27:44,965 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:27:44,965 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:27:44,965 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:27:44,966 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:27:44,966 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,966 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@39d12be invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:27:44,967 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:27:44,967 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:27:44,967 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:27:44,967 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,967 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@39d12be invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:27:44,967 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:27:44,967 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:27:44,968 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:27:44,968 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,968 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@3d3979cc invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:27:44,968 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:27:44,968 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:27:44,968 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:27:44,969 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,969 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@3d3979cc invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:27:44,969 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 10:27:44,975 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:27:44,975 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:27:44,975 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 10:27:44,976 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 10:27:44,977 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:27:44,977 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:27:44,977 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:27:44,980 TRACE [pallet.stevedore] (main) INVOKE os-version-name | |
| 2011-01-26 10:27:44,980 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:308] os-version-name () | |
| 2011-01-26 10:27:44,980 TRACE [pallet.script] (main) Looking up script :os-version-name | |
| 2011-01-26 10:27:44,980 TRACE [pallet.script] (main) Found implementations (:default [#{:debian :ubuntu}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,980 TRACE [pallet.script] (main) Found implementation for os-version-name - pallet.resource.hostinfo$eval5100$script_fn_for_os_version_name__5101@86b5f7b invoking with () empty? true | |
| 2011-01-26 10:27:44,980 TRACE [pallet.stevedore] (main) INVOKE lsb_release(-c -s) | |
| 2011-01-26 10:27:44,981 TRACE [pallet.script] (main) invoke-target [pallet/resource/hostinfo.clj:null] lsb_release (-c -s) | |
| 2011-01-26 10:27:44,981 TRACE [pallet.script] (main) Looking up script :lsb_release | |
| 2011-01-26 10:27:44,981 TRACE [pallet.stevedore] (main) INVOKE backup-option | |
| 2011-01-26 10:27:44,981 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:130] backup-option () | |
| 2011-01-26 10:27:44,982 TRACE [pallet.script] (main) Looking up script :backup-option | |
| 2011-01-26 10:27:44,982 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,982 TRACE [pallet.script] (main) Found implementation for backup-option - pallet.resource.file$eval3665$script_fn_for_backup_option__3666@4149888e invoking with () empty? true | |
| 2011-01-26 10:27:44,984 TRACE [pallet.stevedore] (main) INVOKE mv(-f "--backup=numbered" "/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:27:44,984 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:223] mv (-f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:27:44,984 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:27:44,985 TRACE [pallet.stevedore] (main) INVOKE mv("/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:27:44,985 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:229] mv (/etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:27:44,985 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:27:44,986 TRACE [pallet.stevedore] (main) INVOKE md5sum-verify("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:27:44,986 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] md5sum-verify (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:27:44,986 TRACE [pallet.script] (main) Looking up script :md5sum-verify | |
| 2011-01-26 10:27:44,986 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] [#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,986 TRACE [pallet.script] (main) Found implementation for md5sum-verify - pallet.resource.file$eval3649$script_fn_for_md5sum_verify__3651@42a4441e invoking with (/etc/apt/sources.list.d/Partner.list.md5) empty? false | |
| 2011-01-26 10:27:44,987 TRACE [pallet.stevedore] (main) INVOKE diff(-u "/etc/apt/sources.list.d/Partner.list" "/etc/apt/sources.list.d/Partner.list.new") | |
| 2011-01-26 10:27:44,988 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] diff (-u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new) | |
| 2011-01-26 10:27:44,988 TRACE [pallet.script] (main) Looking up script :diff | |
| 2011-01-26 10:27:44,989 TRACE [pallet.stevedore] (main) INVOKE echo("Existing content did not match md5:") | |
| 2011-01-26 10:27:44,989 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] echo (Existing content did not match md5:) | |
| 2011-01-26 10:27:44,989 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:27:44,989 TRACE [pallet.stevedore] (main) INVOKE exit(1) | |
| 2011-01-26 10:27:44,989 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] exit (1) | |
| 2011-01-26 10:27:44,989 TRACE [pallet.script] (main) Looking up script :exit | |
| 2011-01-26 10:27:44,990 TRACE [pallet.stevedore] (main) INVOKE md5sum("/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:27:44,991 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:136] md5sum (/etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:27:44,991 TRACE [pallet.script] (main) Looking up script :md5sum | |
| 2011-01-26 10:27:44,991 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,991 TRACE [pallet.script] (main) Found implementation for md5sum - pallet.resource.file$eval3637$script_fn_for_md5sum__3639@695b2fd8 invoking with (/etc/apt/sources.list.d/Partner.list) empty? false | |
| 2011-01-26 10:27:44,992 TRACE [pallet.stevedore] (main) INVOKE echo("MD5 sum is" (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:27:44,992 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] echo (MD5 sum is (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:27:44,992 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:27:44,992 TRACE [pallet.stevedore] (main) INVOKE cat("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:27:44,992 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] cat (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:27:44,992 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:27:44,993 TRACE [pallet.stevedore] (main) INVOKE ls(-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") "2>" "/dev/null") | |
| 2011-01-26 10:27:44,993 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] ls (-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") 2> /dev/null) | |
| 2011-01-26 10:27:44,994 TRACE [pallet.script] (main) Looking up script :ls | |
| 2011-01-26 10:27:44,994 TRACE [pallet.stevedore] (main) INVOKE tail(-n "+6") | |
| 2011-01-26 10:27:44,994 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] tail (-n +6) | |
| 2011-01-26 10:27:44,994 TRACE [pallet.script] (main) Looking up script :tail | |
| 2011-01-26 10:27:44,994 TRACE [pallet.stevedore] (main) INVOKE xargs(rm -f) | |
| 2011-01-26 10:27:44,994 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] xargs (rm -f) | |
| 2011-01-26 10:27:44,994 TRACE [pallet.script] (main) Looking up script :xargs | |
| 2011-01-26 10:27:44,995 TRACE [pallet.stevedore] (main) INVOKE package-manager-non-interactive | |
| 2011-01-26 10:27:44,995 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:178] package-manager-non-interactive () | |
| 2011-01-26 10:27:44,995 TRACE [pallet.script] (main) Looking up script :package-manager-non-interactive | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) Found implementation for package-manager-non-interactive - pallet.resource.package$eval5337$script_fn_for_package_manager_non_interactive__5338@61a243f1 invoking with () empty? true | |
| 2011-01-26 10:27:44,996 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("debconf debconf/frontend select noninteractive" "debconf debconf/frontend seen false") | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] debconf-set-selections (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:44,996 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@29240739 invoking with (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) empty? false | |
| 2011-01-26 10:27:45,001 TRACE [pallet.stevedore] (main) INVOKE aptitude(install -q -y "sun-java6-bin+ sun-java6-jdk+") | |
| 2011-01-26 10:27:45,001 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:179] aptitude (install -q -y sun-java6-bin+ sun-java6-jdk+) | |
| 2011-01-26 10:27:45,001 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:27:45,003 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 10:27:45,003 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 10:27:45,003 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 10:27:45,003 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,003 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@1574409e invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 10:27:45,004 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:27:45,004 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:27:45,004 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:27:45,004 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,005 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@33e5013 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:27:45,005 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:27:45,005 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:27:45,005 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:27:45,006 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,006 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@6ffb110e invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:27:45,007 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 10:27:45,007 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 10:27:45,007 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 10:27:45,007 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,007 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@4c1ce791 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 10:27:45,008 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:27:45,008 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:27:45,008 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:27:45,008 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,008 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@33e5013 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:27:45,009 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:27:45,009 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:27:45,009 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:27:45,009 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:27:45,009 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@6ffb110e invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:27:45,010 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:27:45,011 INFO [pallet.compute.jclouds] (main) building node template for :node | |
| 2011-01-26 10:27:45,011 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 10:27:45,011 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:27:45,011 INFO [pallet.compute.jclouds] (main) options {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]} | |
| 2011-01-26 10:29:10,239 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 10:29:10,240 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 10:29:10,246 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 1 nodes | |
| 2011-01-26 10:29:10,253 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:29:10,261 INFO [pallet.core] (main) apply-phase :configure for :node with 1 nodes | |
| 2011-01-26 10:29:10,261 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:29:10,262 INFO [pallet.core] (main) apply-phase :after-configure for :node with 1 nodes | |
| 2011-01-26 10:29:10,262 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:32:49,975 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 10:32:59,703 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 10:32:59,706 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 10:32:59,706 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 10:32:59,707 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 10:32:59,707 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 10:32:59,764 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@57e603e6>}} 1} [] | |
| 2011-01-26 10:32:59,764 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 10:33:00,722 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 10:33:00,723 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@57e603e6>}} 1} | |
| 2011-01-26 10:33:00,727 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.10", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@57e603e6>}} 0} | |
| 2011-01-26 10:33:00,728 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 10:33:00,728 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 10:33:01,126 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 10:33:01,126 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 10:33:01,134 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 1 nodes | |
| 2011-01-26 10:33:01,150 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:33:01,164 INFO [pallet.core] (main) apply-phase :configure for :node with 1 nodes | |
| 2011-01-26 10:33:01,165 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:33:01,165 INFO [pallet.core] (main) apply-phase :after-configure for :node with 1 nodes | |
| 2011-01-26 10:33:01,166 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 10:55:57,044 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 10:56:07,001 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 10:56:07,008 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 10:56:07,009 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 10:56:07,010 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 10:56:07,010 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 10:56:07,074 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.04", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@573ddbdd>}} 1} [] | |
| 2011-01-26 10:56:07,074 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 10:56:08,095 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 10:56:08,095 TRACE [pallet.core] (main) {{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.04", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@573ddbdd>}} 1} | |
| 2011-01-26 10:56:08,099 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:os-family :ubuntu, :os-version-matches "10.04", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@573ddbdd>}} 1} | |
| 2011-01-26 10:56:08,099 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 10:56:08,099 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 10:56:08,100 INFO [pallet.core] (main) Starting 1 nodes for :node | |
| 2011-01-26 10:56:08,126 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 10:56:08,127 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 10:56:08,128 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 10:56:08,135 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 10:56:08,135 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 10:56:08,136 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 10:56:08,154 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,155 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@4f8429d6 invoking with (tim) empty? false | |
| 2011-01-26 10:56:08,156 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 10:56:08,156 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 10:56:08,156 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:56:08,159 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,159 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,159 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 10:56:08,163 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,163 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,163 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:56:08,164 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,164 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 10:56:08,164 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:56:08,185 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:56:08,185 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:56:08,186 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:56:08,192 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,192 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@3fa3a66c invoking with () empty? true | |
| 2011-01-26 10:56:08,203 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:56:08,203 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:56:08,203 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:56:08,204 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:56:08,204 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:56:08,204 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:56:08,205 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,205 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,205 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:56:08,206 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/universe/" " ) print $0 \" \" \"" "universe" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,206 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,206 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:56:08,207 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:56:08,207 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:56:08,207 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:56:08,207 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 10:56:08,208 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 10:56:08,208 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 10:56:08,208 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,208 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,208 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 10:56:08,208 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/multiverse/" " ) print $0 \" \" \"" "multiverse" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,209 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 10:56:08,209 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 10:56:08,209 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 10:56:08,209 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 10:56:08,209 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:56:08,209 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 10:56:08,209 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 10:56:08,210 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 10:56:08,210 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,210 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@3fa3a66c invoking with () empty? true | |
| 2011-01-26 10:56:08,210 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 10:56:08,210 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 10:56:08,210 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:56:08,212 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-bin shared/present-sun-dlj-v1-1 note" "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:56:08,213 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:56:08,213 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:56:08,213 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,213 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@11031d18 invoking with (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:56:08,213 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-jdk shared/present-sun-dlj-v1-1 note" "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 10:56:08,213 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 10:56:08,214 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:56:08,214 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,214 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@11031d18 invoking with (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 10:56:08,216 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 10:56:08,216 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@636b1b61 invoking with (tim) empty? false | |
| 2011-01-26 10:56:08,217 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 10:56:08,217 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:56:08,217 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:56:08,218 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,218 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@cd2b045 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:56:08,218 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@cd2b045 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 10:56:08,219 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:56:08,219 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:56:08,220 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,220 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@5c328896 invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:56:08,220 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:56:08,220 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 10:56:08,220 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 10:56:08,221 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,221 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@5c328896 invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 10:56:08,221 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 10:56:08,227 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:56:08,227 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 10:56:08,227 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 10:56:08,228 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 10:56:08,229 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:56:08,229 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 10:56:08,229 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:56:08,232 TRACE [pallet.stevedore] (main) INVOKE os-version-name | |
| 2011-01-26 10:56:08,232 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:308] os-version-name () | |
| 2011-01-26 10:56:08,232 TRACE [pallet.script] (main) Looking up script :os-version-name | |
| 2011-01-26 10:56:08,232 TRACE [pallet.script] (main) Found implementations (:default [#{:debian :ubuntu}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,232 TRACE [pallet.script] (main) Found implementation for os-version-name - pallet.resource.hostinfo$eval5100$script_fn_for_os_version_name__5101@79a55f23 invoking with () empty? true | |
| 2011-01-26 10:56:08,232 TRACE [pallet.stevedore] (main) INVOKE lsb_release(-c -s) | |
| 2011-01-26 10:56:08,232 TRACE [pallet.script] (main) invoke-target [pallet/resource/hostinfo.clj:null] lsb_release (-c -s) | |
| 2011-01-26 10:56:08,233 TRACE [pallet.script] (main) Looking up script :lsb_release | |
| 2011-01-26 10:56:08,233 TRACE [pallet.stevedore] (main) INVOKE backup-option | |
| 2011-01-26 10:56:08,233 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:130] backup-option () | |
| 2011-01-26 10:56:08,233 TRACE [pallet.script] (main) Looking up script :backup-option | |
| 2011-01-26 10:56:08,234 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,234 TRACE [pallet.script] (main) Found implementation for backup-option - pallet.resource.file$eval3665$script_fn_for_backup_option__3666@58093139 invoking with () empty? true | |
| 2011-01-26 10:56:08,236 TRACE [pallet.stevedore] (main) INVOKE mv(-f "--backup=numbered" "/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:56:08,236 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:223] mv (-f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:56:08,236 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:56:08,236 TRACE [pallet.stevedore] (main) INVOKE mv("/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:56:08,237 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:229] mv (/etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:56:08,237 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 10:56:08,238 TRACE [pallet.stevedore] (main) INVOKE md5sum-verify("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:56:08,238 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] md5sum-verify (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:56:08,238 TRACE [pallet.script] (main) Looking up script :md5sum-verify | |
| 2011-01-26 10:56:08,238 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] [#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,238 TRACE [pallet.script] (main) Found implementation for md5sum-verify - pallet.resource.file$eval3649$script_fn_for_md5sum_verify__3651@437ec256 invoking with (/etc/apt/sources.list.d/Partner.list.md5) empty? false | |
| 2011-01-26 10:56:08,239 TRACE [pallet.stevedore] (main) INVOKE diff(-u "/etc/apt/sources.list.d/Partner.list" "/etc/apt/sources.list.d/Partner.list.new") | |
| 2011-01-26 10:56:08,239 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] diff (-u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new) | |
| 2011-01-26 10:56:08,239 TRACE [pallet.script] (main) Looking up script :diff | |
| 2011-01-26 10:56:08,240 TRACE [pallet.stevedore] (main) INVOKE echo("Existing content did not match md5:") | |
| 2011-01-26 10:56:08,241 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] echo (Existing content did not match md5:) | |
| 2011-01-26 10:56:08,241 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:56:08,241 TRACE [pallet.stevedore] (main) INVOKE exit(1) | |
| 2011-01-26 10:56:08,241 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] exit (1) | |
| 2011-01-26 10:56:08,241 TRACE [pallet.script] (main) Looking up script :exit | |
| 2011-01-26 10:56:08,242 TRACE [pallet.stevedore] (main) INVOKE md5sum("/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 10:56:08,242 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:136] md5sum (/etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 10:56:08,242 TRACE [pallet.script] (main) Looking up script :md5sum | |
| 2011-01-26 10:56:08,243 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,243 TRACE [pallet.script] (main) Found implementation for md5sum - pallet.resource.file$eval3637$script_fn_for_md5sum__3639@11b5b834 invoking with (/etc/apt/sources.list.d/Partner.list) empty? false | |
| 2011-01-26 10:56:08,243 TRACE [pallet.stevedore] (main) INVOKE echo("MD5 sum is" (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:56:08,244 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] echo (MD5 sum is (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 10:56:08,244 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 10:56:08,244 TRACE [pallet.stevedore] (main) INVOKE cat("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 10:56:08,244 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] cat (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 10:56:08,244 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 10:56:08,245 TRACE [pallet.stevedore] (main) INVOKE ls(-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") "2>" "/dev/null") | |
| 2011-01-26 10:56:08,245 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] ls (-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") 2> /dev/null) | |
| 2011-01-26 10:56:08,245 TRACE [pallet.script] (main) Looking up script :ls | |
| 2011-01-26 10:56:08,246 TRACE [pallet.stevedore] (main) INVOKE tail(-n "+6") | |
| 2011-01-26 10:56:08,246 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] tail (-n +6) | |
| 2011-01-26 10:56:08,246 TRACE [pallet.script] (main) Looking up script :tail | |
| 2011-01-26 10:56:08,246 TRACE [pallet.stevedore] (main) INVOKE xargs(rm -f) | |
| 2011-01-26 10:56:08,246 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] xargs (rm -f) | |
| 2011-01-26 10:56:08,246 TRACE [pallet.script] (main) Looking up script :xargs | |
| 2011-01-26 10:56:08,247 TRACE [pallet.stevedore] (main) INVOKE package-manager-non-interactive | |
| 2011-01-26 10:56:08,247 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:178] package-manager-non-interactive () | |
| 2011-01-26 10:56:08,247 TRACE [pallet.script] (main) Looking up script :package-manager-non-interactive | |
| 2011-01-26 10:56:08,247 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,247 TRACE [pallet.script] (main) Found implementation for package-manager-non-interactive - pallet.resource.package$eval5337$script_fn_for_package_manager_non_interactive__5338@31506701 invoking with () empty? true | |
| 2011-01-26 10:56:08,248 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("debconf debconf/frontend select noninteractive" "debconf debconf/frontend seen false") | |
| 2011-01-26 10:56:08,248 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] debconf-set-selections (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) | |
| 2011-01-26 10:56:08,248 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 10:56:08,248 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,248 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@11031d18 invoking with (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) empty? false | |
| 2011-01-26 10:56:08,252 TRACE [pallet.stevedore] (main) INVOKE aptitude(install -q -y "sun-java6-bin+ sun-java6-jdk+") | |
| 2011-01-26 10:56:08,252 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:179] aptitude (install -q -y sun-java6-bin+ sun-java6-jdk+) | |
| 2011-01-26 10:56:08,252 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 10:56:08,254 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 10:56:08,254 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 10:56:08,254 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 10:56:08,254 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,255 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@5559c7f2 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 10:56:08,255 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:56:08,256 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:56:08,256 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:56:08,256 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,256 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@79560ca4 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:56:08,257 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 10:56:08,257 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 10:56:08,257 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:56:08,257 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,257 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@582138 invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 10:56:08,258 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 10:56:08,258 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 10:56:08,258 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 10:56:08,259 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,259 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@19ece3b5 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 10:56:08,259 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:56:08,260 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:56:08,260 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 10:56:08,260 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,260 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@79560ca4 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:56:08,260 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 10:56:08,260 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 10:56:08,261 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 10:56:08,261 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 10:56:08,261 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@582138 invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 10:56:08,261 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:56:08,262 INFO [pallet.compute.jclouds] (main) building node template for :node | |
| 2011-01-26 10:56:08,262 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 10:56:08,262 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 10:56:08,263 INFO [pallet.compute.jclouds] (main) options {:os-family :ubuntu, :os-version-matches "10.04", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]} | |
| 2011-01-26 11:01:53,171 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:01:53,172 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:01:53,180 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 1 nodes | |
| 2011-01-26 11:01:53,188 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:01:53,196 INFO [pallet.core] (main) apply-phase :configure for :node with 1 nodes | |
| 2011-01-26 11:01:53,197 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:01:53,197 INFO [pallet.core] (main) apply-phase :after-configure for :node with 1 nodes | |
| 2011-01-26 11:01:53,198 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:06:18,370 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 11:06:27,740 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 11:06:27,745 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 11:06:27,746 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 11:06:27,746 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 11:06:27,746 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 11:06:27,816 TRACE [pallet.core] (main) converge* {{:tag :node, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@109b415c>}} 0} [] | |
| 2011-01-26 11:06:27,816 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 11:06:28,760 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 11:06:28,760 TRACE [pallet.core] (main) {{:tag :node, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@109b415c>}} 0} | |
| 2011-01-26 11:06:28,764 TRACE [pallet.core] (main) adjust-node-counts{{:tag :node, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@109b415c>}} -1} | |
| 2011-01-26 11:06:28,764 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 11:06:28,765 INFO [pallet.core] (main) destroying 1 nodes with tag :node | |
| 2011-01-26 11:06:59,914 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 11:07:00,772 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:07:00,772 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:07:00,777 INFO [pallet.core] (main) apply-phase :pre-configure for :node with 0 nodes | |
| 2011-01-26 11:07:00,781 INFO [pallet.core] (main) apply-phase :configure for :node with 0 nodes | |
| 2011-01-26 11:07:00,781 INFO [pallet.core] (main) apply-phase :after-configure for :node with 0 nodes | |
| 2011-01-26 11:07:28,855 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 11:07:37,793 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 11:07:37,803 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 11:07:37,803 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 11:07:37,804 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 11:07:37,804 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 11:07:37,897 TRACE [pallet.core] (main) converge* {{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@2fee9422>}} 1} [] | |
| 2011-01-26 11:07:37,897 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 11:07:38,874 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 11:07:38,874 TRACE [pallet.core] (main) {{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@2fee9422>}} 1} | |
| 2011-01-26 11:07:38,877 TRACE [pallet.core] (main) adjust-node-counts{{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@2fee9422>}} 1} | |
| 2011-01-26 11:07:38,877 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 11:07:38,877 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 11:07:38,879 INFO [pallet.core] (main) Starting 1 nodes for :apparatus | |
| 2011-01-26 11:07:48,229 INFO [pallet.compute.jclouds] (main) Default OS is :ubuntu | |
| 2011-01-26 11:07:48,252 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 11:07:48,252 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 11:07:48,253 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 11:07:48,261 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 11:07:48,261 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 11:07:48,261 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 11:07:48,284 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,285 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@196a1a66 invoking with (tim) empty? false | |
| 2011-01-26 11:07:48,285 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 11:07:48,285 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 11:07:48,285 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 11:07:48,288 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,289 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,289 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 11:07:48,289 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,290 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,290 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:07:48,290 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,291 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 11:07:48,291 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:07:48,307 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 11:07:48,307 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 11:07:48,307 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 11:07:48,315 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,315 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@1540de0 invoking with () empty? true | |
| 2011-01-26 11:07:48,316 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 11:07:48,316 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 11:07:48,316 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 11:07:48,320 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@355aedce invoking with (tim) empty? false | |
| 2011-01-26 11:07:48,321 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 11:07:48,321 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 11:07:48,321 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 11:07:48,322 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,322 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@64b28abf invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 11:07:48,322 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@64b28abf invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 11:07:48,323 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 11:07:48,323 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,324 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@5b3353f invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 11:07:48,324 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:07:48,324 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:07:48,324 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 11:07:48,324 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,324 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@5b3353f invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 11:07:48,325 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 11:07:48,330 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 11:07:48,331 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 11:07:48,331 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 11:07:48,332 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 11:07:48,333 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 11:07:48,333 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 11:07:48,333 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 11:07:48,335 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 11:07:48,336 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 11:07:48,336 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 11:07:48,336 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,336 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@386cbe05 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 11:07:48,337 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 11:07:48,337 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 11:07:48,337 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 11:07:48,337 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,337 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@6b2f5733 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 11:07:48,338 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 11:07:48,338 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 11:07:48,338 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 11:07:48,338 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,338 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@71060c3e invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 11:07:48,339 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 11:07:48,339 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 11:07:48,340 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 11:07:48,340 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,340 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@440df46a invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 11:07:48,341 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 11:07:48,341 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 11:07:48,341 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 11:07:48,341 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,341 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@6b2f5733 invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 11:07:48,341 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 11:07:48,342 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 11:07:48,342 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 11:07:48,342 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:07:48,342 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@71060c3e invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 11:07:48,342 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 11:07:48,343 INFO [pallet.compute.jclouds] (main) building node template for :apparatus | |
| 2011-01-26 11:07:48,343 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 11:07:48,343 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 11:07:48,344 INFO [pallet.compute.jclouds] (main) options {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]} | |
| 2011-01-26 11:09:04,999 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:09:04,999 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:09:05,007 INFO [pallet.core] (main) apply-phase :pre-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:09:05,016 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:09:05,028 INFO [pallet.core] (main) apply-phase :configure for :apparatus with 1 nodes | |
| 2011-01-26 11:09:05,028 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:09:05,029 INFO [pallet.core] (main) apply-phase :after-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:09:05,029 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:11:16,571 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 11:11:25,773 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 11:11:25,780 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 11:11:25,780 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 11:11:25,781 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 11:11:25,781 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 11:11:25,836 TRACE [pallet.core] (main) converge* {{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@f2dec59>}} 1} [] | |
| 2011-01-26 11:11:25,836 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 11:11:26,981 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 11:11:26,982 TRACE [pallet.core] (main) {{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@f2dec59>}} 1} | |
| 2011-01-26 11:11:26,987 TRACE [pallet.core] (main) adjust-node-counts{{:tag :apparatus, :image {:image-id "us-east-1/ami-a6f504cf", :min-cores 2, :min-ram 1024, :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@f2dec59>}} 0} | |
| 2011-01-26 11:11:26,987 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 11:11:26,987 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 11:11:27,326 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:11:27,326 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:11:27,334 INFO [pallet.core] (main) apply-phase :pre-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:11:27,351 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:11:27,365 INFO [pallet.core] (main) apply-phase :configure for :apparatus with 1 nodes | |
| 2011-01-26 11:11:27,366 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:11:27,366 INFO [pallet.core] (main) apply-phase :after-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:11:27,366 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:13:14,300 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 11:13:23,875 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 11:13:23,928 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 11:13:23,928 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 11:13:23,929 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 11:13:23,929 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 11:13:23,996 TRACE [pallet.core] (main) converge* {{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@3963542c>}} 0} [] | |
| 2011-01-26 11:13:23,996 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 11:13:25,190 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 11:13:25,191 TRACE [pallet.core] (main) {{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@3963542c>}} 0} | |
| 2011-01-26 11:13:25,195 TRACE [pallet.core] (main) adjust-node-counts{{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@3963542c>}} -1} | |
| 2011-01-26 11:13:25,196 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 11:13:25,196 INFO [pallet.core] (main) destroying 1 nodes with tag :apparatus | |
| 2011-01-26 11:13:49,180 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 11:13:50,054 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:13:50,054 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:13:50,060 INFO [pallet.core] (main) apply-phase :pre-configure for :apparatus with 0 nodes | |
| 2011-01-26 11:13:50,063 INFO [pallet.core] (main) apply-phase :configure for :apparatus with 0 nodes | |
| 2011-01-26 11:13:50,064 INFO [pallet.core] (main) apply-phase :after-configure for :apparatus with 0 nodes | |
| 2011-01-26 11:15:45,392 INFO [pallet.compute.jclouds] (main) extensions (:log4j :ssh) | |
| 2011-01-26 11:15:55,252 DEBUG [pallet.main-invoker] (main) OS Mac OS X 10.6.6 | |
| 2011-01-26 11:15:55,262 DEBUG [pallet.main-invoker] (main) Arch x86_64 | |
| 2011-01-26 11:15:55,262 DEBUG [pallet.main-invoker] (main) Admin user tim | |
| 2011-01-26 11:15:55,263 DEBUG [pallet.main-invoker] (main) private-key-path /Users/tim/.ssh/id_rsa true | |
| 2011-01-26 11:15:55,263 DEBUG [pallet.main-invoker] (main) public-key-path /Users/tim/.ssh/id_rsa.pub true | |
| 2011-01-26 11:15:55,335 TRACE [pallet.core] (main) converge* {{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@911d38e>}} 1} [] | |
| 2011-01-26 11:15:55,335 INFO [pallet.core] (main) retrieving nodes | |
| 2011-01-26 11:15:56,540 INFO [pallet.core] (main) converging nodes | |
| 2011-01-26 11:15:56,541 TRACE [pallet.core] (main) {{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@911d38e>}} 1} | |
| 2011-01-26 11:15:56,544 TRACE [pallet.core] (main) adjust-node-counts{{:tag :apparatus, :image {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]}, :phases {:bootstrap #<pallet$fn__5882 apparatus.pallet$fn__5882@911d38e>}} 1} | |
| 2011-01-26 11:15:56,544 INFO [pallet.core] (main) destroying excess nodes | |
| 2011-01-26 11:15:56,544 INFO [pallet.core] (main) adjust-node-counts starting new nodes | |
| 2011-01-26 11:15:56,545 INFO [pallet.core] (main) Starting 1 nodes for :apparatus | |
| 2011-01-26 11:16:07,638 INFO [pallet.compute.jclouds] (main) Default OS is :ubuntu | |
| 2011-01-26 11:16:07,665 TRACE [pallet.stevedore] (main) INVOKE apt-get("upgrade -y") | |
| 2011-01-26 11:16:07,666 TRACE [pallet.script] (main) invoke-target [apparatus/pallet.clj:null] apt-get (upgrade -y) | |
| 2011-01-26 11:16:07,666 TRACE [pallet.script] (main) Looking up script :apt-get | |
| 2011-01-26 11:16:07,674 TRACE [pallet.stevedore] (main) INVOKE user-home("tim") | |
| 2011-01-26 11:16:07,674 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:19] user-home (tim) | |
| 2011-01-26 11:16:07,674 TRACE [pallet.script] (main) Looking up script :user-home | |
| 2011-01-26 11:16:07,688 TRACE [pallet.script] (main) Found implementations ([:os-x] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,694 TRACE [pallet.script] (main) Found implementation for user-home - pallet.resource.user$eval5648$script_fn_for_user_home__5649@586ca3ef invoking with (tim) empty? false | |
| 2011-01-26 11:16:07,696 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim" | cut "-d:" "-f6") | |
| 2011-01-26 11:16:07,696 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim | cut -d: -f6) | |
| 2011-01-26 11:16:07,696 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 11:16:07,698 TRACE [pallet.stevedore] (main) INVOKE fgrep((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,699 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] fgrep ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local") (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,699 TRACE [pallet.script] (main) Looking up script :fgrep | |
| 2011-01-26 11:16:07,700 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,700 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,700 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:16:07,701 TRACE [pallet.stevedore] (main) INVOKE echo((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") ">>" (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,701 TRACE [pallet.script] (main) invoke-target [pallet/crate/ssh_key.clj:null] echo ((quoted "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local\n") >> (clojure.core/deref auth_file)) | |
| 2011-01-26 11:16:07,701 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:16:07,721 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 11:16:07,721 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 11:16:07,721 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 11:16:07,729 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,730 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@306cd243 invoking with () empty? true | |
| 2011-01-26 11:16:07,731 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 11:16:07,731 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 11:16:07,731 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 11:16:07,741 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 11:16:07,741 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 11:16:07,741 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 11:16:07,742 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,742 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,742 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 11:16:07,743 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/universe/" " ) print $0 \" \" \"" "universe" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,743 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,743 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 11:16:07,744 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 11:16:07,744 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 11:16:07,744 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 11:16:07,744 TRACE [pallet.stevedore] (main) INVOKE mktemp(-t addscopeXXXX) | |
| 2011-01-26 11:16:07,745 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mktemp (-t addscopeXXXX) | |
| 2011-01-26 11:16:07,745 TRACE [pallet.script] (main) Looking up script :mktemp | |
| 2011-01-26 11:16:07,745 TRACE [pallet.stevedore] (main) INVOKE cp(-p "/etc/apt/sources.list" (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,745 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] cp (-p /etc/apt/sources.list (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,745 TRACE [pallet.script] (main) Looking up script :cp | |
| 2011-01-26 11:16:07,745 TRACE [pallet.stevedore] (main) INVOKE awk("'{if ($1 ~" "/^deb.*/" "&& !" "/multiverse/" " ) print $0 \" \" \"" "multiverse" "\" ; else print; }'" "/etc/apt/sources.list" > (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,745 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] awk ('{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > (clojure.core/deref tmpfile)) | |
| 2011-01-26 11:16:07,746 TRACE [pallet.script] (main) Looking up script :awk | |
| 2011-01-26 11:16:07,746 TRACE [pallet.stevedore] (main) INVOKE mv(-f (clojure.core/deref tmpfile) "/etc/apt/sources.list") | |
| 2011-01-26 11:16:07,746 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] mv (-f (clojure.core/deref tmpfile) /etc/apt/sources.list) | |
| 2011-01-26 11:16:07,746 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 11:16:07,749 TRACE [pallet.stevedore] (main) INVOKE update-package-list | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:408] update-package-list () | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) Looking up script :update-package-list | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) Found implementations ([#{:brew}] [#{:pacman}] [#{:zypper}] [#{:yum}] [#{:aptitude}] [#{:no-packages} #{:no-packages}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) Found implementation for update-package-list - pallet.resource.package$eval5223$script_fn_for_update_package_list__5224@306cd243 invoking with () empty? true | |
| 2011-01-26 11:16:07,750 TRACE [pallet.stevedore] (main) INVOKE aptitude(update "") | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] aptitude (update ) | |
| 2011-01-26 11:16:07,750 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 11:16:07,753 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-bin shared/present-sun-dlj-v1-1 note" "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 11:16:07,753 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 11:16:07,753 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 11:16:07,753 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,753 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3860458b invoking with (sun-java6-bin shared/present-sun-dlj-v1-1 note sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 11:16:07,754 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("sun-java6-jdk shared/present-sun-dlj-v1-1 note" "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true") | |
| 2011-01-26 11:16:07,754 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:419] debconf-set-selections (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) | |
| 2011-01-26 11:16:07,754 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 11:16:07,754 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,754 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3860458b invoking with (sun-java6-jdk shared/present-sun-dlj-v1-1 note sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true) empty? false | |
| 2011-01-26 11:16:07,757 TRACE [pallet.stevedore] (main) INVOKE user-exists?("tim") | |
| 2011-01-26 11:16:07,757 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] user-exists? (tim) | |
| 2011-01-26 11:16:07,757 TRACE [pallet.script] (main) Looking up script :user-exists? | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) Found implementation for user-exists? - pallet.resource.user$eval5620$script_fn_for_user_exists_QMARK___5621@3875c597 invoking with (tim) empty? false | |
| 2011-01-26 11:16:07,758 TRACE [pallet.stevedore] (main) INVOKE getent(passwd "tim") | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:null] getent (passwd tim) | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) Looking up script :getent | |
| 2011-01-26 11:16:07,758 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 11:16:07,758 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,759 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@3bff5976 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 11:16:07,759 TRACE [pallet.stevedore] (main) INVOKE modify-user("tim" {:shell "/bin/bash"}) | |
| 2011-01-26 11:16:07,759 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] modify-user (tim {:shell "/bin/bash"}) | |
| 2011-01-26 11:16:07,759 TRACE [pallet.script] (main) Looking up script :modify-user | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) Found implementation for modify-user - pallet.resource.user$eval5632$script_fn_for_modify_user__5633@3bff5976 invoking with (tim {:shell "/bin/bash"}) empty? false | |
| 2011-01-26 11:16:07,760 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,760 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@794a70bf invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 11:16:07,761 TRACE [pallet.stevedore] (main) INVOKE create-user("tim" {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:16:07,761 TRACE [pallet.script] (main) invoke-target [pallet/resource/user.clj:105] create-user (tim {:shell "/bin/bash", :create-home true}) | |
| 2011-01-26 11:16:07,761 TRACE [pallet.script] (main) Looking up script :create-user | |
| 2011-01-26 11:16:07,762 TRACE [pallet.script] (main) Found implementations ([#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,762 TRACE [pallet.script] (main) Found implementation for create-user - pallet.resource.user$eval5624$script_fn_for_create_user__5625@794a70bf invoking with (tim {:shell "/bin/bash", :create-home true}) empty? false | |
| 2011-01-26 11:16:07,762 TRACE [pallet.crate.sudoers] (main) apply-sudoers | |
| 2011-01-26 11:16:07,782 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 11:16:07,782 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL}} | |
| 2011-01-26 11:16:07,782 TRACE [pallet.crate.sudoers] (main) write-host-spec{:ALL {:run-as-user :ALL, :tags :NOPASSWD}} | |
| 2011-01-26 11:16:07,783 TRACE [pallet.template] (main) apply-template-file {:path "/etc/sudoers", :owner "root", :mode "0440"} | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| 2011-01-26 11:16:07,784 TRACE [pallet.stevedore] (main) INVOKE cat(> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 11:16:07,784 TRACE [pallet.script] (main) invoke-target [pallet/template.clj:81] cat (> (clojure.core/deref file) <<EOF) | |
| 2011-01-26 11:16:07,784 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 11:16:07,787 TRACE [pallet.stevedore] (main) INVOKE os-version-name | |
| 2011-01-26 11:16:07,787 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:308] os-version-name () | |
| 2011-01-26 11:16:07,787 TRACE [pallet.script] (main) Looking up script :os-version-name | |
| 2011-01-26 11:16:07,787 TRACE [pallet.script] (main) Found implementations (:default [#{:debian :ubuntu}]) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,787 TRACE [pallet.script] (main) Found implementation for os-version-name - pallet.resource.hostinfo$eval5100$script_fn_for_os_version_name__5101@63049cf invoking with () empty? true | |
| 2011-01-26 11:16:07,787 TRACE [pallet.stevedore] (main) INVOKE lsb_release(-c -s) | |
| 2011-01-26 11:16:07,787 TRACE [pallet.script] (main) invoke-target [pallet/resource/hostinfo.clj:null] lsb_release (-c -s) | |
| 2011-01-26 11:16:07,788 TRACE [pallet.script] (main) Looking up script :lsb_release | |
| 2011-01-26 11:16:07,788 TRACE [pallet.stevedore] (main) INVOKE backup-option | |
| 2011-01-26 11:16:07,788 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:130] backup-option () | |
| 2011-01-26 11:16:07,788 TRACE [pallet.script] (main) Looking up script :backup-option | |
| 2011-01-26 11:16:07,789 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,789 TRACE [pallet.script] (main) Found implementation for backup-option - pallet.resource.file$eval3665$script_fn_for_backup_option__3666@4c3db835 invoking with () empty? true | |
| 2011-01-26 11:16:07,791 TRACE [pallet.stevedore] (main) INVOKE mv(-f "--backup=numbered" "/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 11:16:07,791 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:223] mv (-f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 11:16:07,791 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 11:16:07,791 TRACE [pallet.stevedore] (main) INVOKE mv("/etc/apt/sources.list.d/Partner.list.new" "/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 11:16:07,791 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:229] mv (/etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 11:16:07,791 TRACE [pallet.script] (main) Looking up script :mv | |
| 2011-01-26 11:16:07,803 TRACE [pallet.stevedore] (main) INVOKE md5sum-verify("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 11:16:07,803 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] md5sum-verify (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 11:16:07,803 TRACE [pallet.script] (main) Looking up script :md5sum-verify | |
| 2011-01-26 11:16:07,803 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] [#{:rhel :amzn-linux :centos}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,803 TRACE [pallet.script] (main) Found implementation for md5sum-verify - pallet.resource.file$eval3649$script_fn_for_md5sum_verify__3651@182bbd37 invoking with (/etc/apt/sources.list.d/Partner.list.md5) empty? false | |
| 2011-01-26 11:16:07,805 TRACE [pallet.stevedore] (main) INVOKE diff(-u "/etc/apt/sources.list.d/Partner.list" "/etc/apt/sources.list.d/Partner.list.new") | |
| 2011-01-26 11:16:07,805 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] diff (-u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new) | |
| 2011-01-26 11:16:07,805 TRACE [pallet.script] (main) Looking up script :diff | |
| 2011-01-26 11:16:07,806 TRACE [pallet.stevedore] (main) INVOKE echo("Existing content did not match md5:") | |
| 2011-01-26 11:16:07,806 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] echo (Existing content did not match md5:) | |
| 2011-01-26 11:16:07,806 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:16:07,806 TRACE [pallet.stevedore] (main) INVOKE exit(1) | |
| 2011-01-26 11:16:07,806 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:205] exit (1) | |
| 2011-01-26 11:16:07,806 TRACE [pallet.script] (main) Looking up script :exit | |
| 2011-01-26 11:16:07,807 TRACE [pallet.stevedore] (main) INVOKE md5sum("/etc/apt/sources.list.d/Partner.list") | |
| 2011-01-26 11:16:07,808 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:136] md5sum (/etc/apt/sources.list.d/Partner.list) | |
| 2011-01-26 11:16:07,808 TRACE [pallet.script] (main) Looking up script :md5sum | |
| 2011-01-26 11:16:07,808 TRACE [pallet.script] (main) Found implementations ([#{:os-x :darwin}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,808 TRACE [pallet.script] (main) Found implementation for md5sum - pallet.resource.file$eval3637$script_fn_for_md5sum__3639@6ae006d8 invoking with (/etc/apt/sources.list.d/Partner.list) empty? false | |
| 2011-01-26 11:16:07,809 TRACE [pallet.stevedore] (main) INVOKE echo("MD5 sum is" (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 11:16:07,809 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] echo (MD5 sum is (clojure.core/deref (cat "/etc/apt/sources.list.d/Partner.list.md5"))) | |
| 2011-01-26 11:16:07,809 TRACE [pallet.script] (main) Looking up script :echo | |
| 2011-01-26 11:16:07,809 TRACE [pallet.stevedore] (main) INVOKE cat("/etc/apt/sources.list.d/Partner.list.md5") | |
| 2011-01-26 11:16:07,809 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:236] cat (/etc/apt/sources.list.d/Partner.list.md5) | |
| 2011-01-26 11:16:07,809 TRACE [pallet.script] (main) Looking up script :cat | |
| 2011-01-26 11:16:07,810 TRACE [pallet.stevedore] (main) INVOKE ls(-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") "2>" "/dev/null") | |
| 2011-01-26 11:16:07,810 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] ls (-t (str "/etc/apt/sources.list.d/Partner.list" ".~[0-9]*~") 2> /dev/null) | |
| 2011-01-26 11:16:07,810 TRACE [pallet.script] (main) Looking up script :ls | |
| 2011-01-26 11:16:07,811 TRACE [pallet.stevedore] (main) INVOKE tail(-n "+6") | |
| 2011-01-26 11:16:07,811 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] tail (-n +6) | |
| 2011-01-26 11:16:07,811 TRACE [pallet.script] (main) Looking up script :tail | |
| 2011-01-26 11:16:07,811 TRACE [pallet.stevedore] (main) INVOKE xargs(rm -f) | |
| 2011-01-26 11:16:07,811 TRACE [pallet.script] (main) invoke-target [pallet/resource/remote_file.clj:239] xargs (rm -f) | |
| 2011-01-26 11:16:07,811 TRACE [pallet.script] (main) Looking up script :xargs | |
| 2011-01-26 11:16:07,812 TRACE [pallet.stevedore] (main) INVOKE package-manager-non-interactive | |
| 2011-01-26 11:16:07,812 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:178] package-manager-non-interactive () | |
| 2011-01-26 11:16:07,812 TRACE [pallet.script] (main) Looking up script :package-manager-non-interactive | |
| 2011-01-26 11:16:07,812 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,812 TRACE [pallet.script] (main) Found implementation for package-manager-non-interactive - pallet.resource.package$eval5337$script_fn_for_package_manager_non_interactive__5338@19e185b9 invoking with () empty? true | |
| 2011-01-26 11:16:07,813 TRACE [pallet.stevedore] (main) INVOKE debconf-set-selections("debconf debconf/frontend select noninteractive" "debconf debconf/frontend seen false") | |
| 2011-01-26 11:16:07,813 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:null] debconf-set-selections (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) | |
| 2011-01-26 11:16:07,813 TRACE [pallet.script] (main) Looking up script :debconf-set-selections | |
| 2011-01-26 11:16:07,813 TRACE [pallet.script] (main) Found implementations ([#{:aptitude}] :default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,813 TRACE [pallet.script] (main) Found implementation for debconf-set-selections - pallet.resource.package$eval5328$script_fn_for_debconf_set_selections__5329@3860458b invoking with (debconf debconf/frontend select noninteractive debconf debconf/frontend seen false) empty? false | |
| 2011-01-26 11:16:07,817 TRACE [pallet.stevedore] (main) INVOKE aptitude(install -q -y "sun-java6-bin+ sun-java6-jdk+") | |
| 2011-01-26 11:16:07,817 TRACE [pallet.script] (main) invoke-target [pallet/resource/package.clj:179] aptitude (install -q -y sun-java6-bin+ sun-java6-jdk+) | |
| 2011-01-26 11:16:07,818 TRACE [pallet.script] (main) Looking up script :aptitude | |
| 2011-01-26 11:16:07,819 TRACE [pallet.stevedore] (main) INVOKE mkdir("$(getent passwd tim | cut -d: -f6)/.ssh/" {:p true}) | |
| 2011-01-26 11:16:07,819 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:55] mkdir ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) | |
| 2011-01-26 11:16:07,819 TRACE [pallet.script] (main) Looking up script :mkdir | |
| 2011-01-26 11:16:07,819 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,820 TRACE [pallet.script] (main) Found implementation for mkdir - pallet.resource.directory$eval4797$script_fn_for_mkdir__4798@51a84ed6 invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/ {:p true}) empty? false | |
| 2011-01-26 11:16:07,820 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 11:16:07,821 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:41] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 11:16:07,821 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 11:16:07,821 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,821 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@cfed7c invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 11:16:07,822 TRACE [pallet.stevedore] (main) INVOKE chmod("755" "$(getent passwd tim | cut -d: -f6)/.ssh/" {}) | |
| 2011-01-26 11:16:07,822 TRACE [pallet.script] (main) invoke-target [pallet/resource/directory.clj:47] chmod (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) | |
| 2011-01-26 11:16:07,822 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 11:16:07,822 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,822 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@52f0684e invoking with (755 $(getent passwd tim | cut -d: -f6)/.ssh/ {}) empty? false | |
| 2011-01-26 11:16:07,823 TRACE [pallet.stevedore] (main) INVOKE touch("$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" {}) | |
| 2011-01-26 11:16:07,823 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:141] touch ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) | |
| 2011-01-26 11:16:07,823 TRACE [pallet.script] (main) Looking up script :touch | |
| 2011-01-26 11:16:07,823 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,824 TRACE [pallet.script] (main) Found implementation for touch - pallet.resource.file$eval3631$script_fn_for_touch__3632@2550036c invoking with ($(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys {}) empty? false | |
| 2011-01-26 11:16:07,824 TRACE [pallet.stevedore] (main) INVOKE chown("tim" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 11:16:07,824 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:127] chown (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 11:16:07,824 TRACE [pallet.script] (main) Looking up script :chown | |
| 2011-01-26 11:16:07,825 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,825 TRACE [pallet.script] (main) Found implementation for chown - pallet.resource.file$eval3616$script_fn_for_chown__3617@cfed7c invoking with (tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 11:16:07,825 TRACE [pallet.stevedore] (main) INVOKE chmod("644" "$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys") | |
| 2011-01-26 11:16:07,825 TRACE [pallet.script] (main) invoke-target [pallet/resource/file.clj:131] chmod (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) | |
| 2011-01-26 11:16:07,825 TRACE [pallet.script] (main) Looking up script :chmod | |
| 2011-01-26 11:16:07,825 TRACE [pallet.script] (main) Found implementations (:default) - template (:ubuntu :aptitude) | |
| 2011-01-26 11:16:07,826 TRACE [pallet.script] (main) Found implementation for chmod - pallet.resource.file$eval3626$script_fn_for_chmod__3627@52f0684e invoking with (644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys) empty? false | |
| 2011-01-26 11:16:07,826 TRACE [pallet.core] (main) Bootstrap script: | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 11:16:07,827 INFO [pallet.compute.jclouds] (main) building node template for :apparatus | |
| 2011-01-26 11:16:07,827 INFO [pallet.compute.jclouds] (main) authorizing /Users/tim/.ssh/id_rsa.pub | |
| 2011-01-26 11:16:07,827 DEBUG [pallet.compute.jclouds] (main) init script | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { tmpfile=$(mktemp -t addscopeXXXX) && cp -p /etc/apt/sources.list ${tmpfile} && awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { aptitude update || true; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-bin shared/present-sun-dlj-v1-1 note | |
| sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "package-manager..." | |
| { { debconf-set-selections <<EOF | |
| sun-java6-jdk shared/present-sun-dlj-v1-1 note | |
| sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | |
| EOF | |
| }; } || { echo "package-manager" failed; exit 1; } >&2 | |
| echo "...done" | |
| if getent passwd tim; then /usr/sbin/usermod --shell /bin/bash tim;else /usr/sbin/useradd --shell /bin/bash --create-home tim;fi | |
| file=/etc/sudoers | |
| cat > ${file} <<EOF | |
| root ALL = (ALL) ALL | |
| %adm ALL = (ALL) ALL | |
| tim ALL = (ALL) NOPASSWD: ALL | |
| EOF | |
| chmod 0440 ${file} | |
| chown root ${file} | |
| echo "Package source..." | |
| { echo "remote-file /etc/apt/sources.list.d/Partner.list..." | |
| { { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet | |
| deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) partner | |
| EOFpallet | |
| } && md5diff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then | |
| md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5 | |
| md5diff=$? | |
| fi | |
| contentdiff= | |
| if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then | |
| diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new | |
| contentdiff=$? | |
| fi | |
| if [ \( "${md5diff}" == "1" \) ]; then | |
| echo Existing content did not match md5: | |
| exit 1 | |
| fi | |
| if [ \( "${contentdiff}" != "0" \) ]; then | |
| mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi | |
| if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then | |
| mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list | |
| fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ 2> /dev/null | tail -n +6 | xargs rm -f; } || { echo "remote-file /etc/apt/sources.list.d/Partner.list" failed; exit 1; } >&2 | |
| echo "...done"; } || { echo "Package source" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Packages..." | |
| { { debconf-set-selections <<EOF | |
| debconf debconf/frontend select noninteractive | |
| debconf debconf/frontend seen false | |
| EOF | |
| } && aptitude install -q -y sun-java6-bin+ sun-java6-jdk+; } || { echo "Packages" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Upgrading..." | |
| { apt-get upgrade -y; } || { echo "Upgrading" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/..." | |
| { mkdir -p $(getent passwd tim | cut -d: -f6)/.ssh/ && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/ && chmod 755 $(getent passwd tim | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd tim | cut -d: -f6)/.ssh/" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys..." | |
| { touch $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chown tim $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && chmod 644 $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys; } || { echo "file $(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys" failed; exit 1; } >&2 | |
| echo "...done" | |
| echo "authorize-key..." | |
| { auth_file=$(getent passwd tim | cut -d: -f6)/.ssh/authorized_keys && if ! fgrep "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local" ${auth_file}; then | |
| echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuYVNVzxlmFCWOle8DcuchdezYr3GnjfPY4JDw6ciEiwJQdNU7vBq3i9VWIp/9tFL0Xs7nlYpOSoLpQw69Yh4Kaam8CnuPRpR8WE3BY2EkThkJp6BJfTFUHjdqJRaO0A1rENIYBGVOjrvHkhcRZKz1it2IewlnFI1T0PZa06c9MrxOcLV2Cna/wP8yqw4hqsao1mx9XgwZy203kcIOLLQyM0zSnTScUoSwji0CZ46eEpywYKEZ7Aif4YNs+NFNfTN0XotzLoGzF/cdqak2E7g44RsHRC+qP0WDXg100Ns222DEiuDe7DQQ5LMNcc7XvQG/Xuza7r8h9ujyTREEBc/MQ== tim@Tim-Dysingers-MacBook-Air.local | |
| " >> ${auth_file} | |
| fi; } || { echo "authorize-key" failed; exit 1; } >&2 | |
| echo "...done" | |
| 2011-01-26 11:16:07,827 INFO [pallet.compute.jclouds] (main) options {:image-id "us-east-1/ami-88f504e1", :inbound-ports [22 8080]} | |
| 2011-01-26 11:19:21,653 WARN [pallet.core] (main) Undefined phases: configure | |
| 2011-01-26 11:19:21,653 TRACE [pallet.core] (main) lift-nodes phases [:configure] | |
| 2011-01-26 11:19:21,661 INFO [pallet.core] (main) apply-phase :pre-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:19:21,669 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:19:21,677 INFO [pallet.core] (main) apply-phase :configure for :apparatus with 1 nodes | |
| 2011-01-26 11:19:21,677 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa | |
| 2011-01-26 11:19:21,678 INFO [pallet.core] (main) apply-phase :after-configure for :apparatus with 1 nodes | |
| 2011-01-26 11:19:21,678 INFO [pallet.core] (main) Using identity at /Users/tim/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment