Q1:最近測試3.7.1 的版本出現了一個問題:The package type's allow_virtual parameter will be changing its default value from false to true in a future release
A1:
[root@agent1 ~]# puppet --version
3.7.1
[root@agent1 ~]# puppet agent --test --server master.jeffery.com --noop
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for agent1.jeffery.com
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default')
Info: Applying configuration version '1413249918'
Notice: Finished catalog run in 0.11 seconds
出現一個警告,但不影響執行的結果,有羣友說是版本有問題,最終我也不知道是神碼問題的。。
可以在服務器端的 pp文件中的package 中加入 :allow_virtual => false, 來解決出現的警告。
檢查文件的正確性
測試
Q2:
puppet Error 400 on SERVER Permission denied
Error: /Stage[main]/Ssh::Config/File[/etc/ssh/sshd_config]: Could not evaluate: Error 400 on SERVER: Permission denied - /etc/puppet/modules/ssh/files/sshd_config Could not retrieve file metadata for puppet:///modules/ssh/sshd_config: Error 400 on SERVER: Permission denied - /etc/puppet/modules/ssh/files/sshd_config
A2: chmod -R ./ssh/files/*