From: cel@kernel.org
To: <kdevops@lists.linux.dev>
Cc: Chuck Lever <chuck.lever@oracle.com>
Subject: [RFC PATCH 0/5] Convert bringup_guestfs to a single Ansible role
Date: Thu, 22 May 2025 09:31:32 -0400 [thread overview]
Message-ID: <20250522133137.989457-1-cel@kernel.org> (raw)
From: Chuck Lever <chuck.lever@oracle.com>
I dusted these off and rebased them on the current kdevops HEAD to
demonstrate some of my thinking about how libvirt/guestfs bring-up
might be expressed entirely using Ansible (ie with a minimal use
of shell scripts).
These are still rough, and a role to deal with constructing base
images is missing for now.
Chuck Lever (5):
guestfs: Replace scripts/destroy_guestfs.sh with an Ansible playbook
Move the guestfs install-deps to the guestfs playbook
guestfs: Move console-related steps to guestfs role
guestfs: Move check-config, network, and storage-pool tags
guestfs: Convert part of scripts/bringup_guestfs.sh to Ansible
.gitignore | 1 +
playbooks/guestfs.yml | 7 +
playbooks/roles/guestfs/defaults/main.yml | 5 +
playbooks/roles/guestfs/tasks/bringup.yml | 157 ++++++++++++++++++
.../roles/guestfs/tasks/config-check.yml | 34 ++++
.../guestfs/tasks/console-permissions.yml | 31 ++++
playbooks/roles/guestfs/tasks/destroy.yml | 32 ++++
playbooks/roles/guestfs/tasks/extra_disks.yml | 16 ++
.../tasks/install-deps/debian/main.yml | 10 ++
.../roles/guestfs/tasks/install-deps/main.yml | 21 +++
.../tasks/install-deps/redhat/main.yml | 12 ++
.../guestfs/tasks/install-deps/suse/main.yml | 9 +
playbooks/roles/guestfs/tasks/largeio.yml | 11 ++
playbooks/roles/guestfs/tasks/main.yml | 44 +++++
playbooks/roles/guestfs/tasks/network.yml | 83 +++++++++
.../roles/guestfs/tasks/storage-pool-path.yml | 77 +++++++++
scripts/bringup_guestfs.sh | 76 +--------
scripts/destroy_guestfs.sh | 36 ----
scripts/guestfs.Makefile | 23 ++-
19 files changed, 566 insertions(+), 119 deletions(-)
create mode 100644 playbooks/guestfs.yml
create mode 100644 playbooks/roles/guestfs/defaults/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/bringup.yml
create mode 100644 playbooks/roles/guestfs/tasks/config-check.yml
create mode 100644 playbooks/roles/guestfs/tasks/console-permissions.yml
create mode 100644 playbooks/roles/guestfs/tasks/destroy.yml
create mode 100644 playbooks/roles/guestfs/tasks/extra_disks.yml
create mode 100644 playbooks/roles/guestfs/tasks/install-deps/debian/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/install-deps/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/install-deps/redhat/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/install-deps/suse/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/largeio.yml
create mode 100644 playbooks/roles/guestfs/tasks/main.yml
create mode 100644 playbooks/roles/guestfs/tasks/network.yml
create mode 100644 playbooks/roles/guestfs/tasks/storage-pool-path.yml
delete mode 100755 scripts/destroy_guestfs.sh
--
2.49.0
next reply other threads:[~2025-05-22 13:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 13:31 cel [this message]
2025-05-22 13:31 ` [RFC PATCH 1/5] guestfs: Replace scripts/destroy_guestfs.sh with an Ansible playbook cel
2025-05-22 17:02 ` Luis Chamberlain
2025-05-22 17:03 ` Chuck Lever
2025-05-22 13:31 ` [RFC PATCH 2/5] Move the guestfs install-deps to the guestfs playbook cel
2025-05-22 17:07 ` Luis Chamberlain
2025-05-22 17:13 ` Chuck Lever
2025-05-22 17:16 ` Luis Chamberlain
2025-05-22 13:31 ` [RFC PATCH 3/5] guestfs: Move console-related steps to guestfs role cel
2025-05-22 17:09 ` Luis Chamberlain
2025-05-22 17:11 ` Chuck Lever
2025-05-22 17:15 ` Luis Chamberlain
2025-05-22 13:31 ` [RFC PATCH 4/5] guestfs: Move check-config, network, and storage-pool tags cel
2025-05-22 13:31 ` [RFC PATCH 5/5] guestfs: Convert part of scripts/bringup_guestfs.sh to Ansible cel
2025-05-22 17:14 ` Luis Chamberlain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250522133137.989457-1-cel@kernel.org \
--to=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=kdevops@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox