Sha256: 39449dee12cce3bb2012a08bbcb728aaf2128ba31c9b49f46e9273a3c4339082

Contents?: true

Size: 839 Bytes

Versions: 3

Compression:

Stored size: 839 Bytes

Contents

<%#
name: Run OpenSCAP scans
job_category: OpenSCAP
description_format: Run scan for all OpenSCAP policies on host
feature: foreman_openscap_run_scans
provider_type: SSH
snippet: false
template_inputs:
- name: policies
  required: false
  input_type: puppet_parameter
  puppet_class_name: foreman_scap_client
  puppet_parameter_name: policies
  advanced: false
provider_type: SSH
kind: job_template
%>
<% raise 'Cannot detect values for policies input, please make sure your host is properly configured for openscap' unless input('policies').respond_to?(:map) %>

<% raise "Create and assign a policy to this host before proceeding" if input('policies').respond_to?(:empty?) && input('policies').empty? %>

<% input('policies').map { |policy_config| policy_config['id'] }.each do |id| -%>
/usr/bin/foreman_scap_client <%= id %>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_openscap-1.0.8 app/views/job_templates/run_openscap_scans.erb
foreman_openscap-1.0.7 app/views/job_templates/run_openscap_scans.erb
foreman_openscap-1.0.6 app/views/job_templates/run_openscap_scans.erb