Commit 8db51e0c authored by Romain Neutron's avatar Romain Neutron Committed by GitHub

Merge pull request #10 from rhealitycheck/feature-use-amazon-linux

Feature use amazon linux
parents a591128f 0adaf67f
......@@ -12,7 +12,7 @@ default['blackfire']['php']['log_file'] = nil
default['blackfire']['php']['server_id'] = nil
default['blackfire']['php']['server_token'] = nil
if platform_family?('rhel', 'fedora')
if platform_family?('rhel', 'fedora', 'amazon')
default['blackfire']['php']['ini_path'] = '/etc/php.d/zz-blackfire.ini'
elsif platform?('debian') && node['platform_version'].to_f < 7.0
default['blackfire']['php']['ini_path'] = '/etc/php5/conf.d/blackfire.ini'
......
......@@ -16,6 +16,7 @@ supports 'ubuntu'
supports 'redhat'
supports 'fedora'
supports 'centos'
supports 'amazon'
depends 'apt'
depends 'yum'
......@@ -10,7 +10,7 @@ include_recipe "#{cookbook_name}::repository"
agent_version = node[cookbook_name]['agent']['version'] ? node[cookbook_name]['agent']['version'] : Blackfire::Versions.agent(node)
agent_version << '-1' if platform_family?('rhel', 'fedora')
agent_version << '-1' if platform_family?('rhel', 'fedora', 'amazon')
package 'blackfire-agent' do
version agent_version
......
......@@ -20,7 +20,7 @@ end
probe_version = node[cookbook_name]['php']['version'] ? node[cookbook_name]['php']['version'] : Blackfire::Versions.probe(node)
probe_version << '-1' if platform_family?('rhel', 'fedora')
probe_version << '-1' if platform_family?('rhel', 'fedora', 'amazon')
package 'blackfire-php' do
version probe_version
......
......@@ -7,7 +7,7 @@
#
case node['platform_family']
when 'rhel', 'fedora'
when 'rhel', 'fedora', 'amazon'
yum_repository 'blackfire' do
description 'blackfire'
baseurl "#{node[cookbook_name]['repository']}/fedora/$releasever/$basearch"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment