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 #46 from echocat/develop
Backmerge Develop for release 1.7.0
- Loading branch information
Showing
36 changed files
with
444 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
spec/fixtures/modules/* | ||
spec/fixtures/manifests/* | ||
*swp | ||
*.gem | ||
*.rbc | ||
/.config | ||
/coverage/ | ||
/InstalledFiles | ||
/pkg/ | ||
/spec/reports/ | ||
/test/tmp/ | ||
/test/version_tmp/ | ||
/tmp/ | ||
|
||
# Beaker/Vagrant | ||
.vagrant/ | ||
|
||
# Puppet Files | ||
pkg | ||
spec/fixtures | ||
.rspec_system | ||
.vagrant/ | ||
|
||
## Specific to RubyMotion: | ||
.dat* | ||
.repl_history | ||
build/ | ||
|
||
## Documentation cache and generated files: | ||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
/rdoc/ | ||
|
||
## Environment normalisation: | ||
/.bundle/ | ||
/lib/bundler/man/ | ||
|
||
.DS_Store | ||
Gemfile.lock | ||
.ruby-version | ||
.ruby-gemset | ||
|
||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: | ||
.rvmrc | ||
|
||
# idea | ||
./idea | ||
|
||
# geppetto/eclipse | ||
.project | ||
|
||
# others | ||
*swp | ||
.DS_Store |
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
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,13 +1,14 @@ | ||
# Shamefully stolen from https://github.com/frimik/puppet-nfs | ||
# refactored a bit | ||
|
||
class nfs::client::redhat ( | ||
$nfs_v4 = false, | ||
$nfs_v4_idmap_domain = undef | ||
) inherits nfs::client::redhat::params { | ||
|
||
include nfs::client::redhat::install, | ||
nfs::client::redhat::configure, | ||
nfs::client::redhat::service | ||
include ::nfs::client::redhat::install | ||
include ::nfs::client::redhat::configure | ||
include ::nfs::client::redhat::service | ||
|
||
Class['::nfs::client::redhat::install']-> | ||
Class['::nfs::client::redhat::configure']-> | ||
Class['::nfs::client::redhat::service'] | ||
|
||
} |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
class nfs::client::redhat::configure { | ||
|
||
|
||
if $nfs::client::redhat::nfs_v4 { | ||
augeas { | ||
'/etc/idmapd.conf': | ||
|
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,14 @@ | ||
class nfs::client::ubuntu ( | ||
$nfs_v4 = false, | ||
$nfs_v4_idmap_domain = undef | ||
) { | ||
|
||
include ::nfs::client::ubuntu::install | ||
include ::nfs::client::ubuntu::configure | ||
include ::nfs::client::ubuntu::service | ||
|
||
Class['::nfs::client::ubuntu::install']-> | ||
Class['::nfs::client::ubuntu::configure']-> | ||
Class['::nfs::client::ubuntu::service'] | ||
|
||
} |
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,16 @@ | ||
class nfs::client::ubuntu::configure { | ||
|
||
if $nfs::client::ubuntu::nfs_v4 { | ||
augeas { | ||
'/etc/default/nfs-common': | ||
context => '/files/etc/default/nfs-common', | ||
changes => [ 'set NEED_IDMAPD yes', ]; | ||
'/etc/idmapd.conf': | ||
context => '/files/etc/idmapd.conf/General', | ||
lens => 'Puppet.lns', | ||
incl => '/etc/idmapd.conf', | ||
changes => ["set Domain ${nfs::client::ubuntu::nfs_v4_idmap_domain}"], | ||
} | ||
} | ||
|
||
} |
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,11 @@ | ||
class nfs::client::ubuntu::install { | ||
|
||
package { 'rpcbind': | ||
ensure => installed, | ||
} | ||
|
||
package { ['nfs-common', 'nfs4-acl-tools']: | ||
ensure => installed, | ||
} | ||
|
||
} |
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,17 @@ | ||
class nfs::client::ubuntu::service { | ||
|
||
service { 'rpcbind': | ||
ensure => running, | ||
enable => true, | ||
hasstatus => false, | ||
} | ||
|
||
if $nfs::client::ubuntu::nfs_v4 { | ||
service { 'idmapd': | ||
ensure => running, | ||
subscribe => Augeas['/etc/idmapd.conf', '/etc/default/nfs-common'], | ||
} | ||
} else { | ||
service { 'idmapd': ensure => stopped, } | ||
} | ||
} |
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
Oops, something went wrong.