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

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

reorganisacion del modulo puppet-ltsp

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