(FunctionDef provision-network-master [] (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Provisioning network on master"]]} ) (= scope= flags=0 words=[] bindings=[('FLANNEL_ETCD_URL', {[DQ [LIT_CHARS "http://"][VarSub MASTER_IP][LIT_CHARS ":4379"]]})]) (If (Pipeline! (Com {[LIT_CHARS which]} {[LIT_CHARS etcd]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) ) (List (Com {[LIT_CHARS dnf]} {[LIT_CHARS install]} {[LIT_CHARS -y]} {[LIT_CHARS etcd]} ) (Com {[LIT_CHARS cat]} < (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "ETCD_NAME=flannel\n"][LIT_CHARS "ETCD_DATA_DIR="][RIGHT_D_QUOTE "\""][LIT_CHARS /var/lib/etcd/flannel.etcd][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "ETCD_LISTEN_PEER_URLS="][RIGHT_D_QUOTE "\""][LIT_CHARS "http://"][VarSub MASTER_IP][LIT_CHARS ":4380"][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "ETCD_LISTEN_CLIENT_URLS="][RIGHT_D_QUOTE "\""][LIT_CHARS "http://"][VarSub MASTER_IP][LIT_CHARS ":4379"][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "ETCD_INITIAL_ADVERTISE_PEER_URLS="][RIGHT_D_QUOTE "\""][LIT_CHARS "http://"][VarSub MASTER_IP][LIT_CHARS ":4380"][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "ETCD_INITIAL_CLUSTER="][RIGHT_D_QUOTE "\""][LIT_CHARS "flannel=http://"][VarSub MASTER_IP][LIT_CHARS ":4380"][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "ETCD_ADVERTISE_CLIENT_URLS="][RIGHT_D_QUOTE "\""][VarSub FLANNEL_ETCD_URL][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"]]} 0), (FilenameRedirectNode filename={[LIT_CHARS /etc/etcd/etcd.conf]} "> 1), > ) (Com {[LIT_CHARS sed]} {[LIT_CHARS -i]} {[SQ ]} {[LIT_CHARS /usr/lib/systemd/system/etcd.service]} ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS daemon-reload]} ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS enable]} {[LIT_CHARS etcd]} ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS start]} {[LIT_CHARS etcd]} ) ) ) (If (Pipeline! (Com {[LIT_CHARS which]} {[LIT_CHARS flanneld]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) ) (List (Com {[LIT_CHARS dnf]} {[LIT_CHARS install]} {[LIT_CHARS -y]} {[LIT_CHARS flannel]} ) (Com {[LIT_CHARS cat]} < (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "{\n"][LIT_CHARS " "][RIGHT_D_QUOTE "\""][LIT_CHARS Network][RIGHT_D_QUOTE "\""][LIT_CHARS ": "][RIGHT_D_QUOTE "\""][VarSub CONTAINER_SUBNET][RIGHT_D_QUOTE "\""][LIT_CHARS ",\n"][LIT_CHARS " "][RIGHT_D_QUOTE "\""][LIT_CHARS SubnetLen][RIGHT_D_QUOTE "\""][LIT_CHARS ": 24,\n"][LIT_CHARS " "][RIGHT_D_QUOTE "\""][LIT_CHARS Backend][RIGHT_D_QUOTE "\""][LIT_CHARS ": {\n"][LIT_CHARS " "][RIGHT_D_QUOTE "\""][LIT_CHARS Type][RIGHT_D_QUOTE "\""][LIT_CHARS ": "][RIGHT_D_QUOTE "\""][LIT_CHARS udp][RIGHT_D_QUOTE "\""][LIT_CHARS ",\n"][LIT_CHARS " "][RIGHT_D_QUOTE "\""][LIT_CHARS Port][RIGHT_D_QUOTE "\""][LIT_CHARS ": 8285\n"][LIT_CHARS " }\n"][LIT_CHARS "}\n"]]} 0), (FilenameRedirectNode filename={[LIT_CHARS /etc/flannel-config.json]} "> 1), > ) (Com {[LIT_CHARS etcdctl]} {[LIT_CHARS -C]} {[VarSub FLANNEL_ETCD_URL]} {[LIT_CHARS set]} {[LIT_CHARS /coreos.com/network/config]} < (FilenameRedirectNode filename={[LIT_CHARS /etc/flannel-config.json]} 0), > ) (= scope= flags=0 words=[] bindings=[('NETWORK_CONF_PATH', {[LIT_CHARS /etc/sysconfig/network-scripts/]})]) (= scope= flags=0 words=[] bindings=[('if_to_edit', {[ComSub (Pipeline (Com {[LIT_CHARS find]} {[VarSub NETWORK_CONF_PATH] [LIT_CHARS ifcfg-] [LIT_OTHER "*"]}) (Com {[LIT_CHARS xargs]} {[LIT_CHARS grep]} {[LIT_CHARS -l]} {[LIT_CHARS VAGRANT-BEGIN]}) )]})]) (= scope= flags=0 words=[] bindings=[('NETWORK_IF_NAME', {[ComSub (Pipeline (Com {[LIT_CHARS echo]} {[VarSub if_to_edit]}) (Com {[LIT_CHARS awk]} {[LIT_CHARS -F-]} {[SQ ]}) )]})]) (If (DBracket {B1 UNARY_STRING_z {[DQ [VarSub NETWORK_IF_NAME]]}}) (= scope= flags=0 words=[] bindings=[('NETWORK_IF_NAME', {[VarSub DEFAULT_NETWORK_IF_NAME]})]) ) (Com {[LIT_CHARS cat]} < (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "FLANNEL_ETCD="][RIGHT_D_QUOTE "\""][VarSub FLANNEL_ETCD_URL][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "FLANNEL_ETCD_KEY="][RIGHT_D_QUOTE "\""][LIT_CHARS /coreos.com/network][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"][LIT_CHARS "FLANNEL_OPTIONS="][RIGHT_D_QUOTE "\""][LIT_CHARS "-iface="][VarSub NETWORK_IF_NAME][LIT_CHARS " --ip-masq"][RIGHT_D_QUOTE "\""][LIT_CHARS "\n"]]} 0), (FilenameRedirectNode filename={[LIT_CHARS /etc/sysconfig/flanneld]} "> 1), > ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS enable]} {[LIT_CHARS flanneld]} ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS start]} {[LIT_CHARS flanneld]} ) ) ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Network configuration verified"]]} ) ) )