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
(learn-pallet/bootstrap-ns ssh-cred-forward | |
'[[com.palletops/git-crate "0.8.0-alpha.1"]]) | |
(ns ssh-cred-forward | |
(:require [pallet.crate.git :as git] | |
[pallet.actions :refer [remote-file user]] | |
[pallet.action :refer [with-action-options]])) | |
;;(def private-repo "<your repo url here>") | |
(def private-repo "[email protected]:palletops/pallet-lxc.git" | |
#_"https://github.com/palletops/pallet-lxc.git") |
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
(learn-pallet/bootstrap-ns multi-node nil) | |
(ns multi-node | |
(:require [pallet.crate :as crate] | |
[pallet.core.session :as session])) | |
(def group-a | |
(group-spec | |
"group-a" | |
:extends *base-spec* | |
:phases |
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
(learn-pallet/bootstrap-ns multi-node nil) | |
(ns multi-node | |
(:require | |
[pallet.api :as api] | |
[pallet.crate :as crate] | |
[pallet.node :as node] | |
[pallet.actions :as actions])) | |
(def group-a | |
(api/group-spec |
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
GROUPS: group-a, group-b | |
PHASES: phase-1, phase-2 | |
RESULTS: 1 ERROR | |
group-a with 3 nodes | |
node-a-1 | |
phase-1: OK | |
phase-2: OK | |
node-a-2 | |
phase-1: OK | |
phase-2: FAIL |
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
session-results> (pprint (explain-session result)) | |
{:phases [:configure], | |
:groups (:bad :good), | |
:node-ids | |
("100d9b8d-3304-44f8-b197-28204187e2f9" | |
"69c77ef6-513e-4bd6-ada4-4302d916fb2f" | |
"9be50cc7-e2d0-4812-a6d4-c8919ccb7131" | |
"d6ffc984-fb1b-4f9f-9fff-cb28d58f1653"), | |
:runs | |
{:configure |
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
session-results> (pprint (explain-session result)) | |
{:phases [:configure], | |
:groups (:bad :good), | |
:node-ids | |
("100d9b8d-3304-44f8-b197-28204187e2f9" | |
"69c77ef6-513e-4bd6-ada4-4302d916fb2f" | |
"9be50cc7-e2d0-4812-a6d4-c8919ccb7131" | |
"d6ffc984-fb1b-4f9f-9fff-cb28d58f1653"), | |
:runs | |
{:configure |
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
session-results> (pprint (run)) | |
{:phase-errors true, | |
:phase :second, | |
:results | |
({:errors | |
({:error | |
{:server "192.168.56.101", | |
:type :pallet-script-excution-error, | |
:message "192.168.56.101 Error executing script", | |
:exit 255, |
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
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== [sudo] password for vmfest: package-manager configure :proxy http://10.0.3.2:3128... | |
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== remote-file /etc/apt/apt.conf.d/50pallet... | |
2013-05-20 10:44:06,576 DEBUG p.execute 192.168.56.103 <== palletYJkgc: line 9: /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new: No such file or directory | |
2013-05-20 10:44:06,576 ERROR p.execute 192.168.56.103 #> remote-file /etc/apt/apt.conf.d/50pallet : FAIL | |
2013-05-20 10:44:06,576 WARN p.s.transport 192.168.56.103 Exit status : 1 | |
2013-05-20 10:44:06,679 DEBUG p.s.execute 192.168.56.103 <== ------------- |
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
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> ----------------------------------------- | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> #!/usr/bin/env bash | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'package-manager configure :proxy http://10.0.3.2:3128...'; | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> echo 'remote-file /etc/apt/apt.conf.d/50pallet...'; | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # remote_file.clj:150 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:322 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> # lib.clj:315 | |
2013-05-20 10:44:06,464 DEBUG p.s.execute 192.168.56.103 ==> { cat > /var/lib/pallet/etc/apt/apt.conf.d/50pallet.new <<'EOFpallet' |
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
"good" | |
:extends *base-spec* | |
:phases | |
{:first (api/plan-fn (actions/exec-script | |
(println "first!"))) | |
:second (api/plan-fn | |
(actions/exec-checked-script | |
"say hello!" | |
("echo" "hello world!")))})) |