From bef4f986cebacca4a1f4b54b4734aa8a8fcaedcc Mon Sep 17 00:00:00 2001 From: "Aaron Baer (slyness)" Date: Tue, 29 Sep 2020 21:40:16 -0700 Subject: [PATCH 1/5] update attribute configuration --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 699df21..1397ad5 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -20,7 +20,7 @@ default['python']['install_method'] = 'package' -if python['install_method'] == 'package' +if default['python']['install_method'] == 'package' case platform when "smartos" default['python']['prefix_dir'] = '/opt/local' From 4d10d70663b8518c04a75990d3e433c5b0fff074 Mon Sep 17 00:00:00 2001 From: "Aaron Baer (slyness)" Date: Tue, 29 Sep 2020 21:53:43 -0700 Subject: [PATCH 2/5] Estately python 1.4.8 --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 4a86423..92e317b 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email "noah@coderanger.net" license "Apache 2.0" description "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments." -version "1.4.7" +version "1.4.8" depends "build-essential" depends "yum-epel" From a1c865cc5c26a62b67efb607ebbfd491c84cdee5 Mon Sep 17 00:00:00 2001 From: "Aaron Baer (slyness)" Date: Tue, 29 Sep 2020 22:02:45 -0700 Subject: [PATCH 3/5] update case statement to use node reference for platform --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 1397ad5..8028bff 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -21,7 +21,7 @@ default['python']['install_method'] = 'package' if default['python']['install_method'] == 'package' - case platform + case node['platform'] when "smartos" default['python']['prefix_dir'] = '/opt/local' else From 577a8edceaac2bd6ddf4ef9f0d404610ca34202c Mon Sep 17 00:00:00 2001 From: "Aaron Baer (slyness)" Date: Tue, 29 Sep 2020 22:09:22 -0700 Subject: [PATCH 4/5] chef 14 removes support for chef/mixin/language --- providers/pip.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/providers/pip.rb b/providers/pip.rb index bc0d559..653a91f 100644 --- a/providers/pip.rb +++ b/providers/pip.rb @@ -19,7 +19,6 @@ # require 'chef/mixin/shell_out' -require 'chef/mixin/language' include Chef::Mixin::ShellOut def whyrun_supported? From 893d93d4a59c96016dd878afa8af7beb3693cf5e Mon Sep 17 00:00:00 2001 From: "Aaron Baer (slyness)" Date: Tue, 29 Sep 2020 22:12:59 -0700 Subject: [PATCH 5/5] chef 14 removes support for chef/mixin/language --- providers/virtualenv.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/providers/virtualenv.rb b/providers/virtualenv.rb index a04147b..d50265d 100644 --- a/providers/virtualenv.rb +++ b/providers/virtualenv.rb @@ -19,7 +19,6 @@ # require 'chef/mixin/shell_out' -require 'chef/mixin/language' include Chef::Mixin::ShellOut def whyrun_supported?