The redhat package manager - rpm has the capability to install packages
from an url. As simple as
rpm -ivh http://example.com/package.rpm
Taking this in consideration we can use this into puppet to install packages
from an url.
Save this text as test.pp
class examplerpm ( $src ) {
package { 'package':
provider => 'rpm',
ensure => installed,
source => "${examplerpm::rpm}"
}
}
class { 'examplerpm':
src => 'https://example.com/package.rpm',
}
Apply the manifest with puppet
puppet apply --debug --no-daemonize test.pp
Voila - the package is installed via puppet->rpm provider.
The key to all this is to specify the provider into the Package section of
examplerpm class. This ensures that rpm will go fetch the source and installs
it.
Showing posts with label rpm. Show all posts
Showing posts with label rpm. Show all posts
Tuesday, October 2, 2012
Puppet install rpms via http sources
Labels:
amazon,
automation,
devops,
puppet,
rpm
Thursday, October 15, 2009
Subscribe to:
Posts (Atom)