This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
forked from haraldsk/puppet-module-nfs
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from haw-hh-ai-lab/configurable_tcp_port_squashed
add mountd option params and add/fix tests to make the work.
- Loading branch information
Showing
19 changed files
with
107 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
class nfs::server::darwin( | ||
$nfs_v4 = false, | ||
$nfs_v4_idmap_domain = undef | ||
$nfs_v4_idmap_domain = undef, | ||
$mountd_port = undef, | ||
$mountd_threads = 1 | ||
) { | ||
fail('NFS server is not supported on Darwin') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
# activate coverage calculation for the whole project | ||
# | ||
at_exit { RSpec::Puppet::Coverage.report! } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
require 'spec_helper' | ||
describe 'nfs::server::redhat' do | ||
context "operatingsystemrelease => 6.4" do | ||
let(:facts) { {:operatingsystemrelease => 6.4} } | ||
let(:facts) { {:operatingsystemrelease => '6.4'} } | ||
it do | ||
should contain_class('nfs::client::redhat') | ||
should contain_service('nfs').with( 'ensure' => 'running' ) | ||
end | ||
end | ||
|
||
context "operatingsystemrelease => 7.1" do | ||
let(:facts) { {:operatingsystemrelease => 7.1} } | ||
let(:facts) { {:operatingsystemrelease => '7.1'} } | ||
it do | ||
should contain_class('nfs::client::redhat') | ||
should contain_class('nfs::server::redhat::service') | ||
should contain_service('nfs-server').with( 'ensure' => 'running' ) | ||
end | ||
|
||
context ":nfs_v4 => true" do | ||
let(:params) {{ :nfs_v4 => true , :nfs_v4_idmap_domain => 'teststring' }} | ||
it do | ||
should contain_augeas('/etc/idmapd.conf').with_changes(/set Domain teststring/) | ||
end | ||
end | ||
|
||
context "setting mountd port" do | ||
let(:params) {{ :mountd_port => 4711 }} | ||
it do | ||
expect { | ||
should contain_class('nfs::server::redhat') | ||
}.to raise_error(Puppet::Error, /Setting mountd port currently not supported on RedHat/) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters