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

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

pilotos de placa de red + scripts

File size: 1.5 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# - update client con pilotos de red + scripts
17
18class ltsp::common {
19  package { "ltsp-server": ensure => installed }
20  package { "ltspfs": ensure => installed }
21}
22
23define ltsp::buildclient ( $mirror, $securitymirror  ) {
24    include ltsp::common
25
26    exec { "ltsp-build-client":
27        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
28        path => "/bin:/sbin:/usr/sbin:/usr/bin",
29        creates => "/opt/ltsp/i386",
30    }
31}
32
33class ltsp::updateclient::piloto {
34
35    svn::checkout { ltsp-cliente:
36       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/ltsp-cliente",
37       local_path => "/opt/ltsp/i386",
38       local_name => "root"
39    }
40}
41
42class ltsp::tftpdhpa::activate {
43        package { "tftpd-hpa": ensure => installed }
44
45        line { tftpdhpa_activate_off:
46        file => "/etc/default/tftpd-hpa",
47        line => 'RUN_DAEMON="no"',
48        ensure => absent,
49        require => Package["tftpd-hpa"]
50        }
51
52        line { tftpdhpa_activate_on:
53        file => "/etc/default/tftpd-hpa",
54        line => 'RUN_DAEMON="yes"',
55        ensure => present,
56        require => Package["tftpd-hpa"]
57        }
58}
59
Note: See TracBrowser for help on using the repository browser.