Sha256: b640f49074392474035bb662f264240aad443c77f5724abcb457380649baaa67

Contents?: true

Size: 944 Bytes

Versions: 13

Compression:

Stored size: 944 Bytes

Contents

# Test plugin: `local_users`

The `local_users` test plugin checks that local Linux users on nodes are setup correctly.

## Config DSL extension

### `check_local_users_do_exist`

Check that a given list of users do exist on a given set of nodes.
Takes as parameter a list of Linux user names.

Example:
```ruby
# Check users for our production nodes
for_nodes('/prod.*/') do
  check_local_users_do_exist %w[netadmin prodadmin]
end
```

### `check_local_users_do_not_exist`

Check that a given list of users do not exist on a given set of nodes.
Takes as parameter a list of Linux user names.

Example:
```ruby
# Check that obsolete users are removed from nodes
check_local_users_do_not_exist %w[olduser1 olduser2]
```

## 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/local_users.md
hybrid_platforms_conductor-32.16.4 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.16.3 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.16.2 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.16.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.16.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.15.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.14.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.13.4 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.13.3 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.13.2 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.13.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-32.13.0 docs/plugins/test/local_users.md