Changeset 174 for trunk/puppet/manifests
- Timestamp:
- May 2, 2009, 1:01:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/manifests/classes/debproxy.pp
r173 r174 1 # Example: 2 # debproxy::activateclient { dist: 3 # debproxyhost => "thrasy", 4 # } 1 5 2 6 define debproxy::activateclient ( $debproxyhost ) { 3 7 file { "/etc/apt/apt.conf.d/01proxy": 4 8 ensure => "present", 5 content => "Acquire::http { Proxy \"http:// localhost:3142\"; };\n",9 content => "Acquire::http { Proxy \"http://$debproxyhost:3142\"; };\n", 6 10 require => Package["apt-cacher"] 7 11 } … … 24 28 require => Package["apt-cacher"] 25 29 } 30 31 service { 32 "apt-cacher": 33 enable => true, 34 ensure => running, 35 # not sure if i'm correct with the last statement... about line. 36 subscribe => [ Package["apt-cacher"], line["aptcacher_on"] ], 37 } 26 38 } 27
Note: See TracChangeset
for help on using the changeset viewer.