From 4b01eaefd1c1f644db047927547814c71b137f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ely=C3=A9zer=20Mendes=20Rezende?= Date: Mon, 27 Apr 2015 08:05:16 -0300 Subject: [PATCH] Add setup_scap_client task This task will install the puppet-foreman_scap_client package. Also make product_install run setup_scap_client task for every installation, Robottelo is about to have tests that will rely on the puppet-foreman_scap_client package being installed. --- automation_tools/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/automation_tools/__init__.py b/automation_tools/__init__.py index b3a7b37a8..503bfe321 100644 --- a/automation_tools/__init__.py +++ b/automation_tools/__init__.py @@ -418,6 +418,11 @@ def setup_abrt(): run('abrt-auto-reporting enabled') +def setup_scap_client(): + """Task to setup puppet-foreman_scap_client.""" + run('yum -y install puppet-foreman_scap_client', warn_only=True) + + def vm_create(): """Task to create a VM using snap-guest based on a ``SOURCE_IMAGE`` base image. @@ -1007,6 +1012,8 @@ def product_install(distribution, create_vm=False, certificate_url=None, **installer_options ) + execute(setup_scap_client, host=host) + certificate_url = certificate_url or os.environ.get( 'FAKE_MANIFEST_CERT_URL') if certificate_url is not None: