4
나는 apt-get에서 전체 시스템을 업그레이드하는 간단한 방법을 만들고 있습니다.요리사에서 조리법이 실행되지 않음
include_recipe "apt"
execute "apt-get upgrade -y" do
command "apt-get upgrade -y"
action :nothing
end
그러나 그것은 실행되지 없구요 :
chef-solo -j node.json -W
Recipe: up2date::default
* execute[apt-get upgrade -y] action nothing[2012-11-12T13:05:04+01:00]
INFO: Processing execute[apt-get upgrade -y]
action nothing (up2date::default line 12) (up to date)
이유를 이해할 수 없다?
더 나은/깨끗한 방법이 있습니까?
덕분에 단축 될 수 있습니다 'do'블록없이 "apt-get upgrade -y"를 실행하면됩니까? – Disco
예. do 블록없이. –
"apt"조리법이 자동으로 apt-get 업그레이드를 실행한다고 말하는가? 왜냐하면 그것은 나를위한 것 같지 않습니다. –