module-puppetlabs-apt/manifests/ppa.pp
2011-04-17 21:43:33 -04:00

18 lines
324 B
Puppet

# ppa.pp
define apt::ppa(
) {
require apt
exec { "apt-update-${name}":
command => "/usr/bin/aptitude update",
refreshonly => true,
}
exec { "add-apt-repository-${name}":
command => "/usr/bin/add-apt-repository ${name}",
notify => Exec["apt-update-${name}"],
}
}