Sha256: 7901f6f2607041886fe9a4ac8b8f6f64f6fde21fb24ab51e4e5522f2f189673d

Contents?: true

Size: 1023 Bytes

Versions: 13

Compression:

Stored size: 1023 Bytes

Contents

# Test plugin: `file_system`

The `file_system` test plugin performs various checks on the file system of a node.

## Config DSL extension

### `check_files_do_exist`

`check_files_do_exist` takes a path or a list of paths as parameter. Those paths should be present on the nodes and will be reported as missing if not.

Example:
```ruby
for_nodes('/tst_.*/') do
  check_files_do_exist '/etc/init.d', '/home/test_user'
end
for_nodes('/prd_.*/') do
  check_files_do_exist '/etc/init.d'
end
```

### `check_files_do_not_exist`

`check_files_do_not_exist` takes a path or a list of paths as parameter. Those paths should be absent on the nodes and will be reported as extra if not.

Example:
```ruby
for_nodes('/tst_.*/') do
  check_files_do_not_exist '/tmp/wrong_file', '/home/obsolete_user'
end
```

## Used credentials

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

## Used Metadata

| Metadata | Type | Usage
| --- | --- | --- |

## Used environment variables

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

## External tools dependencies

None

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-32.17.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.16.4 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.16.3 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.16.2 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.16.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.16.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.15.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.14.0 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.13.4 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.13.3 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.13.2 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.13.1 docs/plugins/test/file_system.md
hybrid_platforms_conductor-32.13.0 docs/plugins/test/file_system.md