Changeset 718


Ignore:
Timestamp:
May 9, 2010, 3:54:01 PM (11 years ago)
Author:
sebas@…
Message:

clases en dev

File:
1 edited

Legend:

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

    r717 r718  
    1313    }
    1414}
     15
     16define share_dirs_dev($share_root) {
     17
     18    file { "${share_root}/$name":
     19        ensure => directory,
     20        owner  => "root",
     21        group  => "root",
     22        mode   => 755,
     23    }
     24}
     25
     26# No lo usamos...
     27define share_mounts_dev($share_root, $volgroup) {
     28    mount { "${share_root}/$name":
     29        ensure  => mounted,
     30        device  => "${volgroup}/$name",
     31        atboot  => true,
     32        fstype  => "ext3",
     33        options => "defaults,nosuid",
     34        require => File["${share_root}/$name"],
     35    }
     36}
     37
     38define nfs_share_dev ($shares, $volgroup, $share_access = "*.$domain", $share_options = "rw,sync") {
     39
     40    include nfs_server
     41
     42    # $shares is an array
     43    share_dirs_dev { $shares: share_root => $name }
     44#   share_mounts { $shares: share_root => $name, volgroup => $volgroup }
     45
     46    file { "/etc/exports":
     47        owner => "root",
     48        group => "root",
     49        mode => 644,
     50        content => template("nfs_server/etc-exports-dev.erb"),
     51        notify => Service["nfs-kernel-server"],
     52    }
     53}
Note: See TracChangeset for help on using the changeset viewer.