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
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
9# chroot /opt/ltsp/i386
10# mount /proc -t proc /proc && mount /sys -t sysfs /sys
[159]11
[207]12## TODO:
13# - set root password
14# - configure munin-node
[232]15# - ocsinventory (with a preseed)
[237]16# - update client con pilotos de red + scripts
[207]17
[161]18class ltsp::common {
[159]19  package { "ltsp-server": ensure => installed }
[163]20  package { "ltspfs": ensure => installed }
[159]21}
22
[161]23define ltsp::buildclient ( $mirror, $securitymirror  ) {
24    include ltsp::common
[232]25
[161]26    exec { "ltsp-build-client":
[207]27        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
[163]28        path => "/bin:/sbin:/usr/sbin:/usr/bin",
[161]29        creates => "/opt/ltsp/i386",
30    }
31}
[163]32
[237]33class ltsp::updateclient::piloto {
[163]34
[237]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
[163]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.