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

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

mas notas para cuando salimos del chroot

File size: 1.8 KB
RevLine 
[159]1#
[163]2# Example usage with a proxy of packages:
[161]3# ltsp::buildclient { dist:
[163]4#       mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu",
5#       securitymirror => "http://debproxy:3142/security.ubuntu.com"
[161]6# }
[207]7#
8# to debug inside ltsp client
[456]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
[159]15
[456]16
[207]17## TODO:
18# - set root password
19# - configure munin-node
[232]20# - ocsinventory (with a preseed)
[237]21# - update client con pilotos de red + scripts
[251]22# - sourcelist for the security
23# - cleanup packages after an update because it grows the image
[426]24# - http://bazaar.launchpad.net/~jigish-gohil/kiwi-ltsp/trunk/annotate/head%3A/trunk/kiwi-ltsp/ltsp/include/kiwi-ltsp-functions.sh#
[207]25
[161]26class ltsp::common {
[159]27  package { "ltsp-server": ensure => installed }
[163]28  package { "ltspfs": ensure => installed }
[159]29}
30
[161]31define ltsp::buildclient ( $mirror, $securitymirror  ) {
32    include ltsp::common
[232]33
[161]34    exec { "ltsp-build-client":
[207]35        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
[163]36        path => "/bin:/sbin:/usr/sbin:/usr/bin",
[161]37        creates => "/opt/ltsp/i386",
38    }
39}
[163]40
[237]41class ltsp::updateclient::piloto {
[163]42
[237]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
[163]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.