一、安装软件包
vim /etc/puppet/manifests/site.pp
package { 'httpd':
provider => yum,
ensure => installed,
}
二、指定版本
vim /etc/puppet/manifests/site.pp
package { 'httpd':
provider => yum,
ensure => latest,
}
三、rpm安装
vim /etc/puppet/manifests/site.pp
package { 'epel-release':
provider => rpm,
ensure => installed,
source => '',
}
四、卸载包
vim /etc/puppet/manifests/site.pp
package { 'httpd':
provider => yum,
ensure => purged,
}