volume: Support device-based volumes
Also support those options in container and service roles
This commit is contained in:
@@ -77,7 +77,7 @@ argument_specs:
|
||||
elements: dict
|
||||
options:
|
||||
type:
|
||||
description: Type of volume
|
||||
description: Type of mount
|
||||
type: str
|
||||
required: true
|
||||
choices:
|
||||
@@ -112,6 +112,28 @@ argument_specs:
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
volume_device:
|
||||
description: >-
|
||||
The path of a device which is mounted for the volume.
|
||||
Only applicable if mount type is volume.
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
volume_type:
|
||||
description: >-
|
||||
The filesystem type of device as used by the mount commands -t option
|
||||
Only applicable if mount type is volume.
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
volume_mount_options:
|
||||
description: >-
|
||||
The mount options to use for a filesystem as used by the mount command -o option
|
||||
Only applicable if mount type is volume.
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: []
|
||||
service_container_secrets:
|
||||
description:
|
||||
- >
|
||||
@@ -249,7 +271,7 @@ argument_specs:
|
||||
elements: dict
|
||||
options:
|
||||
type:
|
||||
description: Type of volume
|
||||
description: Type of mount
|
||||
type: str
|
||||
required: true
|
||||
choices:
|
||||
@@ -274,6 +296,28 @@ argument_specs:
|
||||
- Defaults to false for volume and bind, true for template
|
||||
type: bool
|
||||
required: false
|
||||
volume_device:
|
||||
description: >-
|
||||
The path of a device which is mounted for the volume.
|
||||
Only applicable if mount type is volume.
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
volume_type:
|
||||
description: >-
|
||||
The filesystem type of device as used by the mount commands -t option
|
||||
Only applicable if mount type is volume.
|
||||
type: str
|
||||
required: false
|
||||
default: ""
|
||||
volume_mount_options:
|
||||
description: >-
|
||||
The mount options to use for a filesystem as used by the mount command -o option
|
||||
Only applicable if mount type is volume.
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
default: []
|
||||
publish_ports:
|
||||
description: "A list of published ports in docker format (<host listen address>:<host port>:<container port>)"
|
||||
type: list
|
||||
|
||||
Reference in New Issue
Block a user