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

Add Fedora 31, drop Fedora 26 #745

Merged
merged 1 commit into from
May 13, 2020
Merged
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
1 change: 1 addition & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- centos6-64
- debian9-64
- debian10-64
- fedora31-64
- ubuntu1804-64
env:
global:
Expand Down
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,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=fedora31-64{hostname=fedora31-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=fedora31-64{hostname=fedora31-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
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{
"operatingsystem": "Fedora",
"operatingsystemrelease": [
"26"
"31"
]
},
{
Expand Down
16 changes: 16 additions & 0 deletions spec/acceptance/puppet_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'spec_helper_acceptance'

describe 'Scenario: install puppet' do
before(:context) do
on default, puppet('resource', 'service', 'puppet', 'ensure=stopped', 'enable=false')
end

let(:pp) { 'include puppet' }

it_behaves_like 'a idempotent resource'

describe service('puppet') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end
end
2 changes: 1 addition & 1 deletion spec/acceptance/puppetserver_config_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

describe 'Puppetserver config options' do
describe 'Puppetserver config options', unless: unsupported_puppetserver do
before(:context) do
if check_for_package(default, 'puppetserver')
on default, puppet('resource package puppetserver ensure=purged')
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/puppetserver_latest_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

describe 'Scenario: install puppetserver (latest):' do
describe 'Scenario: install puppetserver (latest):', unless: unsupported_puppetserver do
before(:context) do
if check_for_package(default, 'puppetserver')
on default, puppet('resource package puppetserver ensure=purged')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

describe 'Scenario: 5.3.6 to 5.3.7 upgrade:', if: ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet5' do
describe 'Scenario: 5.3.6 to 5.3.7 upgrade:', if: ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet5', unless: unsupported_puppetserver do
before(:context) do
if check_for_package(default, 'puppetserver')
on default, puppet('resource package puppetserver ensure=purged')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

describe 'Scenario: 6.7.0 to 6.7.2 upgrade:', if: ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet6' do
describe 'Scenario: 6.7.0 to 6.7.2 upgrade:', if: ENV['BEAKER_PUPPET_COLLECTION'] == 'puppet6', unless: unsupported_puppetserver do
before(:context) do
if check_for_package(default, 'puppetserver')
on default, puppet('resource package puppetserver ensure=purged')
Expand Down
12 changes: 8 additions & 4 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if $facts['os']['name'] == 'Ubuntu' {
package { 'cron':
ensure => installed,
}
$packages = $facts['os']['name'] ? {
'Fedora' => ['cronie'],
'Ubuntu' => ['cron'],
default => [],
}

package { $packages:
ensure => installed,
}
3 changes: 3 additions & 0 deletions spec/support/acceptance/puppetserver.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def unsupported_puppetserver
host_inventory['facter']['os']['name'] == 'Fedora'
end