UserCommands: change field name
This commit is contained in:
parent
99c622b69f
commit
18a64de0de
3
.changes/unreleased/Added-20250311-152028.yaml
Normal file
3
.changes/unreleased/Added-20250311-152028.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
kind: Added
|
||||
body: 'UserCommands: add ssh public keys when running locally'
|
||||
time: 2025-03-11T15:20:28.487596157-05:00
|
3
.changes/unreleased/Added-20250311-153026.yaml
Normal file
3
.changes/unreleased/Added-20250311-153026.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
kind: Added
|
||||
body: 'UserCommands: add field CreateUserHome'
|
||||
time: 2025-03-11T15:30:26.824884876-05:00
|
@ -12,6 +12,8 @@ This is dedicated to `user` commands. The command `type` field must be `user`. U
|
||||
| `userOperation` | The type of operation to perform. | `string` | yes | no |
|
||||
| `userID` | The user ID to use. | `string` | no | no |
|
||||
| `userGroups` | The groups the user should be added to. | `[]string` | no | no |
|
||||
| `systemUser` | Create a system user. | `bool` | no | no |
|
||||
| `userCreateHome`| Create the home directory. | `bool` | no | no |
|
||||
| `userSshPubKeys`| The keys to add to the user's authorized keys. | `[]string` | no | yes |
|
||||
| `userShell` | The shell for the user. | `string` | no | no |
|
||||
| `userHome` | The user's home directory. | `string` | no | no |
|
||||
|
@ -117,7 +117,7 @@ type (
|
||||
|
||||
UserCreateHome bool `yaml:"userCreateHome,omitempty"`
|
||||
|
||||
SystemUser bool `yaml:"systemUser,omitempty"`
|
||||
UserIsSystem bool `yaml:"userIsSystem,omitempty"`
|
||||
|
||||
UserPassword string `yaml:"userPassword,omitempty"`
|
||||
|
||||
|
@ -293,7 +293,7 @@ func getCommandTypeAndSetCommandInfo(command *Command) *Command {
|
||||
command.Username,
|
||||
command.UserHome,
|
||||
command.UserShell,
|
||||
command.SystemUser,
|
||||
command.UserIsSystem,
|
||||
command.UserCreateHome,
|
||||
command.UserGroups,
|
||||
command.Args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user