We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de45e72 commit 1814caaCopy full SHA for 1814caa
9 files changed
cloudinit/distros/illumos.py
@@ -58,7 +58,7 @@ def manage_service(self, action, service):
58
cmd = ['svcs', '-H', '-o', 'state', service]
59
try:
60
(out, err) = subp.subp(cmd, capture=True)
61
- except ProcessExecutionError:
+ except subp.ProcessExecutionError:
62
# Pass back to caller
63
raise
64
@@ -71,7 +71,7 @@ def manage_service(self, action, service):
71
# Callers do not actually check the exit status unless
72
# distro.uses_systemd() is True but exit code 3 would mean
73
# 'not running', so we use that.
74
- raise ProcessExecutionError(
+ raise subp.ProcessExecutionError(
75
cmd=cmd, stdout=out, stderr=err, exit_code=3
76
)
77
@@ -285,5 +285,8 @@ def apply_locale(self, locale, out_fn=None):
285
def set_timezone(self, tz):
286
self._update_init('TZ', tz)
287
288
+ def chpasswd(self, plist_in: list, hashed: bool):
289
+ for name, password in plist_in:
290
+ self.set_passwd(name, password, hashed=hashed)
291
292
# vim:ts=4:sw=4:et:fdm=marker
test/README
@@ -0,0 +1,3 @@
1
+
2
+zadm set citest cloud-init=http://172.27.10.254/cloudinit/
3
test/cloud-init/meta-data
@@ -0,0 +1,2 @@
+instance-id: 40d84db8-bf08-48b9-c347-fb436d131bb1
+local-hostname: test
test/cloud-init/meta-data~
test/cloud-init/network-config
@@ -0,0 +1,14 @@
+ethernets:
+ bob3:
+ addresses:
4
+ - 10.0.0.5/25
5
+ gateway4: 10.0.0.127
6
+ match:
7
+ macaddress: 02:08:20:7c:68:7a
8
+ nameservers:
9
10
+ - 1.1.1.1
11
+ - 9.9.9.9
12
+ search: omnios.org
13
+ set-name: bob3
14
+version: 2
test/cloud-init/user-data
@@ -0,0 +1,20 @@
+#cloud-config
+chpasswd:
+ expire: false
+disable_root: false
+hostname: test
+password: $6$SEeDRaFR$CI8Y/wfMXioIWlrtTLs75iOA4m/./1Vu78d5Plhk6N/T.yctR/s8ojMIjIhyIJB8lwYJAlQXi5GBuh4O0gjY5/
+ssh-pwauth: true
+ssh_authorized_keys:
+- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKi3Xy6qla2g7wH5b1t+6nDi99D/Unl9Hqpi7j4acP8s
+ cinit
+users:
+- default
+- name: root
+ ssh_authorized_keys:
15
+ - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKi3Xy6qla2g7wH5b1t+6nDi99D/Unl9Hqpi7j4acP8s
16
17
+packages:
18
+ - system/cpuid
19
+ - [system/pciutils, 3.7.0]
20
+package_reboot_if_required: false
test/cloud-init/user-data~
@@ -0,0 +1,16 @@
test/cloud-init/vendor-data
test/cloudinit
@@ -0,0 +1 @@
+cloud-init
0 commit comments