(CommandList children: [ (FuncDef name: provision-network-master body: (BraceGroup children: [ (C {(echo)} {(DQ ("Provisioning network on master"))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:FLANNEL_ETCD_URL) op: Equal rhs: {(DQ ("http://") (${ VSub_Name MASTER_IP) (":4379"))} spids: [63] ) ] spids: [63] ) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (SimpleCommand words: [{(which)} {(etcd)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(/dev/null)} spids: [86] ) (Redir op_id: Redir_GreatAnd fd: 2 arg_word: {(1)} spids: [89] ) ] ) ] negated: True ) terminator: <Op_Semi ";"> ) ] action: [ (C {(dnf)} {(install)} {(-y)} {(etcd)}) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("ETCD_NAME=flannel\n") ("ETCD_DATA_DIR=") (Right_DoubleQuote "\"") (/var/lib/etcd/flannel.etcd) (Right_DoubleQuote "\"") ("\n") ("ETCD_LISTEN_PEER_URLS=") (Right_DoubleQuote "\"") ("http://") (${ VSub_Name MASTER_IP) (":4380") (Right_DoubleQuote "\"") ("\n") ("ETCD_LISTEN_CLIENT_URLS=") (Right_DoubleQuote "\"") ("http://") (${ VSub_Name MASTER_IP) (":4379") (Right_DoubleQuote "\"") ("\n") ("ETCD_INITIAL_ADVERTISE_PEER_URLS=") (Right_DoubleQuote "\"") ("http://") (${ VSub_Name MASTER_IP) (":4380") (Right_DoubleQuote "\"") ("\n") ("ETCD_INITIAL_CLUSTER=") (Right_DoubleQuote "\"") ("flannel=http://") (${ VSub_Name MASTER_IP) (":4380") (Right_DoubleQuote "\"") ("\n") ("ETCD_ADVERTISE_CLIENT_URLS=") (Right_DoubleQuote "\"") (${ VSub_Name FLANNEL_ETCD_URL) (Right_DoubleQuote "\"") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [113] ) (Redir op_id: Redir_Great fd: -1 arg_word: {(/etc/etcd/etcd.conf)} spids: [116] ) ] ) (C {(sed)} {(-i)} {(SQ <"/^Restart/a RestartSec=10">)} {(/usr/lib/systemd/system/etcd.service)} ) (C {(systemctl)} {(daemon-reload)}) (C {(systemctl)} {(enable)} {(etcd)}) (C {(systemctl)} {(start)} {(etcd)}) ] spids: [-1 93] ) ] spids: [-1 210] ) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (SimpleCommand words: [{(which)} {(flanneld)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(/dev/null)} spids: [226] ) (Redir op_id: Redir_GreatAnd fd: 2 arg_word: {(1)} spids: [229] ) ] ) ] negated: True ) terminator: <Op_Semi ";"> ) ] action: [ (C {(dnf)} {(install)} {(-y)} {(flannel)}) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("{\n") (" ") (Right_DoubleQuote "\"") (Network) (Right_DoubleQuote "\"") (": ") (Right_DoubleQuote "\"") (${ VSub_Name CONTAINER_SUBNET) (Right_DoubleQuote "\"") (",\n") (" ") (Right_DoubleQuote "\"") (SubnetLen) (Right_DoubleQuote "\"") (": 24,\n") (" ") (Right_DoubleQuote "\"") (Backend) (Right_DoubleQuote "\"") (": {\n") (" ") (Right_DoubleQuote "\"") (Type) (Right_DoubleQuote "\"") (": ") (Right_DoubleQuote "\"") (udp) (Right_DoubleQuote "\"") (",\n") (" ") (Right_DoubleQuote "\"") (Port) (Right_DoubleQuote "\"") (": 8285\n") (" }\n") ("}\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [249] ) (Redir op_id: Redir_Great fd: -1 arg_word: {(/etc/flannel-config.json)} spids: [252] ) ] ) (SimpleCommand words: [ {(etcdctl)} {(-C)} {(${ VSub_Name FLANNEL_ETCD_URL)} {(set)} {(/coreos.com/network/config)} ] redirects: [ (Redir op_id: Redir_Less fd: -1 arg_word: {(/etc/flannel-config.json)} spids: [311] ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NETWORK_CONF_PATH) op: Equal rhs: {(/etc/sysconfig/network-scripts/)} spids: [321] ) ] spids: [321] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:if_to_edit) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(find)} {(${ VSub_Name NETWORK_CONF_PATH) (ifcfg-) (Lit_Other "*") } ) (C {(xargs)} {(grep)} {(-l)} {(VAGRANT-BEGIN)}) ] negated: False ) ] ) left_token: <Left_CommandSub "$("> spids: [326 346] ) } spids: [325] ) ] spids: [325] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NETWORK_IF_NAME) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(${ VSub_Name if_to_edit)}) (C {(awk)} {(-F-)} {(SQ <"{ print $3 }">)}) ] negated: False ) ] ) left_token: <Left_Backtick "`"> spids: [350 366] ) } spids: [349] ) ] spids: [349] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id: BoolUnary_z child: {(DQ ($ VSub_Name "$NETWORK_IF_NAME"))} ) ) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NETWORK_IF_NAME) op: Equal rhs: {(${ VSub_Name DEFAULT_NETWORK_IF_NAME)} spids: [397] ) ] spids: [397] ) ] spids: [-1 394] ) ] spids: [-1 403] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("FLANNEL_ETCD=") (Right_DoubleQuote "\"") (${ VSub_Name FLANNEL_ETCD_URL) (Right_DoubleQuote "\"") ("\n") ("FLANNEL_ETCD_KEY=") (Right_DoubleQuote "\"") (/coreos.com/network) (Right_DoubleQuote "\"") ("\n") ("FLANNEL_OPTIONS=") (Right_DoubleQuote "\"") ("-iface=") (${ VSub_Name NETWORK_IF_NAME) (" --ip-masq") (Right_DoubleQuote "\"") ("\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [408] ) (Redir op_id: Redir_Great fd: -1 arg_word: {(/etc/sysconfig/flanneld)} spids: [411] ) ] ) (C {(systemctl)} {(enable)} {(flanneld)}) (C {(systemctl)} {(start)} {(flanneld)}) ] spids: [-1 233] ) ] spids: [-1 455] ) (C {(echo)} {(DQ ("Network configuration verified"))}) ] spids: [51] ) spids: [47 50] ) ] )