Allow priorities to be zero-padded
[puppet-modules/puppetlabs-apt.git] / manifests / conf.pp
index 6be1a67facd423c919615aea0c26997d57236021..08159379e7d017fa33853c4cdca1b9c9ef1e3778 100644 (file)
@@ -1,17 +1,14 @@
 define apt::conf (
-  $priority = '50',
-  $content
-  ) {
+  $content,
+  $ensure   = present,
+  $priority = '50'
+) {
 
-  include apt::params
-
-  $root       = "${apt::params::root}"
-  $apt_conf_d = "${apt::params::apt_conf_d}"
-
-  file { "${apt_conf_d}/${priority}${name}":
-    content => $content,
+  file { "${apt::conf_d}/${priority}${name}":
+    ensure  => $ensure,
+    content => template('apt/_header.erb', 'apt/conf.erb'),
     owner   => root,
     group   => root,
-    mode    => 0644,
+    mode    => '0644',
   }
 }