Initial version of apt::cacher class.
This commit is contained in:
parent
4b9cea15f6
commit
543c4db28c
1 changed files with 22 additions and 0 deletions
|
@ -1,4 +1,26 @@
|
||||||
|
|
||||||
|
# Install apt-cacher server
|
||||||
|
#
|
||||||
|
class apt::cacher {
|
||||||
|
|
||||||
|
package { "apt-cacher":
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
augeas { "apt-cacher-autostart":
|
||||||
|
context => "/files/etc/default/apt-cacher",
|
||||||
|
changes => ["set AUTOSTART 1"],
|
||||||
|
require => Package["apt-cacher"],
|
||||||
|
}
|
||||||
|
|
||||||
|
service { "apt-cacher":
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
require => Package["apt-cacher"],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# Mirroring tool for apt repositories
|
# Mirroring tool for apt repositories
|
||||||
#
|
#
|
||||||
# === Global variables
|
# === Global variables
|
||||||
|
|
Loading…
Add table
Reference in a new issue