Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 853 Bytes

File metadata and controls

39 lines (34 loc) · 853 Bytes

Chef EULA

See the README for an overview of the license-acceptance project. This README contains the Golang implementation and notes for using it.

Usage

To use this package you need to add it to your plan, add the key/values show below to your default.toml, and call it in your run hook(s).

plan.sh

pkg_name=example
pkg_origin=chef
pkg_version=0.1.0
pkg_description="My Example Service"
pkg_license=('Proprietary')
pkg_deps=(
  chef/license-acceptance
)

default.toml

[chef_license]
acceptance = "undefined"

run hook

#!/bin/sh
set -e
# Call the script to fail the service if the user has not accepted the license
{{pkgPathFor "chef/license-acceptance"}}/bin/chef-license {{cfg.chef_license.acceptance}}

Your Configuration

[chef_license]
acceptance = "accept"