aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--manifests/init.pp10
2 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index 5f8225a..833008e 100644
--- a/README
+++ b/README
@@ -89,8 +89,8 @@ Example:
Resources
=========
-File[apt_config]
-----------------
+Concatenated_file[apt_config]
+-----------------------------
Use this resource to depend on or add to a completed apt configuration
Exec[apt_updated]
diff --git a/manifests/init.pp b/manifests/init.pp
index 12096a0..675c78d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -46,13 +46,13 @@ class apt {
'refresh_apt':
command => '/usr/bin/apt-get update && sleep 1',
refreshonly => true,
- subscribe => [ File["/etc/apt/sources.list"],
- File["/etc/apt/apt.conf.d"],
- Concatenated_file[apt_config] ];
+ subscribe => File['/etc/apt/sources.list',
+ '/etc/apt/apt.conf.d',
+ '/etc/apt/preferences'];
'update_apt':
command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
- require => [ File["/etc/apt/sources.list"],
- File["/etc/apt/preferences"], Concatenated_file[apt_config] ],
+ require => File['/etc/apt/sources.list',
+ '/etc/apt/preferences'],
loglevel => info,
# Another Semaphor for all packages to reference
alias => apt_updated;