---
driver:
  name: vagrant

provisioner:
  name: puppet_apply
  modules_path: modules
  manifests_path: manifests
  <% if ENV['PUPPET3'] != nil %>
  require_puppet_collections: false
  <% else %>
  require_puppet_collections: true
  <% end %>
  custom_facts:
    ts_deploy_key: <%= ENV['TS_DEPLOY_KEY'] != nil ? ENV['TS_DEPLOY_KEY'] : 'ts_deploy_key' %>
    ts_config_args: <%= ENV['TS_CONFIG_ARGS'] %>
    <% if ENV['TS_PACKAGE_VERSION'] %>
    ts_package_version: <%= ENV['TS_PACKAGE_VERSION'] %>
    <% end %>

platforms:
  - name: debian-7.8
  - name: ubuntu-12.04
  - name: ubuntu-14.04
  - name: centos-6.7

suites:
  - name: default
    provisioner:
      manifest: site.pp

---
driver:
  name: vagrant

provisioner:
  name: puppet_apply
  modules_path: modules
  manifests_path: manifests
  <% if ENV['PUPPET3'] != nil %>
  require_puppet_collections: false
  <% else %>
  require_puppet_collections: true
  <% end %>
  custom_facts:
    ts_deploy_key: <%= ENV['TS_DEPLOY_KEY'] != nil ? ENV['TS_DEPLOY_KEY'] : 'ts_deploy_key' %>
    <% if ENV['TS_CONFIG_ARGS'] != nil %>
    ts_config_args: <%= ENV['TS_CONFIG_ARGS'] %>
    <% end %>
    <% if ENV['TS_PACKAGE_VERSION'] != nil %>
    ts_package_version: <%= ENV['TS_PACKAGE_VERSION'] %>
    <% end %>

platforms:
  - name: debian-7.8
  - name: ubuntu-12.04
  - name: ubuntu-14.04
  - name: centos-6.7

suites:
  - name: default
    provisioner:
      manifest: site.pp

Set facts in a manner that works properly with Puppet 4.
Set facts in a manner that works properly with Puppet 4.

With puppet 4 TS_CONFIG_ARGS was being defined as empty.
