Changeset 599 for trunk/puppet


Ignore:
Timestamp:
Mar 19, 2010, 7:17:27 PM (14 years ago)
Author:
josx@…
Message:

Mejorando y cambiando la forma en que se usa el modulo cliente de pammount

Location:
trunk/puppet/modules/puppet-openldap
Files:
2 edited

Legend:

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

    r573 r599  
    6565
    6666#
    67 # used like this:
    68 # * for one mount point
    69 #    $pammount_fstype = 'nfs'
    70 #    $pammount_server = '10.0.0.2'
    71 #    $pammount_path  = '~'
    72 #    $pammount_mountpoint = '~'
    73 # * if you need a second mount point
    74 #    $pammount_fstype2 = 'nfs'
    75 #    $pammount_server2 = '10.0.0.2'
    76 #    $pammount_path2  = '/home/shared/'
    77 #    $pammount_mountpoint2 = '/home/shared'
     67# used like this for N mount points:
     68# $mount1 = ['nfs','10.0.0.2','~','~']
     69# $mount2 = ['nfs','10.0.0.2','/home/shared','/home/shared']
     70# $pammount = [ $mount1, $mount2 ]
    7871# include openldap::client::pammount
    7972
     
    8679
    8780    case $operatingsystem {
    88         Ubuntu: {
     81        Ubuntu: {
    8982            file {
    9083                "/etc/security/pam_mount.conf.xml":
  • trunk/puppet/modules/puppet-openldap/templates/pam_mount.conf.xml.erb

    r573 r599  
    88
    99
    10                 <!-- Volume definitions -->
     10<!-- Volume definitions -->
     11<% pammount.each do |type,server,path,mountpoint| %>
     12<volume fstype="<%= type %>" server="<%= server %>" path="<%= path %>" mountpoint="<%= mountpoint %>" />
     13<% end %>
    1114
    12 <volume fstype="<%= pammount_fstype %>" server="<%= pammount_server %>" path="<%= pammount_path %>" mountpoint="<%= pammount_mountpoint %>" />
    13 
    14 <% if has_variable?("pammount_fstype2") then %>
    15 <volume fstype="<%= pammount_fstype2 %>" server="<%= pammount_server2 %>" path="<%= pammount_path2 %>" mountpoint="<%= pammount_mountpoint2 %>" />
    16 <% end %>
    1715
    1816
Note: See TracChangeset for help on using the changeset viewer.