From nobody Thu May 2 01:14:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1522159063040908.3493384971379; Tue, 27 Mar 2018 06:57:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D1B59155DD; Tue, 27 Mar 2018 13:57:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95C86600C2; Tue, 27 Mar 2018 13:57:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2C742181BA06; Tue, 27 Mar 2018 13:57:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2RDtDS2010742 for ; Tue, 27 Mar 2018 09:55:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 28B9710EE963; Tue, 27 Mar 2018 13:55:13 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C033810B0087 for ; Tue, 27 Mar 2018 13:55:12 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 27 Mar 2018 15:55:04 +0200 Message-Id: <20180327135505.8404-2-abologna@redhat.com> In-Reply-To: <20180327135505.8404-1-abologna@redhat.com> References: <20180327135505.8404-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 1/2] guests: Move environment configuration steps together X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 27 Mar 2018 13:57:42 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" We're going to add more steps that require base packages to be installed soon, so let's group all configuration steps except the very basic one together after base package installation has been performed. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- guests/site.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guests/site.yml b/guests/site.yml index ceaaf25..1b9c180 100644 --- a/guests/site.yml +++ b/guests/site.yml @@ -17,8 +17,6 @@ # Prepare environment. None of the actions performed here might # depend on packages being installed - include: tasks/base.yml - - include: tasks/bootloader.yml - - include: tasks/compat.yml =20 # Install base packages - include: tasks/packages.yml @@ -31,7 +29,9 @@ project: blacklist state: absent =20 - # Create users. This needs to happen after installing base packages + # Configure environment. Needs to happen after installing base packages + - include: tasks/bootloader.yml + - include: tasks/compat.yml - include: tasks/users.yml =20 # Install build dependencies for each project --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu May 2 01:14:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 152215892353173.64614098976426; Tue, 27 Mar 2018 06:55:23 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B2DC67FEA1; Tue, 27 Mar 2018 13:55:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 472BF183A1; Tue, 27 Mar 2018 13:55:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4E7B6181BA04; Tue, 27 Mar 2018 13:55:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2RDtDfK010748 for ; Tue, 27 Mar 2018 09:55:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id BABC310B0087; Tue, 27 Mar 2018 13:55:13 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 621D810AF9C8 for ; Tue, 27 Mar 2018 13:55:13 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 27 Mar 2018 15:55:05 +0200 Message-Id: <20180327135505.8404-3-abologna@redhat.com> In-Reply-To: <20180327135505.8404-1-abologna@redhat.com> References: <20180327135505.8404-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 2/2] guests: Install and enable chrony X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 27 Mar 2018 13:55:22 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- guests/site.yml | 1 + guests/tasks/services.yml | 15 +++++++++++++++ guests/vars/mappings.yml | 3 +++ guests/vars/projects/base.yml | 1 + 4 files changed, 20 insertions(+) create mode 100644 guests/tasks/services.yml diff --git a/guests/site.yml b/guests/site.yml index 1b9c180..869291d 100644 --- a/guests/site.yml +++ b/guests/site.yml @@ -31,6 +31,7 @@ =20 # Configure environment. Needs to happen after installing base packages - include: tasks/bootloader.yml + - include: tasks/services.yml - include: tasks/compat.yml - include: tasks/users.yml =20 diff --git a/guests/tasks/services.yml b/guests/tasks/services.yml new file mode 100644 index 0000000..81e282a --- /dev/null +++ b/guests/tasks/services.yml @@ -0,0 +1,15 @@ +--- +- set_fact: + chrony: chrony + +- set_fact: + chrony: chronyd + when: + - package_format !=3D 'deb' + +- name: 'Enable services' + service: + name: '{{ item }}' + enabled: yes + with_items: + - '{{ chrony }}' diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index d94d648..cb44b3d 100644 --- a/guests/vars/mappings.yml +++ b/guests/vars/mappings.yml @@ -68,6 +68,9 @@ mappings: default: check rpm: check-devel =20 + chrony: + default: chrony + cppi: Fedora: cppi FreeBSD: cppi diff --git a/guests/vars/projects/base.yml b/guests/vars/projects/base.yml index 94644e4..a0483d8 100644 --- a/guests/vars/projects/base.yml +++ b/guests/vars/projects/base.yml @@ -5,6 +5,7 @@ packages: - autopoint - bash - ccache + - chrony - cppi - gcc - gettext --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list