From 8dc50e854f294c2ee275443b24e6468bfeb5963a Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Tue, 6 Nov 2018 13:02:10 -0700 Subject: [PATCH] Fix issue #39 --- resources/domain_join_ubuntu1404.rb | 4 ++-- resources/domain_join_ubuntu1604.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/domain_join_ubuntu1404.rb b/resources/domain_join_ubuntu1404.rb index 6c6001f..ce3c668 100644 --- a/resources/domain_join_ubuntu1404.rb +++ b/resources/domain_join_ubuntu1404.rb @@ -32,7 +32,7 @@ # https://answers.launchpad.net/ubuntu/+question/293540 execute 'realm join' do - environment 'DOMAIN_PASS' => domain_password + environment 'DOMAIN_PASS' => new_resource.domain_password command <<-EOH echo "${DOMAIN_PASS}" | sudo realm join --verbose #{new_resource.domain} --user #{new_resource.domain_user}@#{new_resource.domain} --computer-ou #{new_resource.ou} --install=/ EOH @@ -54,7 +54,7 @@ action :leave do execute 'realm leave' do - environment 'DOMAIN_PASS' => domain_password + environment 'DOMAIN_PASS' => new_resource.domain_password command <<-EOH sudo realm leave EOH diff --git a/resources/domain_join_ubuntu1604.rb b/resources/domain_join_ubuntu1604.rb index e9ec267..f2857c0 100644 --- a/resources/domain_join_ubuntu1604.rb +++ b/resources/domain_join_ubuntu1604.rb @@ -32,7 +32,7 @@ # https://answers.launchpad.net/ubuntu/+question/293540 execute 'realm join' do - environment 'DOMAIN_PASS' => domain_password + environment 'DOMAIN_PASS' => new_resource.domain_password command <<-EOH echo "${DOMAIN_PASS}" | sudo realm join --verbose #{new_resource.domain} --user #{new_resource.domain_user}@#{new_resource.domain} --computer-ou #{new_resource.ou} --install=/ EOH @@ -54,7 +54,7 @@ action :leave do execute 'realm leave' do - environment 'DOMAIN_PASS' => domain_password + environment 'DOMAIN_PASS' => new_resource.domain_password command <<-EOH sudo realm leave EOH