From patchwork Mon Mar 10 14:18:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 14010083 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 8DCCC2236E4 for ; Mon, 10 Mar 2025 14:18:22 +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=1741616302; cv=none; b=thocFukF4Zp+UTJtB7qVznx7U5FDePS0J1sc0X+lFsEdpq7bY76cZrXi7LcorLkByFFYvZ8sJuNfn8YP76NatIh3SQTYZVs7XFc6rOExji7/U6PaBuqZB6o/8BtJvexiBc2E8OTmvRmnIKa8UL2bO2fsJy6khzO+zud2smYOJlM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741616302; c=relaxed/simple; bh=mjf/95lqvfuwr3jU55s1ldKfKtbQZIM+y1KEwOoa2nA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=be2yMU7vccvIb8V0bt3NOhoexLV4JLS046kqI8qNTDlAGbKhgVHtXiRjY86nB0XtyP8+3baAv/AVjrI5uVgNLKQxir0nZ9r09/fdoZUyJ+FzoZlcinbplodWZ0Wkf04HZm/oNNEnTz4MfHyDtd6aYqXr04MHLXp5FWolfrnL82U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oIxqQE1U; 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="oIxqQE1U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3FA4C4CEED; Mon, 10 Mar 2025 14:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741616302; bh=mjf/95lqvfuwr3jU55s1ldKfKtbQZIM+y1KEwOoa2nA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oIxqQE1UA87wN75fVdpNyrWlVNMiW/wlJ8szaXqozev1HuUP9CAAaL+boGC0IJsr0 fkPKXEBMkU2tMlCpZabiJbOOqs/zza5mU+lxoZTXdiYR/S/Apd0SePdmdZk7+4kx+R qdyaUCNx5IrSg1yDEWxpwHDxXTHaS/h9754/fAv036Vvt0Ssrg14OKQHIBKyRyx+0K lw5HQ/D/Kt8ckgXOjMxq2R6/YJ5Bfc8GEoJvLRd1bupvlIGvhrvBleig45zfpB4bdF NkRuK8WbWIovH0QRs4PCIfCwDm//EYw5h6NQlA6Fa8f3RCJ/2icpLmLhbGkULuMUfM 1FG6RjUDl/UrQ== From: cel@kernel.org To: Luis Chamberlain , Chandan Babu R , Jeff Layton Cc: , Chuck Lever Subject: [PATCH v1 08/13] volume_group: Prepare to support cloud providers Date: Mon, 10 Mar 2025 10:18:08 -0400 Message-ID: <20250310141813.969325-9-cel@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250310141813.969325-1-cel@kernel.org> References: <20250310141813.969325-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever The cloud providers each have different approaches to extra block storage. The different steps will be included in separate .yml files. Signed-off-by: Chuck Lever --- playbooks/roles/volume_group/defaults/main.yml | 1 + playbooks/roles/volume_group/tasks/main.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/playbooks/roles/volume_group/defaults/main.yml b/playbooks/roles/volume_group/defaults/main.yml index b7707cab59d5..a092c5149bcc 100644 --- a/playbooks/roles/volume_group/defaults/main.yml +++ b/playbooks/roles/volume_group/defaults/main.yml @@ -1,3 +1,4 @@ --- physical_volumes: [] kdevops_enable_guestfs: false +kdevops_enable_terraform: false diff --git a/playbooks/roles/volume_group/tasks/main.yml b/playbooks/roles/volume_group/tasks/main.yml index bc0fbcd8c578..4cafe15017fe 100644 --- a/playbooks/roles/volume_group/tasks/main.yml +++ b/playbooks/roles/volume_group/tasks/main.yml @@ -21,6 +21,12 @@ when: - kdevops_enable_guestfs|bool +- name: Enumerate block devices on the target nodes + ansible.builtin.include_tasks: + file: "terraform/{{ kdevops_terraform_provider }}.yml" + when: + - kdevops_enable_terraform|bool + - name: Verify there are remaining candidates to use for physical volumes ansible.builtin.fail: msg: No local block devices are available for an LVM volume group.