github.com/smintz/nomad@v0.8.3/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  ~> Sentinel commands are new in Nomad 0.7 and are only available with Nomad
    14  Enterprise.
    15  
    16  ## Usage
    17  
    18  ```
    19  nomad sentinel apply [options] <Policy Name> <Policy File>
    20  ```
    21  
    22  The `sentinel apply` command requires two arguments, the policy name and the policy file.
    23  The policy file can be read from stdin by specifying "-" as the file name.
    24  
    25  ## General Options
    26  
    27  <%= partial "docs/commands/_general_options" %>
    28  
    29  ## Apply Options
    30  
    31  * `-description` : Sets a human readable description for the policy
    32  
    33  * `-scope` : (default: submit-job) Sets the scope of the policy and when it should be enforced.
    34  
    35  * `-level` : (default: advisory) Sets the enforcement level of the policy. Must be one of advisory,
    36  	soft-mandatory, hard-mandatory.
    37  
    38  ## Examples
    39  
    40  Write a policy:
    41  
    42  ```
    43  $ nomad sentinel write -description "My test policy" foo test.sentinel
    44  Successfully wrote "foo" Sentinel policy!
    45  ```