|
@@ -2,10 +2,7 @@
|
|
|
|
|
|
# Ref:
|
|
# Ref:
|
|
# https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db
|
|
# https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db
|
|
-rm -rf policy-export/*
|
|
|
|
-bundle exec chef-cli update base.rb
|
|
|
|
-bundle exec chef-cli export base.rb -a policy-export
|
|
|
|
|
|
+./scripts/export_policy.sh
|
|
pushd policy-export > /dev/null
|
|
pushd policy-export > /dev/null
|
|
-tar xfz *.tgz && rm -rf *.tgz
|
|
|
|
-#bundle exec chef-client --chef-license 'accept' -z
|
|
|
|
|
|
+bundle exec chef-client --chef-license 'accept' -z
|
|
popd > /dev/null
|
|
popd > /dev/null
|