#!/usr/bin/env bash # Ref: # https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db ./scripts/export_policy.sh pushd policy-export > /dev/null if [ "$1" = "dry" ]; then DRY="--why-run" fi bundle exec chef-client --chef-license 'accept' -z ${DRY} popd > /dev/null ./scripts/end_run.sh