From 36ce68110134639ed62bd50b7e62fd39111aad7f Mon Sep 17 00:00:00 2001 From: Noel-Jones Date: Thu, 10 Jan 2019 16:11:28 +0000 Subject: [PATCH] Set default_env so exportfs can be found under Chef 14.2+ --- CHANGELOG.md | 5 +++++ metadata.rb | 2 +- providers/export.rb | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 618eafb..1823c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v2.6.4 +------ + +* Set default_env so exportfs can be found under Chef 14.2+ + v2.6.3 ------ diff --git a/metadata.rb b/metadata.rb index f44a4fe..b6be80a 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ description 'Installs and configures NFS, and NFS exports' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) name 'nfs' -version '2.6.3' +version '2.6.4' source_url 'https://github.com/atomic-penguin/cookbook-nfs' if respond_to?(:source_url) issues_url 'https://github.com/atomic-penguin/cookbook-nfs/issues' if respond_to?(:issues_url) chef_version '>= 13.0' if respond_to?(:chef_version) diff --git a/providers/export.rb b/providers/export.rb index 6da675b..de96e1e 100644 --- a/providers/export.rb +++ b/providers/export.rb @@ -42,6 +42,7 @@ execute 'exportfs' do command 'exportfs -ar' + default_env true if respond_to?('default_env') action :nothing end