Skip to content

Commit

Permalink
Add setup_scap_client task
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
elyezer committed Apr 27, 2015
1 parent 326e72b commit 4b01eae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions automation_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4b01eae

Please sign in to comment.