Ignore:
Timestamp:
Apr 19, 2010, 6:38:47 PM (12 years ago)
Author:
josx@…
Message:

Por BUG https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/448095 de Resolvconf tenemos que recargar las placas de red para LUCID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-network/manifests/init.pp

    r545 r642  
    1111    OpenBSD: {
    1212      network::interface::openbsd { $name:
    13         address    => $address,
    14         netmask    => $netmask,
    15         broadcast  => $broadcast,
     13        address => $address,
     14        netmask => $netmask,
     15        broadcast => $broadcast,
    1616        parameters => $parameters,
    1717      }
     
    1919    Debian: {
    2020      network::interface::debian { $name:
    21         address    => $address,
    22         netmask    => $netmask,
    23         broadcast  => $broadcast,
     21        address => $address,
     22        netmask => $netmask,
     23        broadcast => $broadcast,
    2424        parameters => $parameters,
    2525      }
     
    2727    Ubuntu: {
    2828      network::interface::debian { $name:
    29         address    => $address,
    30         netmask    => $netmask,
    31         broadcast  => $broadcast,
     29        address => $address,
     30        netmask => $netmask,
     31        broadcast => $broadcast,
    3232        parameters => $parameters,
    3333      }
    34     }
     34      case $lsbdistcodename {
     35        Lucid: {
     36            # Por bug: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/448095
     37            # Recargamos nuevamente las placas de red
     38            $rclocal = "/etc/init.d/rc.local"
     39            file { "$rclocal"  : ensure => present, }
     40            line { "cambiamos rc.local":
     41                file   => "$rclocal" ,
     42                line   => "ifdown -a; ifup -a",
     43                ensure => present,
     44            }
     45
     46        }
     47      }
     48    }
    3549    default: {
    3650      err("Network interface configuration not supported in $operatingsystem")
     
    4458    OpenBSD: {
    4559      network::interface { $name:
    46         address    => $address,
    47         netmask    => $netmask,
    48         broadcast  => $broadcast,
     60        address => $address,
     61        netmask => $netmask,
     62        broadcast => $broadcast,
    4963        parameters => "vlan $vtag vlandev $device $parameters"
    5064      }
Note: See TracChangeset for help on using the changeset viewer.