Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Linux 2 Support #85

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ pup6.pe-oel:
script:
- 'bundle exec rake beaker:suites[default,oel]'

pup6.pe-amzn2:
<<: *pup_6_pe
<<: *acceptance_base
script:
- 'bundle exec rake beaker:suites[default,amzn2]'

pup6.pe-oel-fips:
<<: *pup_6_pe
<<: *acceptance_base
Expand All @@ -394,6 +400,13 @@ pup7.x-oel:
script:
- 'bundle exec rake beaker:suites[default,oel]'

pup7.x-amzn2:
<<: *pup_7_x
<<: *acceptance_base
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_2
script:
- 'bundle exec rake beaker:suites[default,amzn2]'

pup7.x-oel-fips:
<<: *pup_7_x
<<: *acceptance_base
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Sat Sep 17 2022 Trevor Vaughan <[email protected]> - 6.7.0
- Added support for Amazon Linux 2

* Fri Jun 03 2022 Chris Tessmer <[email protected]> - 6.6.0
- Update from camptocamp/systemd to puppet/systemd

Expand Down
8 changes: 7 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-aide",
"version": "6.6.0",
"version": "6.7.0",
"author": "SIMP Team",
"summary": "manages AIDE",
"license": "Apache-2.0",
Expand Down Expand Up @@ -46,6 +46,12 @@
]
},
"operatingsystem_support": [
{
"operatingsystem": "Amazon",
"operatingsystemrelease": [
"2"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
Expand Down
22 changes: 22 additions & 0 deletions spec/acceptance/nodesets/amzn2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<%
if ENV['BEAKER_HYPERVISOR']
hypervisor = ENV['BEAKER_HYPERVISOR']
else
hypervisor = 'vagrant'
end
-%>
HOSTS:
amzn2:
roles:
- default
platform: el-7-x86_64
box: gbailey/amzn2
hypervisor: <%= hypervisor %>

CONFIG:
log_level: verbose
synced_folder : disabled
type: aio
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HOSTS:
roles:
- client
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>

CONFIG:
Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
begin
# Install modules and dependencies from spec/fixtures/modules
copy_fixture_modules_to( hosts )
server = only_host_with_role(hosts, 'server')
begin
server = only_host_with_role(hosts, 'server')
rescue ArgumentError =>e
server = only_host_with_role(hosts, 'default')
end

# Generate and install PKI certificates on each SUT
Dir.mktmpdir do |cert_dir|
Expand Down