Changeset 545


Ignore:
Timestamp:
Feb 27, 2010, 1:19:45 AM (12 years ago)
Author:
sebas
Message:

formateo segun la guia de estilo de puppet

Location:
trunk/puppet/modules/puppet-network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-network/README

    r540 r545  
    1212
    1313    network::interface { "eth0" :
    14         address => "10.11.9.8",
    15         broadcast => "10.11.9.255",
    16         netmask => "255.255.255.0",
     14        address    => "10.11.9.8",
     15        broadcast  => "10.11.9.255",
     16        netmask    => "255.255.255.0",
    1717        parameters => "gateway 10.11.9.1\n        dns-search mydomain.mine.nu\n        dns-nameservers 10.11.9.1",
    1818    }
  • trunk/puppet/modules/puppet-network/manifests/init.pp

    r510 r545  
    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      }
     
    4444    OpenBSD: {
    4545      network::interface { $name:
    46         address => $address,
    47         netmask => $netmask,
    48         broadcast => $broadcast,
     46        address    => $address,
     47        netmask    => $netmask,
     48        broadcast  => $broadcast,
    4949        parameters => "vlan $vtag vlandev $device $parameters"
    5050      }
  • trunk/puppet/modules/puppet-network/manifests/os/debian.pp

    r538 r545  
    11class network::debian {
    22  exec { "networking":
    3     command => "/usr/sbin/invoke-rc.d networking restart",
    4     logoutput => true,
     3    command     => "/usr/sbin/invoke-rc.d networking restart",
     4    logoutput   => true,
    55    refreshonly => true,
    66  }
    77
    88  package {"resolvconf":
    9     ensure    => installed,
     9    ensure => installed,
    1010  }
    1111
     
    2121  exec { "add an interface":
    2222    command => "/bin/echo '${content}' >> $file",
    23     unless => "/bin/grep -q '^iface[[:space:]]*${name}[[:space:]]' $file",
    24     notify => Exec["networking"]
     23    unless  => "/bin/grep -q '^iface[[:space:]]*${name}[[:space:]]' $file",
     24    notify  => Exec["networking"]
    2525  }
    2626
  • trunk/puppet/modules/puppet-network/manifests/os/openbsd.pp

    r510 r545  
    11class network::openbsd {
    22  exec { "netstart":
    3     command => "/bin/sh /etc/netstart",
    4     logoutput => true,
     3    command     => "/bin/sh /etc/netstart",
     4    logoutput   => true,
    55    refreshonly => true,
    66  }
Note: See TracChangeset for help on using the changeset viewer.