run_policy.sh 267 B

123456789
  1. #!/usr/bin/env bash
  2. # Ref:
  3. # https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db
  4. ./scripts/export_policy.sh
  5. pushd policy-export > /dev/null
  6. bundle exec chef-client --chef-license 'accept' -z
  7. popd > /dev/null
  8. ./scripts/end_run.sh