Created
October 12, 2010 19:01
-
-
Save tbatchelli/622718 to your computer and use it in GitHub Desktop.
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
INFO core - retrieving nodes | |
INFO core - converging nodes | |
INFO core - destroying excess nodes | |
INFO core - destroying 1 nodes with tag :haproxy | |
INFO core - adjust-node-counts starting new nodes | |
INFO core - apply-phase :pre-configure for :haproxy with 0 nodes | |
INFO core - apply-phase :configure for :haproxy with 0 nodes | |
INFO core - apply-phase :after-configure for :haproxy with 0 nodes | |
INFO core - apply-phase :pre-deploy for :haproxy with 0 nodes | |
INFO core - apply-phase :deploy for :haproxy with 0 nodes | |
INFO core - apply-phase :after-deploy for :haproxy with 0 nodes | |
INFO core - apply-phase :pre-restart-haproxy for :haproxy with 0 nodes | |
INFO core - apply-phase :restart-haproxy for :haproxy with 0 nodes | |
INFO core - apply-phase :after-restart-haproxy for :haproxy with 0 nodes | |
INFO core - retrieving nodes | |
INFO core - converging nodes | |
INFO core - destroying excess nodes | |
INFO core - adjust-node-counts starting new nodes | |
INFO core - Starting 1 nodes for :haproxy | |
INFO core - building node template for :haproxy | |
INFO core - Default OS is :amzn-linux | |
INFO core - Options {:inbound-ports [80 22]} | |
INFO ssh - Connecting to 67.202.58.111 port 22 | |
INFO ssh - Connection established | |
INFO ssh - Remote version string: SSH-2.0-OpenSSH_5.3 | |
INFO ssh - Local version string: SSH-2.0-JSCH-0.1.42 | |
INFO ssh - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256 | |
INFO ssh - SSH_MSG_KEXINIT sent | |
INFO ssh - SSH_MSG_KEXINIT received | |
INFO ssh - kex: server->client aes128-ctr hmac-md5 none | |
INFO ssh - kex: client->server aes128-ctr hmac-md5 none | |
INFO ssh - SSH_MSG_KEXDH_INIT sent | |
INFO ssh - expecting SSH_MSG_KEXDH_REPLY | |
INFO ssh - ssh_rsa_verify: signature true | |
WARN ssh - Permanently added '67.202.58.111' (RSA) to the list of known hosts. | |
INFO ssh - SSH_MSG_NEWKEYS sent | |
INFO ssh - SSH_MSG_NEWKEYS received | |
INFO ssh - SSH_MSG_SERVICE_REQUEST sent | |
INFO ssh - SSH_MSG_SERVICE_ACCEPT received | |
INFO ssh - Authentications that can continue: publickey,keyboard-interactive,password | |
INFO ssh - Next authentication method: publickey | |
INFO ssh - Authentication succeeded (publickey). | |
INFO ssh - Disconnecting from 67.202.58.111 port 22 | |
INFO ssh - Caught an exception, leaving main loop due to Socket closed | |
INFO core - apply-phase :pre-configure for :haproxy with 1 nodes | |
INFO core - apply-phase :configure for :haproxy with 1 nodes | |
INFO ssh - Connecting to 67.202.58.111 port 22 | |
INFO ssh - Connection established | |
INFO ssh - Remote version string: SSH-2.0-OpenSSH_5.3 | |
INFO ssh - Local version string: SSH-2.0-JSCH-0.1.42 | |
INFO ssh - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256 | |
INFO ssh - SSH_MSG_KEXINIT sent | |
INFO ssh - SSH_MSG_KEXINIT received | |
INFO ssh - kex: server->client aes128-ctr hmac-md5 none | |
INFO ssh - kex: client->server aes128-ctr hmac-md5 none | |
INFO ssh - SSH_MSG_KEXDH_INIT sent | |
INFO ssh - expecting SSH_MSG_KEXDH_REPLY | |
INFO ssh - ssh_rsa_verify: signature true | |
WARN ssh - Permanently added '67.202.58.111' (RSA) to the list of known hosts. | |
INFO ssh - SSH_MSG_NEWKEYS sent | |
INFO ssh - SSH_MSG_NEWKEYS received | |
INFO ssh - SSH_MSG_SERVICE_REQUEST sent | |
INFO ssh - SSH_MSG_SERVICE_ACCEPT received | |
INFO ssh - Authentications that can continue: publickey,keyboard-interactive,password | |
INFO ssh - Next authentication method: publickey | |
INFO ssh - Authentication succeeded (publickey). | |
INFO execute - Cmd echo "Packages..." | |
{ yum install -y -q haproxy; } || { echo Packages failed ; exit 1 ; } >&2 | |
echo "...done" | |
rpm -Uvh format http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-%s.noarch.rpm version | |
echo "remote-file /etc/haproxy/haproxy.cfg..." | |
{ { cat > /etc/haproxy/haproxy.cfg.new <<'EOFpallet' | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
daemon | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
option redispatch | |
retries 3 | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 | |
srvtimeout 50000 | |
listen app1 0.0.0.0:80 | |
balance roundrobin | |
EOFpallet | |
} && md5diff= | |
if [ \( -e /etc/haproxy/haproxy.cfg -a -e /etc/haproxy/haproxy.cfg.md5 \) ]; then | |
md5sum --quiet --check /etc/haproxy/haproxy.cfg.md5 | |
md5diff=$? | |
fi | |
contentdiff= | |
if [ \( -e /etc/haproxy/haproxy.cfg -a -e /etc/haproxy/haproxy.cfg.new \) ]; then | |
diff -u /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.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/haproxy/haproxy.cfg.new /etc/haproxy/haproxy.cfg | |
fi | |
if [ ! -e /etc/haproxy/haproxy.cfg ]; then | |
mv /etc/haproxy/haproxy.cfg.new /etc/haproxy/haproxy.cfg | |
fi && md5sum /etc/haproxy/haproxy.cfg > /etc/haproxy/haproxy.cfg.md5 && echo MD5 sum is $(cat /etc/haproxy/haproxy.cfg.md5) && ls -t /etc/haproxy/haproxy.cfg.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/haproxy/haproxy.cfg failed ; exit 1 ; } >&2 | |
echo "...done" | |
if [ ! -e /etc/sysconfig/haproxy.orig ]; then cp /etc/sysconfig/haproxy /etc/sysconfig/haproxy.orig;fi | |
echo "remote-file /etc/sysconfig/haproxy..." | |
{ { cat > /etc/sysconfig/haproxy.new <<EOFpallet | |
ENABLED=1 | |
EOFpallet | |
} && md5diff= | |
if [ \( -e /etc/sysconfig/haproxy -a -e /etc/sysconfig/haproxy.md5 \) ]; then | |
md5sum --quiet --check /etc/sysconfig/haproxy.md5 | |
md5diff=$? | |
fi | |
contentdiff= | |
if [ \( -e /etc/sysconfig/haproxy -a -e /etc/sysconfig/haproxy.new \) ]; then | |
diff -u /etc/sysconfig/haproxy /etc/sysconfig/haproxy.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/sysconfig/haproxy.new /etc/sysconfig/haproxy | |
fi | |
if [ ! -e /etc/sysconfig/haproxy ]; then | |
mv /etc/sysconfig/haproxy.new /etc/sysconfig/haproxy | |
fi && chown root:root /etc/sysconfig/haproxy && chmod 644 /etc/sysconfig/haproxy && md5sum /etc/sysconfig/haproxy > /etc/sysconfig/haproxy.md5 && echo MD5 sum is $(cat /etc/sysconfig/haproxy.md5) && ls -t /etc/sysconfig/haproxy.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/sysconfig/haproxy failed ; exit 1 ; } >&2 | |
echo "...done" | |
INFO execute - Transfering commands {:exit nil, :out nil} | |
ERROR execute - Exit status : 1 | |
ERROR execute - Output : | |
__| __|_ ) Amazon Linux AMI | |
_| ( / Beta | |
___|\___|___| | |
See /etc/image-release-notes for latest release notes. :-) | |
/usr/bin/sudo -n ~tbatchelli/sudocmdl1019;exit $?; | |
[tbatchelli@domU-12-31-38-04-28-66 ~]$ /usr/bin/sudo -n ~tbatchelli/sudocmdl1019 | |
;exit $?; | |
Packages... | |
Error: Nothing to do | |
Packages failed | |
logout | |
[H[J | |
ERROR execute - Error output : | |
INFO ssh - Disconnecting from 67.202.58.111 port 22 | |
INFO ssh - Caught an exception, leaving main loop due to Socket closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment