# # Example usage with a proxy of packages: # ltsp::buildclient { dist: # mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu", # securitymirror => "http://debproxy:3142/security.ubuntu.com" # } # # to debug inside ltsp client # chroot /opt/ltsp/i386 # mount /proc -t proc /proc && mount /sys -t sysfs /sys ## TODO: # - set root password # - configure munin-node # - ocsinventory (with a preseed) class ltsp::common { package { "ltsp-server": ensure => installed } package { "ltspfs": ensure => installed } } define ltsp::buildclient ( $mirror, $securitymirror ) { include ltsp::common exec { "ltsp-build-client": command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror --late-packages \"ssh munin-node\" &>/dev/null", path => "/bin:/sbin:/usr/sbin:/usr/bin", creates => "/opt/ltsp/i386", } } class ltsp::tftpdhpa::activate { package { "tftpd-hpa": ensure => installed } line { tftpdhpa_activate_off: file => "/etc/default/tftpd-hpa", line => 'RUN_DAEMON="no"', ensure => absent, require => Package["tftpd-hpa"] } line { tftpdhpa_activate_on: file => "/etc/default/tftpd-hpa", line => 'RUN_DAEMON="yes"', ensure => present, require => Package["tftpd-hpa"] } }