github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/website/source/docs/commands/sentinel/apply.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: sentinel apply" 4 sidebar_current: "docs-commands-sentinel-apply" 5 description: > 6 The sentinel apply command is used to write a new, or update an existing, Sentinel policy. 7 --- 8 9 # Command: sentinel apply 10 11 The `sentinel apply` command is used to write a new, or update an existing, Sentinel policy. 12 13 ## Usage 14 15 ``` 16 nomad sentinel apply [options] <Policy Name> <Policy File> 17 ``` 18 19 The `sentinel apply` command requires two arguments, the policy name and the policy file. 20 The policy file can be read from stdin by specifying "-" as the file name. 21 22 ## General Options 23 24 <%= partial "docs/commands/_general_options" %> 25 26 ## Apply Options 27 28 * `-description` : Sets a human readable description for the policy 29 30 * `-scope` : (default: submit-job) Sets the scope of the policy and when it should be enforced. 31 32 * `-level` : (default: advisory) Sets the enforcment level of the policy. Must be one of advisory, 33 soft-mandatory, hard-mandatory. 34 35 ## Examples 36 37 Write a policy: 38 39 ``` 40 $ nomad sentinel write -description "My test policy" foo test.sentinel 41 Successfully wrote "foo" Sentinel policy! 42 ```