ruby - Chef recipe: syntax error,unexpected tIDENTIFIER, expecting ':' -
What can take a look at a below code block and tell me what's wrong with it
% w "# {zookeeper_ensemble}". In_In IP, index | If the node ['ipadress']? ( "# {Ip}") "# {zookeeper_data} / myid" "myid.erb" source of the source owner zookeeper_user group zookeeper_user variable (: myid = & gt; "# {index}") end end end end
I can find the following error
SyntaxError ----------- /root/.chef/local-mode -kas / cache / cookbooks / zookeeper / recipes / default.rb: 69: syntax error, unexpected tIDENTIFIER, ':' template "# {zookeeper_data} / myid" do ^ /root/.chef/local-mode-cache/ cache / cookbooks / zookeeper / recipes / default.rb: 78: syntax error, unexpected keyword_end, hoping to end the input
< P> What do you mean:
/ html > Zookeeper_ensemble.each_with_index do Ip, index | If the node [ 'Aipadres'] == IP template "# {Jhukiper_deta} / Mayid" source "Mayeed. ARB" owner Jhukiper_usr group Jhukiper_yusr variable Made: Index and and and
Comments
Post a Comment