Files
opentf/website/source/docs/providers/ignition/r/user.html.md
Máximo Cuadros 85f0fba9f9 Ignition provider (#6189)
* providers: ignition, basic config, version and config

* providers: ignition, user and passwd example, general cache implementation

* vendor: Capture new dependency upstream-pkg

* providers: ignition ignition_user

* providers: ignition ignition_disk, ignition_group and ignition_raid

* providers: ignition_file and ignition_filesystem

* providers: ignition_systemd_unit and ignition_networkd_unit

* providers: ignition_config improvements

* vendor: Capture new dependency upstream-pkg

* providers: ignition main

* documentation: ignition provider

* providers: ignition minor changes

* providers: ignition, fix test

* fixing tests and latest versions
2017-01-03 11:29:14 +00:00

55 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
layout: "ignition"
page_title: "Ignition: ignition_user"
sidebar_current: "docs-ignition-resource-user"
description: |-
Describes the desired user additions to the passwd database.
---
# ignition\_user
Describes the desired user additions to the passwd database.
## Example Usage
```
resource "ignition_user" "foo" {
name = "foo"
home_dir = "/home/foo/"
shell = "/bin/bash"
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The username for the account.
* `password_hash` - (Optional) The encrypted password for the account.
* `ssh_authorized_keys` - (Optional) A list of SSH keys to be added to the users authorized_keys.
* `uid` - (Optional) The user ID of the new account.
* `gecos` - (Optional) The GECOS field of the new account.
* `home_dir` - (Optional) The home directory of the new account.
* `no_create_home` - (Optional) Whether or not to create the users home directory.
* `primary_group` - (Optional) The name or ID of the primary group of the new account.
* `groups` - (Optional) The list of supplementary groups of the new account.
* `no_user_group` - (Optional) Whether or not to create a group with the same name as the user.
* `no_log_init` - (Optional) Whether or not to add the user to the lastlog and faillog databases.
* `shell` - (Optional) The login shell of the new account.
## Attributes Reference
The following attributes are exported:
* `id` - ID used to reference this resource in _ignition_config_.