Skip to content

Instantly share code, notes, and snippets.

@ameir
Created March 18, 2015 21:28

Revisions

  1. ameir created this gist Mar 18, 2015.
    27 changes: 27 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    case node['platform']
    when 'ubuntu'
    apt_repository "ondrej-php" do
    uri "http://ppa.launchpad.net/ondrej/php5/ubuntu"
    distribution node['lsb']['codename']
    components ["main"]
    keyserver "keyserver.ubuntu.com"
    key "E5267A6C"
    action :add
    end
    when 'debian'
    apt_repository "dotdeb" do
    uri "http://packages.dotdeb.org"
    distribution "stable"
    components ['all']
    key "http://www.dotdeb.org/dotdeb.gpg"
    action :add
    end
    end

    %w{ php5-mysqlnd php5-mcrypt php5-cli php5-curl php5-json php5-sqlite }.each do |package|
    package package do
    action :install
    end
    end

    include_recipe 'php-fpm'