diff --git a/kitchen.dokken.yml b/kitchen.dokken.yml index e3063cb50..2d99e701b 100644 --- a/kitchen.dokken.yml +++ b/kitchen.dokken.yml @@ -6,6 +6,8 @@ driver: provisioner: name: dokken chef_license: accept-no-persist + chef_license_server: + - http://hosted-license-service-lb-8000-606952349.us-west-2.elb.amazonaws.com:8000/ transport: name: dokken diff --git a/lib/kitchen/provisioner/chef_infra.rb b/lib/kitchen/provisioner/chef_infra.rb index 42210d528..2eb8dcc74 100644 --- a/lib/kitchen/provisioner/chef_infra.rb +++ b/lib/kitchen/provisioner/chef_infra.rb @@ -79,6 +79,10 @@ def check_license super info("Fetching the Chef license key") + unless config[:chef_license_server].nil? || config[:chef_license_server].empty? + ENV["CHEF_LICENSE_SERVER"] = config[:chef_license_server].join(",") + end + key, type, install_sh_url = if config[:chef_license_key].nil? Licensing::Base.get_license_keys else