Skip to content

Commit

Permalink
Fixes #29212 - support el8
Browse files Browse the repository at this point in the history
  • Loading branch information
wbclark committed May 4, 2020
1 parent 2e241f3 commit 3120d7a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.travis.yml:
beaker_sets:
- centos7-64
- centos8-64
- debian10-64
- ubuntu1804-64
env:
Expand Down
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ matrix:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet5
- BEAKER_setfile=centos8-64{hostname=centos8-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet6
- BEAKER_setfile=centos8-64{hostname=centos8-64.example.com}
script: bundle exec rake beaker
services: docker
bundler_args: --without development
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart

- rvm: 2.5.1
env:
- BEAKER_PUPPET_COLLECTION=puppet5
Expand Down
6 changes: 4 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7"
"7",
"8"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7"
"7",
"8"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/foreman_cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class { 'foreman::cli':
password => 'changeme',
}
if $facts['osfamily'] == 'RedHat' {
if $facts['os']['family'] == 'RedHat' {
include foreman::cli::ansible
include foreman::cli::azure
}
Expand All @@ -27,7 +27,7 @@ class { 'foreman::cli':
it_behaves_like 'hammer'

['discovery', 'remote_execution', 'tasks', 'templates'].each do |plugin|
package_name = case fact('osfamily')
package_name = case fact('os.family')
when 'RedHat'
fact('operatingsystem') == 'Fedora' ? "rubygem-hammer_cli_foreman_#{plugin}" : "tfm-rubygem-hammer_cli_foreman_#{plugin}"
when 'Debian'
Expand Down

0 comments on commit 3120d7a

Please sign in to comment.