Skip to content

Instantly share code, notes, and snippets.

@moolitayer
Last active May 4, 2016 23:03
Show Gist options
  • Select an option

  • Save moolitayer/0ee913e27fa6272f6761a057c5cd7e45 to your computer and use it in GitHub Desktop.

Select an option

Save moolitayer/0ee913e27fa6272f6761a057c5cd7e45 to your computer and use it in GitHub Desktop.
---
- MiqPolicySet:
name: 0bf2e43a-1211-11e6-aa9c-02424d459b45
description: OpenSCAP profile
set_type: MiqPolicySet
guid: 0bf2e43a-1211-11e6-aa9c-02424d459b45
read_only:
set_data:
mode: control
owner_type:
owner_id:
userid:
group_id:
MiqPolicy:
- name: 14c7b8ee-120f-11e6-aa9c-02424d459b45
description: OpenSCAP
expression:
towhat: ContainerImage
guid: 14c7b8ee-120f-11e6-aa9c-02424d459b45
created_by: admin
updated_by: admin
notes:
active: true
mode: compliance
read_only:
MiqPolicyContent:
- qualifier: failure
failure_sequence: 1
failure_synchronous: true
MiqEventDefinition:
name: containerimage_compliance_check
description: Container Image Compliance Check
guid: e7454a86-109b-11e6-86ba-02424d459b45
event_type: Default
definition:
default:
enabled:
MiqAction:
name: compliance_failed
description: Mark as Non-Compliant
guid: e679e1c0-109b-11e6-86ba-02424d459b45
action_type: default
options: {}
Condition:
- name: 92b1949a-1210-11e6-aa9c-02424d459b45
description: Has high severity failuers
modifier: deny
expression: !ruby/object:MiqExpression
exp:
FIND:
search:
"=":
field: ContainerImage.openscap_rule_results-result
value: fail
checkany:
"=":
field: ContainerImage.openscap_rule_results-severity
value: High
context_type:
towhat: ContainerImage
file_mtime:
guid: 92b1949a-1210-11e6-aa9c-02424d459b45
filename:
applies_to_exp:
miq_policy_id:
notes:
read_only:
- name: e7a270bc-109b-11e6-86ba-02424d459b45
description: Analyse incoming container images
expression:
towhat: ContainerImage
guid: e7a270bc-109b-11e6-86ba-02424d459b45
created_by: admin
updated_by: admin
notes:
active: true
mode: control
read_only:
MiqPolicyContent:
- qualifier: failure
failure_sequence: 1
MiqEventDefinition:
name: containerimage_created
description: Container Image Discovered
guid: e743df5c-109b-11e6-86ba-02424d459b45
event_type: Default
definition:
default:
enabled:
MiqAction:
name: container_image_analyze
description: Initiate SmartState Analysis for Container Image
guid: e671085c-109b-11e6-86ba-02424d459b45
action_type: default
options: {}
Condition: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment