forked from mwright-pivotal/KeswickExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhostconfig.yaml
103 lines (103 loc) · 2.68 KB
/
hostconfig.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#Confgure NTP Servers
apiVersion: esx.vmware.com/v1alpha1
kind: HostConfiguration
metadata:
name: ntp-sync
namespace: esx-system
spec:
layertype: Incremental
profile: |
{
"esx": {
"system": {
"system_time": {
"enabled": true,
"protocol": "NTP",
"ntp_config": {
"server": [{
"hostname": "0.pool.ntp.org",
"command": "SERVER"
},
{
"hostname": "1.pool.ntp.org",
"command": "SERVER"
}
]
}
}
}
}
}
---
#Example showing how to change the DCUI Welcome message
apiVersion: esx.vmware.com/v1alpha1
kind: HostConfiguration
metadata:
name: welcome-message
namespace: esx-system
spec:
layertype: Incremental
profile: |
{
"esx": {
"system": {
"welcome_message": {
"message": "{align:left}{color:white} \n\n\n\n\tVMware Edge Cloud Orchestrator - Edge Host{/color}{/align}\n\n\n\n\n\n\n\n\n{align:left}{color:yellow} \tTo manage this host, go to: \n\thttps://{ip}/ (DHCP)\n\thttps://[fe80::8aae:ddff:fe0c:b382]/ (STATIC){/color}{/align}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n{align:left}{color:yellow} <F2> Customize System/View Logs{/color}{/align}{align:right}{color:yellow} <F12> Shut Down/Restart{/color}{/align}"
}
}
}
}
---
#Example creating a read only account on the host for monitoring
apiVersion: esx.vmware.com/v1alpha1
kind: HostConfiguration
metadata:
name: monitoring-user
namespace: esx-system
spec:
layertype: Incremental
profile: |
{
"esx": {
"authentication": {
"user_accounts": [
{
"name": "monitor",
"password_hash": "$6$vocvaTDqp5Cg.$Q6q7pshtoHi59oeU9O9zJN4FQ4gjtobSvA1RKG1FbSeIhNIdYwrXCcYPMm8NUTb8GtkFSSjstdkQj2IYld2Qx/",
"description": "Monitoring user account"
}
]
},
"authorization": {
"permissions": [
{
"principal": "monitor",
"is_group": false,
"access_mode": "ReadOnly"
}
]
}
}
}
---
#Example showing how to enable USB NIC Scan on boot
apiVersion: esx.vmware.com/v1alpha1
kind: HostConfiguration
metadata:
name: usb-nic-scan-on-boot
namespace: esx-system
spec:
layertype: Incremental
profile: |
{
"esx": {
"vmkernel": {
"module_settings": [
{
"module_name": "vmkusb_nic_fling",
"options": "usbBusFullScanOnBootEnabled=1"
}
]
}
}
}