-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rather than writing the setup code in Ruby, this is now written in Puppet. That works better with modulesync. It also switches from the legacy operatingsystem fact to the modern os.name fact. This is now easily detectable with puppet-lint.
- Loading branch information
Showing
3 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
case $facts['os']['name'] { | ||
'CentOS': { | ||
# Mosquitto is packaged in EPEL | ||
package { 'epel-release': | ||
ensure => installed, | ||
} | ||
} | ||
'Fedora': { | ||
# For serverspec | ||
package { 'iproute': | ||
ensure => installed, | ||
} | ||
} | ||
default: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file is completely managed via modulesync | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
require 'voxpupuli/acceptance/spec_helper_acceptance' | ||
|
||
configure_beaker do |host| | ||
case fact_on(host, 'operatingsystem') | ||
when 'CentOS' | ||
host.install_package('epel-release') | ||
when 'Fedora' | ||
host.install_package('iproute') | ||
end | ||
end | ||
configure_beaker(modules: :metadata) | ||
|
||
Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f } |