Sha256: b553f848f96de153600a279a53af63cd66e743c139789cff077ede3365659b4c

Contents?: true

Size: 1.01 KB

Versions: 34

Compression:

Stored size: 1.01 KB

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
| --- | --- | --- |
| `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.9.5 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.9.4 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.9.2 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.9.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.9.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.8.4 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.8.3 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.8.2 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.8.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.8.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.7.4 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.7.3 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.7.2 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.7.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.7.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.6.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.5.1 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.5.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.4.0 docs/plugins/test/local_users.md
hybrid_platforms_conductor-33.3.0 docs/plugins/test/local_users.md