From 221e3049f04fb608d013d7092bcfb258010b2d6d Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 24 Jan 2014 17:26:13 -0500 Subject: Add support for setting: 'rpc-auth-allow-insecure' in glusterd.vol. --- manifests/server.pp | 6 ++++++ manifests/simple.pp | 2 ++ 2 files changed, 8 insertions(+) (limited to 'manifests') diff --git a/manifests/server.pp b/manifests/server.pp index c306f22..8274c02 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -23,6 +23,7 @@ class gluster::server( $vrrp = false, $password = '', # global vrrp password to use $baseport = '', # specify base port option as used in glusterd.vol file + $rpcauthallowinsecure = false, # needed in some setups in glusterd.vol $shorewall = false, $zone = 'net', # TODO: allow a list of zones $ips = false, # an optional list of ip's for each in hosts[] @@ -76,6 +77,11 @@ class gluster::server( # https://bugzilla.redhat.com/show_bug.cgi?id=987555 $valid_baseport = inline_template('<%= [Fixnum, String].include?(@baseport.class) ? @baseport.to_i : 0 %>') + $valid_rpcauthallowinsecure = $rpcauthallowinsecure ? { + true => true, + default => false, + } + file { '/etc/glusterfs/glusterd.vol': content => template('gluster/glusterd.vol.erb'), owner => root, diff --git a/manifests/simple.pp b/manifests/simple.pp index 44ec2c6..356ece7 100644 --- a/manifests/simple.pp +++ b/manifests/simple.pp @@ -26,6 +26,7 @@ class gluster::simple( $vrrp = false, $password = '', # global vrrp password to use $baseport = '', # specify base port option as used in glusterd.vol file + $rpcauthallowinsecure = false, # needed in some setups in glusterd.vol $shorewall = true ) { include gluster::vardir @@ -68,6 +69,7 @@ class gluster::simple( vrrp => $vrrp, password => "${password}", baseport => $baseport, + rpcauthallowinsecure => $rpcauthallowinsecure, #zone => 'net', # defaults to net shorewall => $shorewall, } -- cgit