Changeset 583


Ignore:
Timestamp:
Mar 13, 2010, 12:23:46 PM (12 years ago)
Author:
sebas@…
Message:

formateo al estilo puppet

File:
1 edited

Legend:

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

    r582 r583  
    33define share_dirs($share_root) {
    44
    5         file { "${share_root}/$name":
    6                 ensure => directory,
    7                 owner => "root",
    8                 group => "root",
    9                 mode => 755,
    10         }
    11 
     5    file { "${share_root}/$name":
     6        ensure => directory,
     7        owner  => "root",
     8        group  => "root",
     9        mode   => 755,
     10    }
    1211}
    1312
    1413define share_mounts($share_root, $volgroup) {
    1514
    16         mount { "${share_root}/$name":
    17                 ensure => mounted,
    18                 device => "${volgroup}/$name",
    19                 atboot => true,
    20                 fstype => "ext3",
    21                 options => "defaults,nosuid",
    22                 require => File["${share_root}/$name"],
    23 
    24         }
    25 
     15    mount { "${share_root}/$name":
     16        ensure  => mounted,
     17        device  => "${volgroup}/$name",
     18        atboot  => true,
     19        fstype  => "ext3",
     20        options => "defaults,nosuid",
     21        require => File["${share_root}/$name"],
     22    }
    2623}
    2724
    2825define nfs_share ($shares, $volgroup, $share_access = "*.$domain", $share_options = "rw,sync") {
    2926
    30         include nfs_server
     27    include nfs_server
    3128
    32         share_dirs { $shares: share_root => $name }                             # $shares is an array
    33 #        share_mounts { $shares: share_root => $name, volgroup => $volgroup }    # $shares is an array
     29    share_dirs { $shares: share_root => $name }     # $shares is an array
     30#   share_mounts { $shares: share_root => $name, volgroup => $volgroup }    # $shares is an array
    3431
    35         file { "/etc/exports":
    36                 owner => "root",
    37                 group => "root",
    38                 mode => 644,
    39                 content => template("nfs_server/etc-exports.erb"),
    40                 notify => Service["nfs-kernel-server"],
    41         }
     32    file { "/etc/exports":
     33        owner => "root",
     34        group => "root",
     35        mode => 644,
     36        content => template("nfs_server/etc-exports.erb"),
     37        notify => Service["nfs-kernel-server"],
     38    }
    4239}
    43 
    44 
Note: See TracChangeset for help on using the changeset viewer.