Changeset 174 for trunk/puppet/manifests


Ignore:
Timestamp:
May 2, 2009, 1:01:11 AM (15 years ago)
Author:
sebas
Message:

ejemplo del cliente + activacion del servicio apt-cache

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#    }
    15
    26define debproxy::activateclient ( $debproxyhost ) {
    37        file { "/etc/apt/apt.conf.d/01proxy":
    48        ensure => "present",
    5         content => "Acquire::http { Proxy \"http://localhost:3142\"; };\n",
     9        content => "Acquire::http { Proxy \"http://$debproxyhost:3142\"; };\n",
    610        require => Package["apt-cacher"]
    711        }
     
    2428        require => Package["apt-cacher"]
    2529        }
     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        }
    2638}
    27 
Note: See TracChangeset for help on using the changeset viewer.