aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Toelke <pt@philipptoelke.de>2016-07-01 17:00:41 +0200
committerPhilipp Toelke <pt@philipptoelke.de>2016-07-01 17:00:41 +0200
commit96e8a1b73f8d0c997fffc090a7b9c4a59f8385eb (patch)
tree239b75f59f0bc01ec8709da66488bcd55f862129
parent20085c8866294ab0b3c05d514f03e9819f4900b2 (diff)
downloadpuppet-samba-96e8a1b73f8d0c997fffc090a7b9c4a59f8385eb.tar.gz
puppet-samba-96e8a1b73f8d0c997fffc090a7b9c4a59f8385eb.tar.bz2
fix templates so that specs can use them;
-rw-r--r--templates/configure_active_directory.erb2
-rw-r--r--templates/verify_active_directory.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/configure_active_directory.erb b/templates/configure_active_directory.erb
index 4f9b6e0..1e74560 100644
--- a/templates/configure_active_directory.erb
+++ b/templates/configure_active_directory.erb
@@ -57,7 +57,7 @@ done
password='<%= scope.lookupvar('samba::server::ads::winbind_pass') -%>'
# short hostname from facter
-my_hostname="<%= hostname -%>"
+my_hostname="<%= @hostname -%>"
# what account do we use for net ads commands?
winbind_acct="<%= scope.lookupvar('samba::server::ads::winbind_acct') -%>"
diff --git a/templates/verify_active_directory.erb b/templates/verify_active_directory.erb
index 0917c49..c88d6a4 100644
--- a/templates/verify_active_directory.erb
+++ b/templates/verify_active_directory.erb
@@ -24,7 +24,7 @@ fi
password='<%= scope.lookupvar('samba::server::ads::winbind_pass') -%>'
# short hostname from facter
-my_hostname="<%= hostname -%>"
+my_hostname="<%= @hostname -%>"
winbind_acct="<%= scope.lookupvar('samba::server::ads::winbind_acct') -%>"