Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ PACKER_VARS := -var 'cm=$(CM)' -var 'version=$(BOX_VERSION)' -var 'update=$(UPDA
ifdef HW_VERSION
PACKER_VARS += -var 'hw_version=$(HW_VERSION)'
endif
ifdef CM_OPTIONS
PACKER_VARS += -var 'cm_options=$(CM_OPTIONS)'
endif
ifdef CM_VERSION
PACKER_VARS += -var 'cm_version=$(CM_VERSION)'
endif
Expand Down
1 change: 1 addition & 0 deletions eval-win10x64-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win10x64-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win10x64-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win10x86-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win10x86-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win10x86-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-datacenter-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-datacenter-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-datacenter.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-standard-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-standard-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2008r2-standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-datacenter-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-datacenter-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-datacenter.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-standard-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-standard-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2012r2-standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2016-standard-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2016-standard-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win2016-standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x64-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x64-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x64-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x86-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x86-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win7x86-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x64-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x64-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x64-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x86-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x86-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions eval-win81x86-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
12 changes: 11 additions & 1 deletion script/cmtool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@ if "%CM%" == "chef" (

:: Deterine the other desired parameters here
if not defined OMNITRUCK_PLATFORM set OMNITRUCK_PLATFORM=windows
if not defined OMNITRUCK_MACHINE_ARCH set OMNITRUCK_MACHINE_ARCH=%PROCESSOR_ARCHITECTURE%
if not defined OMNITRUCK_VERSION set OMNITRUCK_VERSION=%CM_VERSION%

if not defined OMNITRUCK_MACHINE_ARCH (
if "%PROCESSOR_ARCHITECTURE%" == "x86" (
set OMNITRUCK_MACHINE_ARCH=x86
) else (
set OMNITRUCK_MACHINE_ARCH=x64
)
)

:: We exclude the platform version as the Omnitruck API doesn't seem to use this
:: set OMNITRUCK_PLATFORM_VERSION=

Expand Down Expand Up @@ -81,6 +88,7 @@ goto chef
::::::::::::
:chef
::::::::::::
if not defined CHEF_OPTIONS set CHEF_OPTIONS=%CM_OPTIONS%

for %%i in ("%CHEF_URL%") do set CHEF_MSI=%%~nxi
set CHEF_DIR=%TEMP%\chef
Expand Down Expand Up @@ -109,6 +117,7 @@ goto exit0
::::::::::::
:puppet
::::::::::::
if not defined PUPPET_OPTIONS set PUPPET_OPTIONS=%CM_OPTIONS%

:: if "%CM_VERSION%" == "latest" set CM_VERSION=3.8.7

Expand Down Expand Up @@ -150,6 +159,7 @@ goto exit0
::::::::::::
:salt
::::::::::::
if not defined SALT_OPTIONS set SALT_OPTIONS=%CM_OPTIONS%

if "%CM_VERSION%" == "latest" set CM_VERSION=2015.8.8-2

Expand Down
1 change: 1 addition & 0 deletions win2008r2-datacenter-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-datacenter-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-datacenter.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-enterprise-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-enterprise-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-enterprise.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-standard-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-standard-ssh.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
1 change: 1 addition & 0 deletions win2008r2-web-cygwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
Expand Down
Loading