Sha256: 70e566fa3476fac6ab658286e4e25b7c295988f473be608ba5e1847cd7a43994

Contents?: true

Size: 1.45 KB

Versions: 34

Compression:

Stored size: 1.45 KB

Contents

# Test plugin: `mounts`

The `mounts` test plugin checks that mounted file systems on nodes are setup correctly.

## Config DSL extension

### `check_mounts_do_include`

Check that a given list of mounts are indeed mounted on a given set of nodes.
Takes as parameter a Hash of source => destination mounts to be checked. Each source and destination can be an exact String, or a Regexp for pattern matching.

Example:
```ruby
# Make sure our cluster are mounted correctly
for_nodes('/datanode-.+/') do
  check_mounts_do_include(
    # Local first disk should always be the root one
    '/dev/sda1' => '/',
    # Any sdb disk should be mounted somewhere in /mnt
    /^\/dev\/sdb.+$/ => /^\/mnt\/.*/
  )
end
```

### `check_mounts_do_not_include`

Check that a given list of mounts are not mounted on a given set of nodes.
Takes as parameter a Hash of source => destination mounts to be checked. Each source and destination can be an exact String, or a Regexp for pattern matching.

Example:
```ruby
# Make sure our data lake is never mounted on test nodes, in any place
for_nodes('/tst.+/') do
  check_mounts_do_not_include(/^datalake\.my_domain\/com:/ => /.*/)
end
```

## Used credentials

| Credential | Usage
| --- | --- |

## Used Metadata

| Metadata | Type | Usage
| --- | --- | --- |
| `local_node` | `Boolean` | Skip this test for nodes having this metadata set to `true` |

## Used environment variables

| Variable | Usage
| --- | --- |

## External tools dependencies

None

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.2.4 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.2.3 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.2.2 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.2.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.2.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.1.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.1.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.0.4 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.0.3 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.0.2 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.0.1 docs/plugins/test/mounts.md
hybrid_platforms_conductor-33.0.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-32.18.0 docs/plugins/test/mounts.md
hybrid_platforms_conductor-32.17.1 docs/plugins/test/mounts.md