Changeset 161


Ignore:
Timestamp:
Apr 27, 2009, 6:57:51 PM (15 years ago)
Author:
sebas
Message:

una configuracion basica que casi anda bien

Location:
trunk/puppet/manifests
Files:
2 edited

Legend:

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

    r159 r161  
    11#
    22# Example usage:
    3 # The following creates the repository at /var/lib/svn/puppet
    4 #
    5 # svnrepo { puppet: path => "/var/lib/svn" }
    6 #
    7 # The following checks out the repository at /var/lib/puppet
    8 #
    9 # svnserve { puppet: source => "file:///var/lib/svn", path => "/var/lib/puppet" }
     3# ltsp::buildclient { dist:
     4#       mirror => "test",
     5#       securitymirror => "test"
     6# }
    107
    11 class ltsp {
     8class ltsp::common {
    129  package { "ltsp-server": ensure => installed }
    1310}
    1411
    15 
     12define ltsp::buildclient ( $mirror, $securitymirror  ) {
     13    include ltsp::common
     14    exec { "ltsp-build-client":
     15        command => "ltsp-build-client --mirror=$mirror --security-mirror=$securitymirror &>/dev/null",
     16        path => "/bin:/usr/sbin:/usr/bin",
     17        creates => "/opt/ltsp/i386",
     18    }
     19}
  • trunk/puppet/manifests/site.pp

    r159 r161  
    1818    include test_class
    1919    include matrix::cronapt
    20     include ltsp
    2120    include estacion-de-trabajo
     21
     22    ltsp::buildclient { dist:
     23        mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu",
     24        securitymirror => "http://debproxy:3142/security.ubuntu.com"
     25}
     26
    2227}
    2328
Note: See TracChangeset for help on using the changeset viewer.