cloudapi: Add User customization
Cloud api now exposes user customization that let a customer able to add a new user with a set of groups and a ssh key. Testing: * adds 2 users to the AWS image, accessible with a temp ssh key. * the first one is in the group wheel, the other is not Fixes #1574
This commit is contained in:
parent
5e127de303
commit
4729990ac0
4 changed files with 137 additions and 52 deletions
|
|
@ -444,6 +444,10 @@ components:
|
|||
example: ['postgres']
|
||||
items:
|
||||
type: string
|
||||
users:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
OSTree:
|
||||
type: object
|
||||
properties:
|
||||
|
|
@ -511,3 +515,19 @@ components:
|
|||
type: string
|
||||
signature:
|
||||
type: string
|
||||
User:
|
||||
type: object
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
example: "user1"
|
||||
groups:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example: "group1"
|
||||
key:
|
||||
type: string
|
||||
example: "public ssh key"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue