Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
action :cloudwatch_install_package do
dpkg_package package_path do
source package_path
end
end unless on_docker?
end

action_class do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
title "Check if cloudwatch package is installed"
describe package('amazon-cloudwatch-agent') do
it { should be_installed }
end
end unless os_properties.ubuntu_on_docker?
end

control 'tag:config_cloudwatch_configured' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def ubuntu?
inspec.os.name == 'ubuntu'
end

def ubuntu_on_docker?
on_docker? && ubuntu?
end

def redhat8?
redhat? && inspec.os.release.to_i == 8
end
Expand Down
Loading