From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EE7126157D for ; Thu, 22 May 2025 13:31:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747920700; cv=none; b=iXtnupT2+lO5qKu1mN6fh78qvQ5be578lPDCCpmqYz1QPK4BWMK5P1TMR9+Tg/e6QLLnYUJUk+YtrM06QN8h9vR3Z3lNlUSokOLnI1ZlV995oVitYX0KA93ODHRE9fCmvKHxI0aM46VXCptno++hFfvpZXYBJtoYV6MbrqS6FcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747920700; c=relaxed/simple; bh=C7P7r68S1FFnujX803cZOfdSFMcM6kYYaI+pV+calpo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZwFd9u+zj09GQKMGCTWcWWcL2Lj3drl7NPbpu9nYPvH77yPCIVHUHEdw8m5HDqhX95kdcWEjE8Jh0sqUemQaVuJL1KT3KC2bj0WWxYOL9cCtGxYxv9JmhudQ6c3lbV01bMQdjf9PK+BA/JKjQ/N4uXAkYu8VNfPTthV5T7TDedc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tu05ECQH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tu05ECQH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90759C4CEE4; Thu, 22 May 2025 13:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747920699; bh=C7P7r68S1FFnujX803cZOfdSFMcM6kYYaI+pV+calpo=; h=From:To:Cc:Subject:Date:From; b=tu05ECQHJ4CYjeCmyr5yGWmzaJaExDvfRcWle7y+xaRC9RAbvSXmHQAcin4AyOm7+ oMyE+VE8F0zKh138LEhkcGpJNfZerB+2mS1oin0akMxk7uhHJDjncB1qbWTHTHL16Z sWR618z8VU4tUj0Mh8p3oqnS8k1AL4/xknpjO+yCZrfuM1ubkIzQfM009XqN6Ju+uP F+n+Wkv2tfmyjWsezBcUTInCiLyt8cxKVUK5JEeo5cM/nzTr6kuMKpmUY73NX6JRI1 lxj7R2ERl6xRT0U7fO0WsnleEzWAzulT9B+qTio5j3wiY5MSB2xgUbE1IzXw1j6BVT TUkx1bdaD65+Q== From: cel@kernel.org To: Cc: Chuck Lever Subject: [RFC PATCH 0/5] Convert bringup_guestfs to a single Ansible role Date: Thu, 22 May 2025 09:31:32 -0400 Message-ID: <20250522133137.989457-1-cel@kernel.org> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever 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