Skip to content

Commit

Permalink
Added support for the authorized users field on the instance module
Browse files Browse the repository at this point in the history
  • Loading branch information
ezilber-akamai committed Nov 22, 2024
1 parent e3d2cd8 commit f2d2511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/modules/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Manage Linode Instances, Configs, and Disks.
| `region` | <center>`str`</center> | <center>Optional</center> | The location to deploy the instance in. See the [Linode API documentation](https://api.linode.com/v4/regions). |
| `image` | <center>`str`</center> | <center>Optional</center> | The image ID to deploy the instance disk from. **(Conflicts With: `disks`,`configs`)** |
| `authorized_keys` | <center>`list`</center> | <center>Optional</center> | A list of SSH public key parts to deploy for the root user. |
| `authorized_users` | <center>`list`</center> | <center>Optional</center> | A list of usernames. |
| `root_pass` | <center>`str`</center> | <center>Optional</center> | The password for the root user. If not specified, one will be generated. This generated password will be available in the task success JSON. |
| `stackscript_id` | <center>`int`</center> | <center>Optional</center> | The ID of the StackScript to use when creating the instance. See the [Linode API documentation](https://techdocs.akamai.com/linode-api/reference/get-stack-scripts). |
| `stackscript_data` | <center>`dict`</center> | <center>Optional</center> | An object containing arguments to any User Defined Fields present in the StackScript used when creating the instance. Only valid when a stackscript_id is provided. See the [Linode API documentation](https://techdocs.akamai.com/linode-api/reference/get-stack-scripts). |
Expand Down
5 changes: 5 additions & 0 deletions plugins/modules/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@
"A list of SSH public key parts to deploy for the root user."
],
),
"authorized_users": SpecField(
type=FieldType.list,
element_type=FieldType.string,
description=["A list of usernames."],
),
"root_pass": SpecField(
type=FieldType.string,
no_log=True,
Expand Down

0 comments on commit f2d2511

Please sign in to comment.