Skip to content

Commit

Permalink
use old style os fact
Browse files Browse the repository at this point in the history
  • Loading branch information
nate st. germain committed Feb 8, 2019
1 parent 38bf119 commit 5233479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

case $facts['os']['name'] {
'Amazon': {
$repo_url = "https://pkg.threatstack.com/v2/Amazon/${facts['os']['release']['major']}"
$repo_url = "https://pkg.threatstack.com/v2/Amazon/${::operatingsystemmajrelease}"
$disable_auditd = true
}
/(CentOS|RedHat)/: {
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/yum_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end

context 'on Amazon' do
let(:facts) { {'os' => { 'release' => { 'major' => '2'}, 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:facts) { {'operatingsystemmajrelease' => '2', 'os' => { 'release' => { 'major' => '2'}, 'name' => 'Amazon', 'family' => 'RedHat'} } }
let(:pre_condition) { "class { 'threatstack': deploy_key => '#{deploy_key}', gpg_key => 'https://app.threatstack.com/RPM-GPG-KEY-THREATSTACK' }" }

context 'default' do
Expand Down

0 comments on commit 5233479

Please sign in to comment.