Skip to content

Commit

Permalink
Merge pull request #3 from daxgames/sync_pp
Browse files Browse the repository at this point in the history
Sync pp
  • Loading branch information
daxgames authored Feb 26, 2020
2 parents 4331a65 + 07fc9cc commit e5af027
Show file tree
Hide file tree
Showing 104 changed files with 10,078 additions and 9,680 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Makefile.local
rspec_html_reports

.DS_Store
*.*.json
floppy/*.*.*
script/*.*.*

floppy/_packer_config_*.cmd

1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Blake Garner <blake@netjibbing.com>
Joe Fitzgerald <jfitzgerald@pivotal.io>
Julian C. Dunn <jdunn@aquezada.com>
Brian Marsh <pezhore@gmail.com>
Ken Sykora <ksykora@nerdery.com>
Mischa Taylor <mischa@misheska.com>
Nolen Scaife <nolen@scaife.org>
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ WIN81_X64_PRO_CHECKSUM ?= e50a6f0f08e933f25a71fbc843827fe752ed0365
WIN81_X86_PRO ?= iso/en_windows_8.1_professional_vl_with_update_x86_dvd_4065201.iso
WIN81_X86_PRO_CHECKSUM ?= c2d6f5d06362b7cb17dfdaadfb848c760963b254

# Possible values for CM: (nocm | chef | chefdk | salt | puppet)
# Possible values for CM: (nocm | chef | chefdk | chef-workstation | salt | puppet)
CM ?= nocm
# Possible values for CM_VERSION: (latest | x.y.z | x.y)
CM_VERSION ?=
Expand All @@ -73,6 +73,7 @@ ifndef CM_VERSION
CM_VERSION = latest
endif
endif

BOX_VERSION ?= $(shell cat VERSION)
UPDATE ?= false
GENERALIZE ?= false
Expand All @@ -91,6 +92,12 @@ else
endif
# Packer does not allow empty variables, so only pass variables that are defined
PACKER_VARS := -var 'cm=$(CM)' -var 'version=$(BOX_VERSION)' -var 'update=$(UPDATE)' -var 'headless=$(HEADLESS)' -var "shutdown_command=$(SHUTDOWN_COMMAND)"
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
34 changes: 29 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,38 @@ the output of `make list` accordingly.
Possible values for the CM variable are:

* `nocm` - No configuration management tool
* `chef` - Install Chef
* `chef` - Install Chef Client
* `chefdk` - Install Chef Development Kit
* `chef-workstation` - Install Chef Workstation
* `puppet` - Install Puppet
* `salt` - Install Salt

You can also specify a variable `CM_VERSION`, if supported by the
configuration management tool, to override the default of `latest`.
The value of `CM_VERSION` should have the form `x.y` or `x.y.z`,
such as `CM_VERSION := 11.12.4`
You can also specify a variable `CM_VERSION` for all configuration management
tools to override the default of `latest`. The value of `CM_VERSION` should
have the form `x.y` or `x.y.z`, such as `CM_VERSION := 11.12.4`

When changing the value of the `CM` variable to one of the chef-based
configuration management tools, it is relevant to note that recent versions of
chef require a license in order to use. Due to this, specifying the default
version of "latest" for the `CM_VERSION` field will result in using the most
recent "free" version that doesn't require a license. If the user wishes to use
the most recent version that DOES requires licensing, however, the user will
need to explicitly specify "licensed" for `CM_VERSION`. Specifying "licensed"
for `CM_VERSION` will then result in using the most recently available licensed
version. More information on how to accept the chef-client license via
configuration after building a template can be found at
[Accepting the Chef License](https://docs.chef.io/chef_license_accept.html).

It is also possible to specify a `HW_VERSION` if a specific hardware
version is to be used for a build. This is commonly used to provide
compatibility with newer versions of VMware Workstation. For example,
you may indicate version 14 of Workstation: `HW_VERSION := 14`.

For configuration management tools (such as Salt), you can specify a
variable `CM_OPTIONS`. This variable will be passed to the installer for
the configuration management tool. For information on possible values
please read the documentation for the respective configuration management
tool.

Another use for `Makefile.local` is to override the default locations
for the Windows install ISO files.
Expand Down
Loading

0 comments on commit e5af027

Please sign in to comment.