apt_update

include_recipe 'yum-epel'
include_recipe 'varnish::default'

# Set up nginx first since it likes to start listening on port 80 during install
include_recipe "#{cookbook_name}::_nginx"

package 'varnish'

service 'varnish' do
  action [:enable, :start]
end

varnish_config 'default' do
  listen_address '0.0.0.0'
  listen_port 80
  storage 'malloc'
  malloc_percent 33
end

vcl_template 'default.vcl' do
  source 'default.vcl.erb'
  variables(
    config: {
      backend_host: '127.0.0.1',
      backend_port: '8080',
    }
  )
end

apt_update 'full_stack'

include_recipe 'yum-epel'
include_recipe 'varnish::default'

# Set up nginx first since it likes to start listening on port 80 during install
include_recipe "#{cookbook_name}::_nginx"

package 'varnish'

service 'varnish' do
  action [:enable, :start]
end

varnish_config 'default' do
  listen_address '0.0.0.0'
  listen_port 80
  storage 'malloc'
  malloc_percent 33
end

vcl_template 'default.vcl' do
  source 'default.vcl.erb'
  variables(
    config: {
      backend_host: '127.0.0.1',
      backend_port: '8080',
    }
  )
end

Fix tests for apt platforms
Fix tests for apt platforms
