source:
trunk/puppet/modules/puppet-ltsp/manifests/classes/server.pp
@
714
Last change on this file since 714 was 713, checked in by , 14 years ago | |
---|---|
File size: 773 bytes |
Rev | Line | |
---|---|---|
[161] | 1 | class ltsp::common { |
[683] | 2 | package { [ |
3 | "ltsp-server", | |
[687] | 4 | "ltspfs" |
[683] | 5 | ]: ensure => installed } |
[159] | 6 | } |
7 | ||
[686] | 8 | class ltsp::buildclient { |
[161] | 9 | include ltsp::common |
[232] | 10 | |
[161] | 11 | exec { "ltsp-build-client": |
[683] | 12 | command => "ltsp-build-client", |
13 | path => "/bin:/sbin:/usr/sbin:/usr/bin", | |
[700] | 14 | timeout => "-1", |
[161] | 15 | creates => "/opt/ltsp/i386", |
[700] | 16 | before => [ Exec["ltsp-update-image"] ] |
[161] | 17 | } |
[700] | 18 | |
[712] | 19 | exec { "ltsp-update-kernels": |
[713] | 20 | command => "ltsp-update-kernels", |
21 | path => "/bin:/sbin:/usr/sbin:/usr/bin", | |
[712] | 22 | refreshonly => true |
23 | } | |
24 | ||
[700] | 25 | exec { "ltsp-update-image": |
[713] | 26 | command => "chroot /opt/ltsp/i386/ apt-get clean && ltsp-update-image", |
27 | path => "/bin:/sbin:/usr/sbin:/usr/bin", | |
[700] | 28 | refreshonly => true |
29 | } | |
[161] | 30 | } |
Note: See TracBrowser
for help on using the repository browser.