(List (FunctionDef detect-minion-image [] (If (DBracket {B1 UNARY_STRING_z {[DQ [VarSub KUBE_NODE_IMAGE test_op=VS_TEST_EQUALS {[LIT_CHARS -]}]]}}) (List (Com {[LIT_CHARS detect-image]} ) (= scope= flags=0 words=[] bindings=[('KUBE_NODE_IMAGE', {[VarSub AWS_IMAGE]})]) ) ) ) (FunctionDef generate-minion-user-data [] (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "#! /bin/bash"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "SALT_MASTER='"][VarSub MASTER_INTERNAL_IP][LIT_CHARS "'"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "DOCKER_OPTS='"][VarSub EXTRA_DOCKER_OPTS test_op=VS_TEST_COLON_HYPHEN {}][LIT_CHARS "'"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "readonly NON_MASQUERADE_CIDR='"][VarSub NON_MASQUERADE_CIDR test_op=VS_TEST_COLON_HYPHEN {}][LIT_CHARS "'"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "readonly DOCKER_STORAGE='"][VarSub DOCKER_STORAGE test_op=VS_TEST_COLON_HYPHEN {}][LIT_CHARS "'"]]} ) (Com {[LIT_CHARS grep]} {[LIT_CHARS -v]} {[DQ [LIT_CHARS "^#"]]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/aws/templates/common.sh]]} ) (Com {[LIT_CHARS grep]} {[LIT_CHARS -v]} {[DQ [LIT_CHARS "^#"]]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/aws/templates/format-disks.sh]]} ) (Com {[LIT_CHARS grep]} {[LIT_CHARS -v]} {[DQ [LIT_CHARS "^#"]]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/aws/templates/salt-minion.sh]]} ) ) ) (FunctionDef check-minion [] (List (= scope= flags=0 words=[] bindings=[('minion_ip', {[VarSub 1]})]) (= scope= flags=0 words=[] bindings=[('output', {[ComSub (Com redirects=[(FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 2)]{[LIT_CHARS ssh]} {[LIT_CHARS -oStrictHostKeyChecking] [LIT_DBRACKET_LIKE "="] [LIT_CHARS no]} {[LIT_CHARS -i]} {[DQ [VarSub AWS_SSH_KEY]]} {[VarSub SSH_USER] [LIT_OTHER "@"] [VarSub minion_ip]} {[LIT_CHARS sudo]} {[LIT_CHARS docker]} {[LIT_CHARS ps]} {[LIT_CHARS -a]})]})]) (If (DBracket {B1 UNARY_STRING_z {[DQ [VarSub output]]}}) (List (Com {[LIT_CHARS ssh]} {[LIT_CHARS -oStrictHostKeyChecking] [LIT_DBRACKET_LIKE "="] [LIT_CHARS no]} {[LIT_CHARS -i]} {[DQ [VarSub AWS_SSH_KEY]]} {[VarSub SSH_USER] [LIT_OTHER "@"] [VarSub minion_ip]} {[LIT_CHARS sudo]} {[LIT_CHARS service]} {[LIT_CHARS docker]} {[LIT_CHARS start]} < (FilenameRedirectNode filename={[VarSub LOG]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "not working yet"]]} ) ) (ElseTrue) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS working]]} ) ) ) ) )