include_recipe 'apt'

case node['platform_version'].to_f
  when 7
    release = 'wheezy'

  when 12.04
    release = 'precise'

  when 13.1
    release = 'saucy'

  else
    raise %W(Platform not supported: #{node['platform_family']} (#{node[:platform]}) #{node['platform_version']}).join(' ')
end

apt_repository 'hhvm' do
  uri          'http://dl.hhvm.com/'.concat(node[:platform])
  distribution release
  components   ['main']
  key          'http://dl.hhvm.com/conf/hhvm.gpg.key'
end

package 'hhvm'

if node['hhvm']['enable_fastcgi']
  package 'hhvm-fastcgi'
end

include_recipe 'apt'

case node['platform_version'].to_f
  when 7
  when 7.1
  when 7.2
  when 7.3
  when 7.4
    release = 'wheezy'

  when 12.04
    release = 'precise'

  when 13.1
    release = 'saucy'

  else
    raise %W(Platform not supported: #{node['platform_family']} (#{node[:platform]}) #{node['platform_version']}).join(' ')
end

apt_repository 'hhvm' do
  uri          'http://dl.hhvm.com/'.concat(node[:platform])
  distribution release
  components   ['main']
  key          'http://dl.hhvm.com/conf/hhvm.gpg.key'
end

package 'hhvm'

if node['hhvm']['enable_fastcgi']
  package 'hhvm-fastcgi'
end

Add Debian sub versions to choose from
Add Debian sub versions to choose from

Added debian 7.1, 7.2, 7.3 and 7.4