summaryrefslogtreecommitdiff
path: root/cloudinit/cmd/devel/make_mime.py
Commit message (Collapse)AuthorAgeFilesLines
* style: prefer absolute imports over relative importsMina Galić2022-09-301-2/+1
| | | Sponsored by: FreeBSD Foundation
* Docs fixes (#1406)Brett Holman2022-05-031-1/+1
| | | Update cli docs and standardize grammar/spelling/punctuation
* Misc module cleanup (#1418)Brett Holman2022-04-291-3/+2
| | | | - move datasource helpers to dedicated directory - drop unnecessary executable bit on shebangless python files
* Shell script handlers by freq (#1166)Chris Lalos2022-02-101-22/+29
| | | | | | | | | | | Handlers for per-boot/per-instance/per-once multipart MIME Add handlers for adding scripts to userdata that can be run at various frequencies. Scripts of type x-shellscript-per-boot, x-shellscript-per-instance, or x-shellscript-per-once can be added to a multipart MIME userdata message as part of instance userdata. These scripts will then be added to the appropriate per-boot, per-instance, or per-once directory in /var/lib/cloud/scripts/ during processing of userdata.
* Adopt Black and isort (SC-700) (#1157)James Falcon2021-12-151-27/+49
| | | | | Applied Black and isort, fixed any linting issues, updated tox.ini and CI.
* tox: bump the pylint version to 2.6.0 in the default run (#544)Paride Legovini2020-08-251-2/+4
| | | | | | Changes: tox: bump the pylint version to 2.6.0 in the default run Fix pylint 2.6.0 W0707 warnings (raise-missing-from)
* cli: add devel make-mime subcommand (#518)Ryan Harper2020-08-171-0/+112
* cli: add devel make-mime subcommand Cloud-init documents an in-source-tree tool, make-mime.py used to help users create multi-part mime user-data. This tool is not shipped in the cloud-init install and unavailable at runtime. This patch takes tools/make-mime.py and makes the functionality available via the devel subcommand. The primary interface of --attach file:content-type is still present. The cli now adds: -l, --list-types Print out a list of supported content-types -f, --force Ignore errors for unsupported content-types The tool will now raise a RunTime error if the supplied content-type is not supported (or more likely a typo: x-shell-script vs. x-shellscript) * make-mime: write to stderr and exit 1 instead of raising RuntimeError * Update example to match docs * Update docs for make-mime subcommand * Remove tools/make-mime.py; replaced by cloud-init devel make-mime Co-authored-by: Rick Harding <rharding@mitechie.com>