github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/ignition/d/user.html.md (about) 1 --- 2 layout: "ignition" 3 page_title: "Ignition: ignition_user" 4 sidebar_current: "docs-ignition-datasource-user" 5 description: |- 6 Describes the desired user additions to the passwd database. 7 --- 8 9 # ignition\_user 10 11 Describes the desired user additions to the passwd database. 12 13 ## Example Usage 14 15 ``` 16 data "ignition_user" "foo" { 17 name = "foo" 18 home_dir = "/home/foo/" 19 shell = "/bin/bash" 20 } 21 ``` 22 23 ## Argument Reference 24 25 The following arguments are supported: 26 27 * `name` - (Required) The username for the account. 28 29 * `password_hash` - (Optional) The encrypted password for the account. 30 31 * `ssh_authorized_keys` - (Optional) A list of SSH keys to be added to the user’s authorized_keys. 32 33 * `uid` - (Optional) The user ID of the new account. 34 35 * `gecos` - (Optional) The GECOS field of the new account. 36 37 * `home_dir` - (Optional) The home directory of the new account. 38 39 * `no_create_home` - (Optional) Whether or not to create the user’s home directory. 40 41 * `primary_group` - (Optional) The name or ID of the primary group of the new account. 42 43 * `groups` - (Optional) The list of supplementary groups of the new account. 44 45 * `no_user_group` - (Optional) Whether or not to create a group with the same name as the user. 46 47 * `no_log_init` - (Optional) Whether or not to add the user to the lastlog and faillog databases. 48 49 * `shell` - (Optional) The login shell of the new account. 50 51 ## Attributes Reference 52 53 The following attributes are exported: 54 55 * `id` - ID used to reference this resource in _ignition_config_.