forked from codyde/CAS-Cloud-Init-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom-user-ssh.yaml
More file actions
36 lines (36 loc) · 806 Bytes
/
custom-user-ssh.yaml
File metadata and controls
36 lines (36 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
inputs:
username:
type: string
title: Username
sshkey:
type: string
title: SSHKey
encrypted: true
resources:
web1:
type: Cloud.Machine
networks:
- name: '${Cloud_Network_1.name}'
properties:
count: 1
image: Ubuntu
constraints:
- tag: 'cloud:vsphere'
flavor: medium
cloudConfig: |
#cloud-config
users:
- name: ${input.username}
ssh_authorized_keys:
- ${input.sshkey}
passwd: ${input.password}
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
networks:
- name: '${AppNetwork.name}'
AppNetwork:
type: Cloud.Network
properties:
name: Core
networkType: existing