Skip to content

Commit

Permalink
Merge branch 'master' into linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmh3ro committed Jan 16, 2024
2 parents c65df12 + bb26039 commit ba92a8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ By default, tasks are opted-out of non-default node pools. This means job author

### `nomad_host_volumes`

- List host_volume is used to make volumes available to jobs (Stateful Workloads).
- List host_volume is used to make volumes available to jobs (Stateful Workloads). By default, a directory is created. Specify the `state` parameter to change it.
- Default value: **[]**
- Example:

Expand All @@ -348,6 +348,10 @@ nomad_host_volumes:
group: bin
mode: 0644
read_only: false
- name: docker socket
path: /run/docker.sock
read_only: true
state: file
```

### `nomad_host_networks`
Expand Down
2 changes: 1 addition & 1 deletion tasks/host_volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
path: "{{ item['path'] }}"
owner: "{{ item['owner'] | default(nomad_user) }}"
group: "{{ item['group'] | default(nomad_group) }}"
state: directory
state: "{{ item['state'] | default('directory') }}"
mode: "{{ item['mode'] | default('0755') }}"
with_items: "{{ nomad_host_volumes }}"

0 comments on commit ba92a8b

Please sign in to comment.