diff options
author | Athina Plaskasoviti <athina.plaskasoviti@gmail.com> | 2019-06-28 19:05:18 +0300 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-11-20 16:41:05 -0500 |
commit | 19317024cc7e45173ad327b6d2bb868c9b512d84 (patch) | |
tree | 6d18736b66244f22d0d2ea7a3092aff0e0fb59ba /virt-install | |
parent | c311b2897939c02b1fbd5b37b914d6a903889dde (diff) | |
download | virt-manager-19317024cc7e45173ad327b6d2bb868c9b512d84.tar.gz |
Introduction of cloud-init configuration in virt-install
Usage:
--cloud-init
Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti@gmail.com>
Diffstat (limited to 'virt-install')
-rwxr-xr-x | virt-install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/virt-install b/virt-install index 3b4ecd2f..bf5219a4 100755 --- a/virt-install +++ b/virt-install @@ -456,6 +456,9 @@ def build_installer(options, guest, installdata): installer.set_initrd_injections(options.initrd_inject) if options.autostart: installer.autostart = True + if options.cloud_init: + cloudinit_data = cli.parse_cloud_init(options.cloud_init) + installer.set_cloudinit_data(cloudinit_data) return installer @@ -842,6 +845,8 @@ def parse_args(): help=_("Perform an unattended installation")) insg.add_argument("--install", help=_("Specify fine grained install options")) + insg.add_argument("--cloud-init", nargs="?", const=1, + help=_("Perform a cloud image installation, configuring cloud-init")) # Takes a URL and just prints to stdout the detected distro name insg.add_argument("--test-media-detection", help=argparse.SUPPRESS) |