1、安裝軟件包ide
vim /etc/puppet/manifests/site.pp spa
package { 'httpd':xml
provider => yum,get
ensure => installed,it
}class
2、指定版本test
vim /etc/puppet/manifests/site.pp 軟件
package { 'httpd':im
provider => yum,yum
ensure => latest,
}
3、rpm安裝
vim /etc/puppet/manifests/site.pp
package { 'epel-release':
provider => rpm,
ensure => installed,
source => 'http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm',
}
4、卸載包
vim /etc/puppet/manifests/site.pp
package { 'httpd':
provider => yum,
ensure => purged,
}