source: trunk/puppet/manifests/classes/ltsp.pp @ 232

Last change on this file since 232 was 232, checked in by sebas, 15 years ago

comentario todo en ltsp client + virtual box repositorio

File size: 1.3 KB
Line 
1#
2# Example usage with a proxy of packages:
3# ltsp::buildclient { dist:
4#       mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu",
5#       securitymirror => "http://debproxy:3142/security.ubuntu.com"
6# }
7#
8# to debug inside ltsp client
9# chroot /opt/ltsp/i386
10# mount /proc -t proc /proc && mount /sys -t sysfs /sys
11
12## TODO:
13# - set root password
14# - configure munin-node
15# - ocsinventory (with a preseed)
16
17class ltsp::common {
18  package { "ltsp-server": ensure => installed }
19  package { "ltspfs": ensure => installed }
20}
21
22define ltsp::buildclient ( $mirror, $securitymirror  ) {
23    include ltsp::common
24
25    exec { "ltsp-build-client":
26        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
27        path => "/bin:/sbin:/usr/sbin:/usr/bin",
28        creates => "/opt/ltsp/i386",
29    }
30}
31
32
33class ltsp::tftpdhpa::activate {
34        package { "tftpd-hpa": ensure => installed }
35
36        line { tftpdhpa_activate_off:
37        file => "/etc/default/tftpd-hpa",
38        line => 'RUN_DAEMON="no"',
39        ensure => absent,
40        require => Package["tftpd-hpa"]
41        }
42
43        line { tftpdhpa_activate_on:
44        file => "/etc/default/tftpd-hpa",
45        line => 'RUN_DAEMON="yes"',
46        ensure => present,
47        require => Package["tftpd-hpa"]
48        }
49}
50
Note: See TracBrowser for help on using the repository browser.