Skip to content

Commit

Permalink
Add a little flexibility in config file sources.
Browse files Browse the repository at this point in the history
Add two sources that make it possible to use a different module to
customize the contents of the config file. The first source gives a
per-fqdn file and the second gives a general file.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
  • Loading branch information
lelutin committed Oct 16, 2010
1 parent ea0b7c8 commit 1ba3928
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
}

file { "/etc/apt-cacher-ng/acng.conf":
source => "puppet:///apt-cacher-ng/acng.conf",
source => ["puppet:///site-apt-cacher-ng/$fqdn/acng.conf",
"puppet:///site-apt-cacher-ng/acng.conf",
"puppet:///apt-cacher-ng/acng.conf"],
notify => Service[apt-cacher-ng],
require => Package[apt-cacher-ng]
}
Expand Down

0 comments on commit 1ba3928

Please sign in to comment.