Skip to content

Commit

Permalink
add puppet facts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed May 30, 2024
1 parent d2d19a0 commit 0edf789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/acceptance/observium_install_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'
require 'rspec-puppet-facts'

describe 'Installation', if: ['centos', 'redhat', 'ubuntu'].include?(os[:family]) do
before(:all) do
Expand Down
8 changes: 7 additions & 1 deletion spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
include PuppetLitmus

def install_packge(package)
run_shell("yum -y install #{package}")
if :osfamily == 'Ubuntu' do
run_shell("apt -y install #{package}")
end
if :osfamily == 'RedHat' do
run_shell("yum -y install #{package}")
end

end

0 comments on commit 0edf789

Please sign in to comment.