Skip to content

Commit

Permalink
Force cgroup/v1 on RHEL7 to avoid acceptance errors on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Feb 15, 2024
1 parent c64946d commit 9a32255
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/spec_helper_acceptance_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
datadir: data
data_hash: yaml_data
hierarchy:
- name: osfamily-osmajor
path: "%{facts.os.family}%{facts.os.release.major}.yaml"
- name: virtual
path: "%{facts.virtual}.yaml"
- name: "Munge"
Expand Down Expand Up @@ -80,9 +82,13 @@
slurmd:
cpus: 1
HIERA
rhel7_yaml = <<-RHEL7
slurm::cgroup_plugin: 'cgroup/v1'
RHEL7
create_remote_file(hosts, '/etc/puppetlabs/puppet/hiera.yaml', hiera_yaml)
on hosts, 'mkdir -p /etc/puppetlabs/puppet/data'
create_remote_file(hosts, '/etc/puppetlabs/puppet/data/common.yaml', common_yaml)
create_remote_file(hosts, '/etc/puppetlabs/puppet/data/RedHat7.yaml', rhel7_yaml)
# Hack to work around issues with recent systemd and docker and running services as non-root
if fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 7
service_hack = <<-HACK
Expand Down

0 comments on commit 9a32255

Please sign in to comment.