요리사가 자원을 업데이트 할 때 꽤 확신 할 수 없습니다. 여기에 내가 실행 한 명령과 응답은 내가 가지고 : 요리사는 언제 자원을 업데이트합니까?
sudo chef-client -zr "recipe[workstation]"
[2017-10-03T14:01:26+00:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 12.14.89
resolving cookbooks for run list: ["workstation"]
[2017-10-03T14:01:28+00:00] WARN: Cookbook 'cookbooks' is empty or entirely chefignored at /home/centos/cookbooks/cookbooks
Synchronizing Cookbooks:
- workstation (0.2.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 7 resources
Recipe: workstation::setup
* yum_package[vim-enhanced] action install (up to date)
* yum_package[emacs] action install (up to date)
* yum_package[tree] action install (up to date)
* yum_package[git] action install (up to date)
* yum_package[ntp] action install (up to date)
* template[/etc/motd] action create
- update content in file /etc/motd from c102c5 to e0c53e
--- /etc/motd 2017-09-22 16:41:57.273701730 +0000
+++ /etc/.chef-motd20171003-2405-1ygf6go 2017-10-03 14:01:34.211094244 +0000
@@ -1,7 +1,7 @@
This server is the property of Syed
HOSTNAME: ip-172-31-35-182
IPADRESS: 172.31.35.182
- CPU: 2400.046
+ CPU: 2400.108
MEMORY: 1014976kB
NAME: Syed
- restore selinux security context
* service[ntpd] action enable (up to date)
* service[ntpd] action start
- start service service[ntpd]
Running handlers:
Running handlers complete
Chef Client finished, 2/8 resources updated in 07 seconds
그냥 내가 요리사에서 총 newb입니다 명확하게하기 위해,하지만 결과는 다를 명령하지만, 몇 번이 요리사 - 클라이언트를 실행할 때마다 것 같아 그것은 제가 자원을 바꾸기 위해 무엇을했는지 알지 못할 때 리소스가 업데이트된다는 것을 알려줍니다. 어떤 도움이라도 좋을 것입니다. 감사.
템플릿의 CPU 줄은 어떻게 생겼습니까? 변경되는 값을 사용하고 있습니까? – coderanger