Skip to content

Commit

Permalink
Update apt after adding a source.
Browse files Browse the repository at this point in the history
darcs-hash:20110207151934-59231-eec9da69b4f3f66c5e30e7b08e31dff903508380.gz
  • Loading branch information
timstoop committed Feb 7, 2011
1 parent 05ba9fd commit da4e703
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apt/manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
class apt {
define source($sourcetype="deb", $uri, $distribution="stable", $components=[], $comment="", $ensure="file") {
file { "/etc/apt/sources.list.d/$name.list":
ensure => $ensure,
owner => "root",
group => "root",
mode => 644,
ensure => $ensure,
owner => "root",
group => "root",
mode => 644,
content => template("apt/source.list"),
require => File["/etc/apt/sources.list.d"],
notify => Exec["/usr/bin/apt-get update"],
}
}

Expand Down

0 comments on commit da4e703

Please sign in to comment.