Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit 19a1ec4488500c78adaa6b0ecb3cc7f84fb5203e @albanpeignier albanpeignier committed Sep 7, 2010
Showing with 103 additions and 0 deletions.
  1. 0 README
  2. +81 −0 files/acng.conf
  3. +22 −0 manifests/init.pp
No changes.
@@ -0,0 +1,81 @@
+
+# Letter case in directive names does not matter. Must be separated with colons.
+
+CacheDir: /var/cache/apt-cacher-ng
+
+# set empty to disable logging
+LogDir: /var/log/apt-cacher-ng
+
+# TCP (http) port
+# Set to 9999 to emulate apt-proxy
+Port:3142
+
+# Addresses to bind/listen on. Multiple addresses must be separated by spaces.
+# DNS resolution is performed. If multiple protocols are available for a
+# hostname (i.e. IPv4 and IPv6) then both shall be supported.
+#
+# Default: not set, will listen on all interfaces.
+#
+# BindAddress: localhost 192.168.7.254
+
+# Repository remapping. See README for details.
+
+Remap-debrep: file:deb_mirror*.gz /debian ; http://ftp.fr.debian.org/debian http://ftp2.fr.debian.org/debian
+
+Remap-uburep: file:ubuntu_mirrors /ubuntu ; http://fr.archive.ubuntu.com/ubuntu/ http://ftp.oleane.net/ubuntu/
+
+Remap-debsec: http://security.debian.org/debian-security /debian-security ; http://ftp.fr.debian.org/debian-security/ http://ftp2.fr.debian.org/debian-security/ http://security.debian.org/debian-security/
+
+Remap-debbackports: backports.debian.org/debian-backports /backports.org/debian/ /debian-backports ; http://ftp.de.debian.org/backports.org/ http://backports.debian.org/debian-backports
+
+Remap-tryphon: http://debian.tryphon.eu/ http://debian.tryphon.org/ ; http://debian.tryphon.eu/
+
+Remap-debianmultimedia: http://www.debian-multimedia.org /debian-multimedia ; http://www.debian-multimedia.org http://mirror.home-dn.net/debian-multimedia/
+
+# Set to 0 to store only type, time and transfer sizes.
+# 1 -> client IP and relative local path are logged too
+# VerboseLog: 1
+
+# Virtual page accessible in a web browser to see statistics and status
+# information, i.e. under http://localhost:3142/acng-report.html
+ReportPage: acng-report.html
+
+# Socket file for accessing through local UNIX socket rather than TCP
+# SocketPath:/var/run/apt-cacher-ng/socket
+
+# Minimum verbosity to stdout/stderr, set 0 to be quiet
+# Verbose: 0
+#
+# Debug level, only working with -debug version
+# Warning, writes a lot into apt-cacher.err logfile
+# Debug:3
+
+# Don't detach from the console
+# ForeGround: 0
+
+# Store the pid of the daemon process therein
+# PidFile: /var/run/apt-cacher-ng/pid
+
+# Forbid outgoing connections, work around them or respond with 503 error
+# offlinemode:0
+
+# Forbid all downloads that don't run through preconfigured backends (.where)
+#ForceManaged: 0
+
+#Proxy: http://www-proxy.example.net:80
+#proxy: http://username:proxypassword@proxy.example.net:3128
+
+# Days before considering an unreferenced file expired (to be deleted).
+# Warning: if the value is set too low and particular index files are not
+# available for some days (mirror downtime) there is a risk of deletion of
+# still usefull package files.
+ExTreshold: 4
+
+# Replace some Windows/DOS-FS incompatible chars when storing
+# StupidFs: 0
+
+# Don't touch this
+# MaxSpareThreadSets: 2
+#VfilePattern = (^|.*?/)(Index|Packages\.gz|Packages\.bz2|Release|Release\.gpg|Sources\.gz|Sources\.bz2|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|Translation[^/]*\.bz2)$
+#PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz)$
+
@@ -0,0 +1,22 @@
+class apt-cacher-ng {
+
+ package { apt-cacher-ng: }
+
+ service { apt-cacher-ng:
+ ensure => running,
+ require => Package[apt-cacher-ng]
+ }
+
+ file { "/etc/apt-cacher-ng/acng.conf":
+ source => "puppet:///apt-cacher-ng/acng.conf",
+ notify => Service[apt-cacher-ng],
+ require => Package[apt-cacher-ng]
+ }
+
+ file { "/var/cache/apt-cacher-ng":
+ owner => apt-cacher-ng,
+ ensure => directory,
+ require => Package[apt-cacher-ng]
+ }
+
+}

0 comments on commit 19a1ec4

Please sign in to comment.