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

Last change on this file since 580 was 580, checked in by sebas@…, 12 years ago

reorganisacion del modulo puppet-ltsp

File size: 884 bytes
Line 
1
2class ltsp::common {
3    package { "ltsp-server": ensure => installed }
4    package { "ltspfs": ensure => installed }
5}
6
7define ltsp::buildclient ( $mirror, $securitymirror  ) {
8    include ltsp::common
9
10    exec { "ltsp-build-client":
11        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null",
12        path => "/bin:/sbin:/usr/sbin:/usr/bin",
13        creates => "/opt/ltsp/i386",
14    }
15}
16
17class ltsp::tftpdhpa::activate {
18    package { "tftpd-hpa": ensure => installed }
19
20    line { tftpdhpa_activate_off:
21        file => "/etc/default/tftpd-hpa",
22        line => 'RUN_DAEMON="no"',
23        ensure => absent,
24        require => Package["tftpd-hpa"]
25    }
26
27    line { tftpdhpa_activate_on:
28        file => "/etc/default/tftpd-hpa",
29        line => 'RUN_DAEMON="yes"',
30        ensure => present,
31        require => Package["tftpd-hpa"]
32    }
33}
34
Note: See TracBrowser for help on using the repository browser.