Changeset 580


Ignore:
Timestamp:
Mar 12, 2010, 7:18:07 PM (12 years ago)
Author:
sebas@…
Message:

reorganisacion del modulo puppet-ltsp

Location:
trunk/puppet/modules/puppet-ltsp/manifests/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-ltsp/manifests/classes/client.pp

    r459 r580  
     1class ltsp::updateclient::piloto {
     2
     3    svn::checkout { ltsp-cliente:
     4       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/ltsp-cliente",
     5       local_path => "/opt/ltsp/i386",
     6       local_name => "root"
     7    }
     8}
     9
    110class ltsp::client::resolvsh {
    211
  • trunk/puppet/modules/puppet-ltsp/manifests/classes/server.pp

    r577 r580  
    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 # to debug inside ltsp client
    9 # # chroot /opt/ltsp/i386
    10 # # mount /proc -t proc /proc && mount /sys -t sysfs /sys
    11 #
    12 # to end correctly
    13 # # umount /sys && umount /proc
    14 # # exit
    15 
    16 
    17 ## TODO:
    18 # - set root password
    19 # - configure munin-node
    20 # - ocsinventory (with a preseed)
    21 # - update client con pilotos de red + scripts
    22 # - sourcelist for the security
    23 # - cleanup packages after an update because it grows the image
    24 # - http://bazaar.launchpad.net/~jigish-gohil/kiwi-ltsp/trunk/annotate/head%3A/trunk/kiwi-ltsp/ltsp/include/kiwi-ltsp-functions.sh#
    251
    262class ltsp::common {
    27   package { "ltsp-server": ensure => installed }
    28   package { "ltspfs": ensure => installed }
     3    package { "ltsp-server": ensure => installed }
     4    package { "ltspfs": ensure => installed }
    295}
    306
     
    3915}
    4016
    41 class ltsp::updateclient::piloto {
     17class ltsp::tftpdhpa::activate {
     18    package { "tftpd-hpa": ensure => installed }
    4219
    43     svn::checkout { ltsp-cliente:
    44        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/ltsp-cliente",
    45        local_path => "/opt/ltsp/i386",
    46        local_name => "root"
    47     }
    48 }
    49 
    50 class ltsp::tftpdhpa::activate {
    51         package { "tftpd-hpa": ensure => installed }
    52 
    53         line { tftpdhpa_activate_off:
     20    line { tftpdhpa_activate_off:
    5421        file => "/etc/default/tftpd-hpa",
    5522        line => 'RUN_DAEMON="no"',
    5623        ensure => absent,
    5724        require => Package["tftpd-hpa"]
    58         }
     25    }
    5926
    60         line { tftpdhpa_activate_on:
     27    line { tftpdhpa_activate_on:
    6128        file => "/etc/default/tftpd-hpa",
    6229        line => 'RUN_DAEMON="yes"',
    6330        ensure => present,
    6431        require => Package["tftpd-hpa"]
    65         }
     32    }
    6633}
    6734
Note: See TracChangeset for help on using the changeset viewer.