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/*