OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
doc
/
cloud-init
/
examples
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:27 AM
rwxr-xr-x
📄
cloud-config-add-apt-repos.txt
1.54 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ansible-controller.txt.gz
4.31 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ansible-managed.txt
3.73 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ansible-pull.txt
334 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-apt.txt.gz
5.13 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-archive-launch-index.txt
802 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-archive.txt
239 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-boot-cmds.txt
636 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ca-certs.txt
1.16 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-chef-oneiric.txt
3.53 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-chef.txt.gz
2.57 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-datasources.txt
2.27 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-disk-setup.txt.gz
2.83 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-gluster.txt
456 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-install-packages.txt
383 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-launch-index.txt
570 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-lxd.txt
1.77 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-mount-points.txt
1.47 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ntp.txt
835 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-reporting.txt
335 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-run-cmds.txt
963 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-ssh-keys.txt
3.57 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-update-apt.txt
229 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-update-packages.txt
93 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-user-groups.txt.gz
2.8 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-wireguard.txt
1.16 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-write-files.txt
1.05 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config-yum-repo.txt
639 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
cloud-config.txt.gz
8.9 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
include-once.txt
353 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
include.txt
434 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
kernel-cmdline.txt
1 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
part-handler-v2.txt
1.53 KB
04/20/2023 09:31:09 PM
rw-r--r--
📄
part-handler.txt
806 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📄
plain-ignored.txt
68 bytes
04/20/2023 09:31:09 PM
rw-r--r--
📁
seed
-
05/09/2024 07:14:27 AM
rwxr-xr-x
📄
user-script.txt
125 bytes
04/20/2023 09:31:09 PM
rw-r--r--
Editing: part-handler-v2.txt
Close
#part-handler # vi: syntax=python ts=4 # this is an example of a version 2 part handler. # the differences between the initial part-handler version # and v2 is: # * handle_part receives a 5th argument, 'frequency' # frequency will be either 'always' or 'per-instance' # * handler_version must be set # # A handler declaring version 2 will be called on all instance boots, with a # different 'frequency' argument. handler_version = 2 def list_types(): # return a list of mime-types that are handled by this module return(["text/plain", "text/go-cubs-go"]) def handle_part(data, ctype, filename, payload, frequency): # data: the cloudinit object # ctype: '__begin__', '__end__', or the specific mime-type of the part # filename: the filename for the part, or dynamically generated part if # no filename is given attribute is present # payload: the content of the part (empty for begin or end) # frequency: the frequency that this cloud-init run is running for # this is either 'per-instance' or 'always'. 'per-instance' # will be invoked only on the first boot. 'always' will # will be called on subsequent boots. if ctype == "__begin__": print(f"my handler is beginning, frequency={frequency}") return if ctype == "__end__": print(f"my handler is ending, frequency={frequency}") return print(f"==== received ctype={ctype} filename={filename} ====") print(payload) print(f"==== end ctype={ctype} filename={filename}")