Changeset 701


Ignore:
Timestamp:
May 8, 2010, 10:10:36 PM (11 years ago)
Author:
sebas@…
Message:

activo el proxy de paquete, y instalo paquetes en el cliente

File:
1 edited

Legend:

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

    r580 r701  
    1 class ltsp::updateclient::piloto {
     1class ltsp::client::checkoutinroot {
    22
    3     svn::checkout { ltsp-cliente:
     3    svn::checkout { ltsp-client:
    44       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/ltsp-cliente",
    55       local_path => "/opt/ltsp/i386",
    6        local_name => "root"
     6       local_name => "root",
     7       notify     => Exec["ltsp-update-image"],
     8       before     => [ Exec["ltsp-update-image"]  ],
    79    }
    810}
     11
     12define ltsp::client::debproxy::activateclient ( $debproxyhost ) {
     13   file {
     14       "/opt/ltsp/i386/etc/apt/apt.conf.d/01proxy":
     15        ensure  => "present",
     16        content => "Acquire::http { Proxy \"http://$debproxyhost:3142\"; };\n",
     17        before  => [ Exec["ltsp-update-image"] ],
     18        notify  => Exec["ltsp-update-image"],
     19   }
     20}
     21
     22class ltsp::client::installpackages {
     23
     24    define ltsp_client_installpackages($packages) {
     25       ltsp_client_installpackage { $packages: package => $name }
     26    }
     27 
     28    define ltsp_client_installpackage($package) {
     29        exec { "ltsp_client_install_$name":
     30            command => "chroot ${package} apt-get -y install $name",
     31            path    => "/bin:/sbin:/usr/sbin:/usr/bin",
     32            unless  => "chroot ${package} dpkg -l $name",
     33            notify  => Exec["ltsp-update-image"],
     34            before  => [ Exec["ltsp-update-image"] ],
     35        }
     36    }
     37
     38    ltsp_client_installpackages {
     39        "/opt/ltsp/i386/": packages => [ "ssh", "iftop", "iotop" ],
     40    }
     41
     42}
     43
    944
    1045class ltsp::client::resolvsh {
Note: See TracChangeset for help on using the changeset viewer.