24 lines
596 B
Markdown
24 lines
596 B
Markdown
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
|
|
```
|