(CommandList children: [ (C {(set)} {(-e)}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(BoolUnary op_id:BoolUnary_f child:{(./proxy_setup.sh)})) terminator: <Op_Semi ";"> ) ] action: [(C {(.)} {(./proxy_setup.sh)})] spids: [-1 30] ) ] spids: [-1 37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PROXY_INFO_FILE) op: Equal rhs: {(DQ (/home/vagrant/proxy_info.sh))} spids: [40] ) ] spids: [40] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id:BoolUnary_f child:{($ VSub_Name "$PROXY_INFO_FILE")}) ) terminator: <Op_Semi ";"> ) ] action: [(C {(.)} {($ VSub_Name "$PROXY_INFO_FILE")})] spids: [-1 56] ) ] spids: [-1 63] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(BoolUnary op_id:BoolUnary_z child:{($ VSub_Name "$http_proxy")})) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:GEM_PROXY) op:Equal rhs:{(DQ )} spids:[83])] spids: [83] ) ] spids: [-1 80] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GEM_PROXY) op: Equal rhs: {(DQ ("-p ") ($ VSub_Name "$http_proxy"))} spids: [90] ) ] spids: [90] ) ] spids: [87 96] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(BoolUnary op_id:BoolUnary_z child:{(DQ ($ VSub_Number "$1"))})) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:BOOTSTRAP_IP) op: Equal rhs: {(10.0.100.3)} spids: [115] ) ] spids: [115] ) ] spids: [-1 112] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:BOOTSTRAP_IP) op: Equal rhs: {($ VSub_Number "$1")} spids: [121] ) ] spids: [121] ) ] spids: [118 124] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr:(BoolUnary op_id:BoolUnary_z child:{(DQ ($ VSub_Name "$CURL"))})) terminator: <Op_Semi ";"> ) ] action: [(C {(echo)} {(DQ ("CURL is not defined"))}) (C {(exit)})] spids: [-1 143] ) ] spids: [-1 155] ) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (SimpleCommand words: [{(dpkg)} {(-s)} {(chef-server-core)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[166])] ) (C {(grep)} {(-q)} {(Status.) (Lit_Other "*") (installed)}) ] negated: False ) terminator: <Op_Semi ";"> ) ] action: [(C {(echo)} {(chef)} {(server)} {(is)} {(installed)})] spids: [-1 180] ) ] else_action: [ (C {(dpkg)} {(-i)} {(cookbooks/bcpc/files/default/bins/chef-server.deb)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-s)} {(/etc/opscode/chef-server.rb)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} {(/etc/opscode)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) ] action: [(C {(mkdir)} {(/etc/opscode)}) (C {(chown)} {(775)} {(/etc/opscode)})] spids: [-1 232] ) ] spids: [-1 247] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(/etc/opscode/chef-server.rb)} spids: [252] ) (HereDoc op_id: Redir_DLess fd: -1 body: { (DQ ("# api_fqdn ") (Right_DoubleQuote "\"") (${ VSub_Name BOOTSTRAP_IP) (Right_DoubleQuote "\"") ("\n") ("# allow connecting to http port directly\n") ("# nginx['enable_non_ssl'] = true\n") ("# have nginx listen on port 4000\n") ("nginx['non_ssl_port'] = 4000\n") ("# allow long-running recipes not to die with an error due to auth\n") ("#opscode_erchef['s3_url_ttl'] = 3600\n") ) } do_expansion: True here_end: EOF was_filled: True spids: [256] ) ] ) ] spids: [-1 216] ) ] spids: [-1 273] ) (C {(chef-server-ctl)} {(reconfigure)}) (C {(chef-server-ctl)} {(user-create)} {(admin)} {(admin)} {(admin)} {(admin) (Lit_Other "@") (localhost.com)} {(welcome)} {(--filename)} {(/etc/opscode/admin.pem)} ) (C {(chef-server-ctl)} {(org-create)} {(bcpc)} {(DQ (BCPC))} {(--association)} {(admin)} {(--filename)} {(/etc/opscode/bcpc-validator.pem)} ) (C {(chmod)} {(0600)} (BracedWordTree parts: [(/etc/opscode/) (BracedAltPart words:[{(bcpc-validator)}{(admin)}]) (.pem)] ) ) ] spids: [193 333] ) (C {(dpkg)} {(-E)} {(-i)} {(cookbooks/bcpc/files/default/bins/chef-client.deb)}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalAnd left: (BoolUnary op_id: BoolUnary_f child: {($ VSub_Name "$HOME") (/.ssh/authorized_keys)} ) right: (LogicalNot child: (BoolUnary op_id:BoolUnary_f child:{(/root/.ssh/authorized_keys)}) ) ) ) terminator: <Op_Semi ";"> ) ] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child:(BoolUnary op_id:BoolUnary_d child:{(/root/.ssh)})) ) terminator: <Op_Semi ";"> ) ] action: [(C {(mkdir)} {(/root/.ssh)})] spids: [-1 384] ) ] spids: [-1 392] ) (C {(cp)} {($ VSub_Name "$HOME") (/.ssh/authorized_keys)} {(/root/.ssh/authorized_keys)}) ] spids: [-1 368] ) ] spids: [-1 402] ) (C {(echo)} {(DQ ("HTTP proxy: ") ($ VSub_Name "$http_proxy"))}) (C {(echo)} {(DQ ("HTTPS proxy: ") ($ VSub_Name "$https_proxy"))}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id:BoolUnary_n child:{(DQ ($ VSub_Name "$https_proxy"))}) ) terminator: <Op_Semi ";"> ) ] action: [ (C {(./proxy_cert_download_hack.sh)} {(rubygems.org)}) (C {(./proxy_cert_download_hack.sh)} {(supermarket.chef.io)}) ] spids: [-1 437] ) ] spids: [-1 449] ) (SimpleCommand words: [{(read)} {(shebang)}] redirects: [ (Redir op_id: Redir_Less fd: -1 arg_word: { (CommandSubPart command_list: (CommandList children:[(C {(type)} {(-P)} {(knife)})]) left_token: <Left_CommandSub "$("> spids: [461 467] ) } spids: [459] ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ruby_interp) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name shebang> suffix_op: (Slice begin:(ArithWord w:{(Lit_Digits 2)})) spids: [471 475] ) ) } spids: [469] ) ] spids: [469] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:bindir) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name ruby_interp> suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")}) spids: [480 485] ) ) } spids: [478] ) ] spids: [478] ) (C {($ VSub_Name "$bindir") (/gem)} {(install)} {($ VSub_Name "$GEM_PROXY")} {(knife-acl)}) ] )