-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-config.yml
82 lines (77 loc) · 4.25 KB
/
cloud-config.yml
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
#cloud-config
hostname: rancher-os
rancher:
console: ubuntu
sysctl:
fs.inotify.max_user_watches: 524288
fs.inotify.max_user_instances: 524288
network:
interfaces:
eth0:
dhcp: true
dns:
nameservers:
- 10.32.0.8
- 10.32.0.18
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC7yeGuAh7Vbcy9TdBsUFgW9QGTfUlhCiac9vl+LRasqH5i38C5bZDLtKu7U2BWM/RtGkllEpUAWe2IZR86HYcFd2uj6f63fHPzjSCYFP6oufyF4jyNG1CpxodnLG3sh05iAHqIaBW1e65Y2V5wPH30niOqFiLER9nRMQHVnl/1Lc2zpBDLDSxW0E8gswryn5qC2hVnTN8iVzutAsTP56Lrf4Y8EFqf5WPaTiqQNtcBYC8RVQYblwYdharyADaszHd0ajRVGGv0ykl3+yjWeYQqgjVdlLRjwiSMtA9EAQ7YzCy01XIVMg7fMV9v6v1NUEGazZ2PegK1kD6E1p7FNus+yGXEeEfz3uGGS9Zlvyez9BXN2ieYbx9bycutHprS5gmm2vr2HdHzBPnkyDMoh3aaOVDAelzFxe1zzVK01C7Ei7ybxaqmqC4Qe/24E9cj7goqLSMfrkQO7b70cHDNqUQiX2RGo1MLEOeg/aG6fVOl6WDzO6HJp5A6OgZ5k3zldrk= lizhixin@xa-dd3-cruzliu
runcmd:
- apt update
- apt -y install docker-compose git nfs-common netbase
- sed -i 's/PermitRootLogin no/permitrootlogin yes/' /etc/ssh/sshd_config.tpl
- sed -i 's/AllowGroups docker/AllowGroups docker root/' /etc/ssh/sshd_config.tpl
- sed -i 's/PermitRootLogin no/permitrootlogin yes/' /etc/ssh/sshd_config
- sed -i 's/AllowGroups docker/AllowGroups docker root/' /etc/ssh/sshd_config
- echo 'root:xA123456' | chpasswd
write_files:
- path: /etc/rc.local
permissions: "0755"
content: |
#!/bin/bash
mkdir -p /mnt/dockershare
/etc/init.d/rpcbind start
mount -t nfs -o vers=3 xa-dd3-freenas.grapecity.net:/mnt/AutoTest /mnt/dockershare
- path: /etc/docker/certs.d/xa-dd3-rancher-master.grapecity.net/ca.crt
permissions: "0644"
owner: root
content: |
-----BEGIN CERTIFICATE-----
MIIDejCCAmKgAwIBAgIUGK0kXzo1322dX0jalV+znhFjf9wwDQYJKoZIhvcNAQEL
BQAwITELMAkGA1UEBhMCQ04xEjAQBgNVBAMMCWNhdHRsZS1jYTAeFw0yMTA0Mjkw
MDU0NDhaFw0zMTA0MjcwMDU0NDhaMDsxCzAJBgNVBAYTAkNOMSwwKgYDVQQDDCN4
YS1kZDMtcmFuY2hlci1tYXN0ZXIuZ3JhcGVjaXR5Lm5ldDCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAMx98EQvqgA4VGh47vqmIvAS3SwMmCuiGEfYClrl
6xMpNeABsgUGUEJp+TsZUJ5hx3OB9+FkvBATAgjTGv7DifovrhaJOx39WN1CHoB8
jOZjUVoVVcd5BfSk1HcFPzuQxvZa8W0I5WNOVCzAtLa+Bry0AbGbRm8hxtH05QH9
btMv6V7BtsLlhT/QWLXDoG9+o/oKPicUgnzWZ1a0msOrApniYYvMfUmI5YU+7qZd
/Gu/aIrE/UCIArI/m0EfZumHj6T3/j1098/6wYV2FAeM6zzhFNS1ProDxyH+dt22
49nJrfKur7itgznPRuXG3cmdQWLYjohzSa/R+awGX+95apECAwEAAaOBjzCBjDAJ
BgNVHRMEAjAAMAsGA1UdDwQEAwIF4DAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYB
BQUHAwEwUwYDVR0RBEwwSoIjeGEtZGQ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