Skip to content

Commit 101c394

Browse files
Added support for the authorized users field on the instance module (#627)
1 parent 3b07f45 commit 101c394

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/modules/instance.md

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Manage Linode Instances, Configs, and Disks.
127127
| `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). |
128128
| `image` | <center>`str`</center> | <center>Optional</center> | The image ID to deploy the instance disk from. **(Conflicts With: `disks`,`configs`)** |
129129
| `authorized_keys` | <center>`list`</center> | <center>Optional</center> | A list of SSH public key parts to deploy for the root user. |
130+
| `authorized_users` | <center>`list`</center> | <center>Optional</center> | A list of usernames. |
130131
| `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. |
131132
| `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). |
132133
| `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). |

plugins/modules/instance.py

+5
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@
351351
"A list of SSH public key parts to deploy for the root user."
352352
],
353353
),
354+
"authorized_users": SpecField(
355+
type=FieldType.list,
356+
element_type=FieldType.string,
357+
description=["A list of usernames."],
358+
),
354359
"root_pass": SpecField(
355360
type=FieldType.string,
356361
no_log=True,

0 commit comments

Comments
 (0)