Skip to content

Commit

Permalink
Added support for Amazon linux (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcheech authored and bespokebob committed Jan 14, 2019
1 parent f58f77b commit 60ecabe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache-2.0'
description 'Installs/Configures tripwire_agent'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.0'
version '1.1.0'
chef_version '>= 13' if respond_to?(:chef_version)

source_url 'https://github.com/Tripwire/chef-tripwire_agent'
Expand All @@ -18,3 +18,4 @@
supports 'ubuntu'
supports 'debian'
supports 'suse'
supports 'amazon'
4 changes: 2 additions & 2 deletions resources/axon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

# Set platform specific variables
case node['platform']
when 'centos', 'redhat', 'suse', 'oraclelinux', 'oracle'
when 'centos', 'redhat', 'suse', 'oraclelinux', 'oracle', 'amazon'
ext = '.rpm'
eg_service_name = 'tw-eg-service'
when 'debian', 'ubuntu'
Expand Down Expand Up @@ -245,7 +245,7 @@
# Removes an axon agent
# Set platform specific variables
case node['platform']
when 'centos', 'redhat', 'oraclelinux'
when 'centos', 'redhat', 'oraclelinux', 'amazon'
agent_package = 'axon-agent'
eg_driver_package = node['packages'].include?('tw-eg-driver-dkms') ? 'tw-eg-driver-dkms' : 'tw-eg-driver-rhel'
eg_service_package = 'tw-eg-service'
Expand Down

0 comments on commit 60ecabe

Please sign in to comment.