Ignore:
Timestamp:
Apr 28, 2009, 7:45:10 PM (15 years ago)
Author:
sebas
Message:
  • ejemplo
  • path
  • ltspfs
  • activacion de tftp-hpa
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/manifests/classes/ltsp.pp

    r161 r163  
    11#
    2 # Example usage:
     2# Example usage with a proxy of packages:
    33# ltsp::buildclient { dist:
    4 #       mirror => "test",
    5 #       securitymirror => "test"
     4#       mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu",
     5#       securitymirror => "http://debproxy:3142/security.ubuntu.com"
    66# }
    77
    88class ltsp::common {
    99  package { "ltsp-server": ensure => installed }
     10  package { "ltspfs": ensure => installed }
    1011}
    1112
     
    1415    exec { "ltsp-build-client":
    1516        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror &>/dev/null",
    16         path => "/bin:/usr/sbin:/usr/bin",
     17        path => "/bin:/sbin:/usr/sbin:/usr/bin",
    1718        creates => "/opt/ltsp/i386",
    1819    }
    1920}
     21
     22
     23class ltsp::tftpdhpa::activate {
     24        package { "tftpd-hpa": ensure => installed }
     25
     26        line { tftpdhpa_activate_off:
     27        file => "/etc/default/tftpd-hpa",
     28        line => 'RUN_DAEMON="no"',
     29        ensure => absent,
     30        require => Package["tftpd-hpa"]
     31        }
     32
     33        line { tftpdhpa_activate_on:
     34        file => "/etc/default/tftpd-hpa",
     35        line => 'RUN_DAEMON="yes"',
     36        ensure => present,
     37        require => Package["tftpd-hpa"]
     38        }
     39}
     40
Note: See TracChangeset for help on using the changeset viewer.