[英]How to install offline package from puppet manifest
class shell_ubn {
file {
"/home/shellinabox/shellinabox_2.14-1_amd64.deb":
ensure => present,
mode => 0777,
source => "puppet:///modules/shell_ubn/shellinabox_2.14-1_amd64.deb",
notify => Package["Shellinabox"],
}
package {
"Shellinabox":
ensure => installed,
source => "/home/shellinabox/shellinabox_2.14-1_amd64.deb",
require => File["/home/shellinabox/shellinabox_2.14-1_amd64.deb"],
}
}
我必須在Ubuntu客戶端上安裝此軟件包,但是會出現以下錯誤:
Error: /Stage[main]/Shell_ubn/Package[Shellinabox]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install Shellinabox' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package Shellinabox
您需要將provider => 'dpkg'
參數添加到package
資源中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.