Skip to content

Commit

Permalink
Merge pull request #40 from spuder/new_resource_39
Browse files Browse the repository at this point in the history
Fix issue #39
  • Loading branch information
aredeex authored Nov 6, 2018
2 parents f7f1762 + 8dc50e8 commit 85b89c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/domain_join_ubuntu1404.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions resources/domain_join_ubuntu1604.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 85b89c4

Please sign in to comment.