(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: 16777215
                                  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: 16777215
                          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: 16777215
                          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: [16777215 93]
                )
              ]
              spids: [16777215 211]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (SimpleCommand
                              words: [{(which)} {(flanneld)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(/dev/null)}
                                  spids: [227]
                                )
                                (Redir
                                  op_id: Redir_GreatAnd
                                  fd: 2
                                  arg_word: {(1)}
                                  spids: [230]
                                )
                              ]
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(dnf)} {(install)} {(-y)} {(flannel)})
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op_id: Redir_DLess
                          fd: 16777215
                          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: [250]
                        )
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(/etc/flannel-config.json)}
                          spids: [253]
                        )
                      ]
                    )
                    (SimpleCommand
                      words: [
                        {(etcdctl)}
                        {(-C)}
                        {(${ VSub_Name FLANNEL_ETCD_URL)}
                        {(set)}
                        {(/coreos.com/network/config)}
                      ]
                      redirects: [
                        (Redir
                          op_id: Redir_Less
                          fd: 16777215
                          arg_word: {(/etc/flannel-config.json)}
                          spids: [313]
                        )
                      ]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:NETWORK_CONF_PATH)
                          op: Equal
                          rhs: {(/etc/sysconfig/network-scripts/)}
                          spids: [323]
                        )
                      ]
                      spids: [323]
                    )
                    (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: [328 348]
                              )
                            }
                          spids: [327]
                        )
                      ]
                      spids: [327]
                    )
                    (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: [352 368]
                              )
                            }
                          spids: [351]
                        )
                      ]
                      spids: [351]
                    )
                    (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: [399]
                                )
                              ]
                              spids: [399]
                            )
                          ]
                          spids: [16777215 396]
                        )
                      ]
                      spids: [16777215 405]
                    )
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op_id: Redir_DLess
                          fd: 16777215
                          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: [410]
                        )
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(/etc/sysconfig/flanneld)}
                          spids: [413]
                        )
                      ]
                    )
                    (C {(systemctl)} {(enable)} {(flanneld)})
                    (C {(systemctl)} {(start)} {(flanneld)})
                  ]
                  spids: [16777215 234]
                )
              ]
              spids: [16777215 458]
            )
            (C {(echo)} {(DQ ('Network configuration verified'))})
          ]
          spids: [51]
        )
      spids: [47 50]
    )
  ]
)