Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #63 from echocat/develop
Browse files Browse the repository at this point in the history
backmerge for release 1.8.0
  • Loading branch information
dwerder committed Jan 18, 2016
2 parents ac76a72 + 45961ed commit d7c50b5
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Gemfile.lock

# idea
./idea
.idea/
*.iml

# geppetto/eclipse
.project
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2016-01-18 - 1.8.0 (Feature release)

!!! raise veriosn of requirements for stdlib to >4.8.0 !!!

#### Features:

- (ba021e9) #62 Remove herculesteam/augeasproviders_shellvar dependency

## 2016-01-08 - 1.7.2 (Bugfix release)

#### Bugfixes:
Expand Down
12 changes: 6 additions & 6 deletions manifests/server/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
}

if ($mountd_port != undef){
shellvar { 'rpc-mount-options':
ensure => present,
target => '/etc/default/nfs-kernel-server',
variable => 'RPCMOUNTDOPTS',
value => "--manage-gids --port ${mountd_port} --num-threads ${mountd_threads}",
file_line { 'rpc-mount-options':
ensure => present,
path => '/etc/default/nfs-kernel-server',
line => "RPCMOUNTDOPTS=--manage-gids --port ${mountd_port} --num-threads ${mountd_threads}",
match => '^#?RPCMOUNTDOPTS';
}

if $service_manage {
Shellvar['rpc-mount-options'] ~> Service['nfs-kernel-server']
File_line['rpc-mount-options'] ~> Service['nfs-kernel-server']
}
}

Expand Down
12 changes: 6 additions & 6 deletions manifests/server/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
}

if ($mountd_port != undef){
shellvar { 'rpc-mount-options':
ensure => present,
target => '/etc/sysconfig/nfs',
variable => 'MOUNTD_PORT',
value => $mountd_port,
file_line { 'rpc-mount-options':
ensure => present,
path => '/etc/sysconfig/nfs',
line => "MOUNTD_PORT=${mountd_port}",
match => '^#?MOUNTD_PORT';
}

if $service_manage {
Shellvar['rpc-mount-options'] ~> Service[$service_name]
File_line['rpc-mount-options'] ~> Service[$service_name]
}
}

Expand Down
12 changes: 6 additions & 6 deletions manifests/server/ubuntu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
}

if ($mountd_port != undef){
shellvar { 'rpc-mount-options':
ensure => present,
target => '/etc/default/nfs-kernel-server',
variable => 'RPCMOUNTDOPTS',
value => "--manage-gids --port ${mountd_port} --num-threads ${mountd_threads}",
file_line { 'rpc-mount-options':
ensure => present,
path => '/etc/default/nfs-kernel-server',
line => "RPCMOUNTDOPTS=--manage-gids --port ${mountd_port} --num-threads ${mountd_threads}",
match => '^#?RPCMOUNTDOPTS';
}

if $service_manage {
Shellvar['rpc-mount-options'] ~> Service['nfs-kernel-server']
File_line['rpc-mount-options'] ~> Service['nfs-kernel-server']
}
}

Expand Down
9 changes: 4 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,19 @@
},
{
"name": "puppet",
"version_requirement": ">=2.7.20 <5.0.0"
"version_requirement": ">=3.0.0 <5.0.0"
}
],
"name": "echocat-nfs",
"version": "1.7.2",
"version": "1.8.0",
"source": "git clone https://github.com/echocat/puppet-nfs.git",
"author": "echocat",
"license": "Apache-2.0",
"summary": "Installs and configures NFS server and clients",
"project_page": "https://github.com/echocat/puppet-nfs",
"issues_url": "https://github.com/echocat/puppet-nfs/issues",
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">= 3.2.0 < 5.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.1.1 < 2.0.0"},
{"name":"herculesteam/augeasproviders_shellvar","version_requirement":">= 2.1.0"}
{"name":"puppetlabs/stdlib","version_requirement":">= 4.8.0 < 5.0.0"},
{"name":"puppetlabs/concat","version_requirement":">= 1.1.1 < 2.0.0"}
]
}
2 changes: 1 addition & 1 deletion spec/classes/server_debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
context "mountd params set" do
let(:params) {{ :mountd_port => '4711' }}
it do
should contain_shellvar('rpc-mount-options') #.with( 'ensure' => 'present' )
should contain_file_line('rpc-mount-options') #.with( 'ensure' => 'present' )
end

end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/server_redhat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
context "mountd params set" do
let(:params) {{ :mountd_port => '4711' }}
it do
should contain_shellvar('rpc-mount-options') #.with( 'ensure' => 'present' )
should contain_file_line('rpc-mount-options') #.with( 'ensure' => 'present' )
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/server_ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
context "mountd params set" do
let(:params) {{ :mountd_port => '4711' }}
it do
should contain_shellvar('rpc-mount-options') #.with( 'ensure' => 'present' )
should contain_file_line('rpc-mount-options') #.with( 'ensure' => 'present' )
end

end
Expand Down

0 comments on commit d7c50b5

Please sign in to comment.