Last change
on this file since 188 was
163,
checked in by sebas, 15 years ago
|
- ejemplo
- path
- ltspfs
- activacion de tftp-hpa
|
File size:
1.0 KB
|
Rev | Line | |
---|
[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 | # } |
---|
[159] | 7 | |
---|
[161] | 8 | class ltsp::common { |
---|
[159] | 9 | package { "ltsp-server": ensure => installed } |
---|
[163] | 10 | package { "ltspfs": ensure => installed } |
---|
[159] | 11 | } |
---|
| 12 | |
---|
[161] | 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", |
---|
[163] | 17 | path => "/bin:/sbin:/usr/sbin:/usr/bin", |
---|
[161] | 18 | creates => "/opt/ltsp/i386", |
---|
| 19 | } |
---|
| 20 | } |
---|
[163] | 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.