(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: [16777215 30] ) ] spids: [16777215 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: [16777215 56] ) ] spids: [16777215 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: [16777215 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: [16777215 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: [16777215 143] ) ] spids: [16777215 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: [16777215 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: [16777215 232] ) ] spids: [16777215 247] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/etc/opscode/chef-server.rb)} spids: [252] ) (HereDoc op_id: Redir_DLess fd: 16777215 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: [16777215 216] ) ] spids: [16777215 274] ) (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 334] ) (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: [16777215 385] ) ] spids: [16777215 393] ) (C {(cp)} {($ VSub_Name '$HOME') (/.ssh/authorized_keys)} {(/root/.ssh/authorized_keys)}) ] spids: [16777215 369] ) ] spids: [16777215 403] ) (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: [16777215 438] ) ] spids: [16777215 450] ) (SimpleCommand words: [{(read)} {(shebang)}] redirects: [ (Redir op_id: Redir_Less fd: 16777215 arg_word: { (CommandSubPart command_list: (CommandList children:[(C {(type)} {(-P)} {(knife)})]) left_token: <Left_CommandSub '$('> spids: [462 468] ) } spids: [460] ) ] ) (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: [472 476] ) ) } spids: [470] ) ] spids: [470] ) (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: [481 486] ) ) } spids: [479] ) ] spids: [479] ) (C {($ VSub_Name '$bindir') (/gem)} {(install)} {($ VSub_Name '$GEM_PROXY')} {(knife-acl)}) ] )