redirect all output of salt to /dev/ttySO (serial console). Works under openstack, to be tested in amazon EC2
authorPaul Tonelli <paul.tonelli@logilab.fr>
Mon, 15 Apr 2013 11:50:00 +0200
changeset 112 1a3ea03a1668
parent 111 a881ea816c4e
child 113 e274a7faca62
redirect all output of salt to /dev/ttySO (serial console). Works under openstack, to be tested in amazon EC2 Closes bug #209160
others/rc.local
--- a/others/rc.local	Wed Mar 27 17:06:28 2013 +0100
+++ b/others/rc.local	Mon Apr 15 11:50:00 2013 +0200
@@ -17,14 +17,14 @@
 /usr/bin/env python /etc/salt/srv/others/ec2_ami_parser.py
 
 ## update host, get updated code 
-/usr/bin/env salt-call state.highstate
+/usr/bin/env salt-call state.highstate &> /dev/ttyS0
 ## should source everything in /var/salt
-/usr/bin/env salt-call state.highstate
+/usr/bin/env salt-call state.highstate &> /dev/ttyS0
 ## download, untar, resize and mount
-/usr/bin/env salt-call state.sls ami_pre
+/usr/bin/env salt-call state.sls ami_pre &> /dev/ttyS0
 ## update modify image depending on variation.sls file
-/usr/bin/env salt-call state.sls ami_creator
+/usr/bin/env salt-call state.sls ami_creator &> /dev/ttyS0
 ## umount, resize and upload if possible
-/usr/bin/env salt-call state.sls ami_post
+/usr/bin/env salt-call state.sls ami_post &> /dev/ttyS0
 
 exit 0