Skip to content

Instantly share code, notes, and snippets.

@htanata
Created November 20, 2009 08:11
Show Gist options
  • Select an option

  • Save htanata/239354 to your computer and use it in GitHub Desktop.

Select an option

Save htanata/239354 to your computer and use it in GitHub Desktop.
# Chef recipe to install mod_xsendfile to Ubuntu i386.
MOD_XSENDFILE_SOURCE_DIR = '/home/railsapp/mod_xsendfile'
PACKAGE_FILE = 'libapache2-mod-xsendfile_0.9-ppa1_i386.deb'
MOD_XSENDFILE_SOURCE = "#{MOD_XSENDFILE_SOURCE_DIR}/#{PACKAGE_FILE}"
directory MOD_XSENDFILE_SOURCE_DIR do
recursive true
end
remote_file MOD_XSENDFILE_SOURCE do
source PACKAGE_FILE
end
dpkg_package PACKAGE_FILE do
source MOD_XSENDFILE_SOURCE
end
apache_module 'xsendfile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment