Last change
on this file since 195 was
163,
checked in by sebas, 15 years ago
|
- ejemplo
- path
- ltspfs
- activacion de tftp-hpa
|
File size:
1.0 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 | class ltsp::common { |
---|
9 | package { "ltsp-server": ensure => installed } |
---|
10 | package { "ltspfs": ensure => installed } |
---|
11 | } |
---|
12 | |
---|
13 | define ltsp::buildclient ( $mirror, $securitymirror ) { |
---|
14 | include ltsp::common |
---|
15 | exec { "ltsp-build-client": |
---|
16 | command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror &>/dev/null", |
---|
17 | path => "/bin:/sbin:/usr/sbin:/usr/bin", |
---|
18 | creates => "/opt/ltsp/i386", |
---|
19 | } |
---|
20 | } |
---|
21 | |
---|
22 | |
---|
23 | class ltsp::tftpdhpa::activate { |
---|
24 | package { "tftpd-hpa": ensure => installed } |
---|
25 | |
---|
26 | line { tftpdhpa_activate_off: |
---|
27 | file => "/etc/default/tftpd-hpa", |
---|
28 | line => 'RUN_DAEMON="no"', |
---|
29 | ensure => absent, |
---|
30 | require => Package["tftpd-hpa"] |
---|
31 | } |
---|
32 | |
---|
33 | line { tftpdhpa_activate_on: |
---|
34 | file => "/etc/default/tftpd-hpa", |
---|
35 | line => 'RUN_DAEMON="yes"', |
---|
36 | ensure => present, |
---|
37 | require => Package["tftpd-hpa"] |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.