diff --git a/apt/manifests/init.pp b/apt/manifests/init.pp index f9baffb..a5b9b35 100644 --- a/apt/manifests/init.pp +++ b/apt/manifests/init.pp @@ -94,7 +94,7 @@ class apt::mirror { # === Sample usage # # apt::package { "python-igraph": -# ensure => present, +# ensure => installed, # source => "http://cneurocvs.rmki.kfki.hu/packages/binary/python-igraph_0.5.2_i386.deb", # } # @@ -105,7 +105,10 @@ define apt::package($ensure, $source) { $filename = regsubst($source, '.*/([^/]+)$', '\1') custom::file { "/var/cache/apt/local-archives/${filename}": - ensure => $ensure, + ensure => $ensure ? { + installed => present, + default => absent, + }, source => $source, mode => 0644, owner => root,