summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-22 14:46:41 -0700
committerTim Smith <tsmith@chef.io>2018-03-22 14:56:39 -0700
commit7b7a918a0b60e6c1bc7e5da6947db453f7b6dc4a (patch)
treef22e6314641aa3273f77c43c4a3e4742e7e0fdac /lib/chef/resource
parent63fc9a59b870b1890ed658056d04619467c66710 (diff)
downloadchef-7b7a918a0b60e6c1bc7e5da6947db453f7b6dc4a.tar.gz
Require the domain_name to be a FQDN
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/windows_adjoin.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_adjoin.rb b/lib/chef/resource/windows_adjoin.rb
index 25e2537c03..edc2effe26 100644
--- a/lib/chef/resource/windows_adjoin.rb
+++ b/lib/chef/resource/windows_adjoin.rb
@@ -30,7 +30,9 @@ class Chef
introduced "14.0"
property :domain_name, String,
- description: "The domain name to join.",
+ description: "The FQDN of the AD domain to join.",
+ validation_message: "The 'domain_name' property must be a FQDN.",
+ regex: /.\../, # anything.anything
name_property: true
property :domain_user, String,
@@ -46,7 +48,7 @@ class Chef
property :reboot, Symbol,
equal_to: [:immediate, :delayed, :never],
- validation_message: "The reboot property accepts :immediate (reboot as soon as the resource completes), :delayed (reboot once the Chef run completes), and :never (Don't reboot)"
+ validation_message: "The reboot property accepts :immediate (reboot as soon as the resource completes), :delayed (reboot once the Chef run completes), and :never (Don't reboot)",
description: "Controls the system reboot behavior post domain joining. Reboot immediately, after the Chef run completes, or never. Note that a reboot is necessary for changes to take effect.",
default: :immediate