我是puppet的新手,为了学习它,我创建了Puppet Master和Puppet Slave设置并配置了一个
mysql模块来在Puppet客户端上安装MysqL.下面是清单文件.
class MysqL { package { ["MysqL-server-5.5","libaio1","libdbd-MysqL-perl","libdbi-perl","libhtml-template-perl","libMysqLclient18","MysqL-client-5.5","MysqL-common","MysqL-server-core-5.5"]: ensure => present,allowcdrom => 'true',} }
包资源包含MysqL-server的所有依赖项.但我收到以下错误.
Building dependency tree... Reading state information... The following extra packages will be installed: MysqL-common The following NEW packages will be installed: libMysqLclient18 MysqL-common 0 upgraded,2 newly installed,0 to remove and 0 not upgraded. Need to get 738 kB of archives. After this operation,3513 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! MysqL-common libMysqLclient18 E: There are problems and -y was used without --force-yes Error: /Stage[main]/MysqL/Package[libMysqLclient18]/ensure: change from purged to present Failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libMysqLclient18' returned 100: Reading package lists...
我也尝试添加install_options:“ – force-yes”,如错误输出中所述,但仍然遇到同样的问题.
任何有关这方面的帮助将不胜感激.