Set up an instance of Mastodon for Kosmos

Refs #19

Use new application cookbook, update our cookbooks
This commit is contained in:
Greg Karékinian
2017-04-06 21:20:51 +02:00
parent a3f5c5f646
commit de11c0d691
345 changed files with 22591 additions and 3473 deletions

View File

@@ -10,7 +10,15 @@
include_recipe "apt"
include_recipe "php::default"
include_recipe "php::module_apc"
if node['platform'] == 'ubuntu' and node['platform_version'] >= '16.04'
# APC is now apcu in PHP 7
include_recipe "php::module_apcu"
# Dependency
package "php7.0-mbstring"
else
include_recipe "php::module_apc"
end
include_recipe "php::module_mysql"
include_recipe "mediawiki::database"
@@ -38,8 +46,11 @@ when "debian"
package "libicu-dev"
end
php_pear "intl" do
action :install
if platform?('ubuntu') && node[:platform_version].to_f < 16.04
# bundled with PHP since version 5.3
php_pear "intl" do
action :install
end
end
# Configure mediawiki database