This repository has been archived on 2025-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
esh/cinc-repo/policyfiles/README.md
2025-02-15 01:05:58 +09:00

596 B

Create Policyfiles here. When using a chef-repo, give your Policyfiles the same filename as the name set in the policyfile itself, and use the .rb file extension.

Compile the policy with a command like this:

chef install policyfiles/my-app-frontend.rb

This will create a lockfile policyfiles/my-app-frontend.lock.json.

To update locked dependencies, run chef update like this:

chef update policyfiles/my-app-frontend.rb

You can upload the policy (with associated cookbooks) to the server using a command like:

chef push staging policyfiles/my-app-frontend.rb