source: trunk/puppet/modules/puppet-ltsp/manifests/classes/server.pp @ 578

Last change on this file since 578 was 577, checked in by sebas@…, 15 years ago

renombro el archivo

File size: 1.8 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# to end correctly
13# # umount /sys && umount /proc
14# # exit
15
16
17## TODO:
18# - set root password
19# - configure munin-node
20# - ocsinventory (with a preseed)
21# - update client con pilotos de red + scripts
22# - sourcelist for the security
23# - cleanup packages after an update because it grows the image
24# - http://bazaar.launchpad.net/~jigish-gohil/kiwi-ltsp/trunk/annotate/head%3A/trunk/kiwi-ltsp/ltsp/include/kiwi-ltsp-functions.sh#
25
26class ltsp::common {
27  package { "ltsp-server": ensure => installed }
28  package { "ltspfs": ensure => installed }
29}
30
31define ltsp::buildclient ( $mirror, $securitymirror  ) {
32    include ltsp::common
33
34    exec { "ltsp-build-client":
35        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
36        path => "/bin:/sbin:/usr/sbin:/usr/bin",
37        creates => "/opt/ltsp/i386",
38    }
39}
40
41class ltsp::updateclient::piloto {
42
43    svn::checkout { ltsp-cliente:
44       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/ltsp-cliente",
45       local_path => "/opt/ltsp/i386",
46       local_name => "root"
47    }
48}
49
50class ltsp::tftpdhpa::activate {
51        package { "tftpd-hpa": ensure => installed }
52
53        line { tftpdhpa_activate_off:
54        file => "/etc/default/tftpd-hpa",
55        line => 'RUN_DAEMON="no"',
56        ensure => absent,
57        require => Package["tftpd-hpa"]
58        }
59
60        line { tftpdhpa_activate_on:
61        file => "/etc/default/tftpd-hpa",
62        line => 'RUN_DAEMON="yes"',
63        ensure => present,
64        require => Package["tftpd-hpa"]
65        }
66}
67
Note: See TracBrowser for help on using the repository browser.