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

@@ -44,7 +44,6 @@ if is_local_host? db['host']
mysql_service db['instance_name'] do
port db['port']
version db['mysql_version']
initial_root_password db['root_password']
action [:create, :start]
end
@@ -52,6 +51,11 @@ if is_local_host? db['host']
socket = "/var/run/mysql-#{db['instance_name']}/mysqld.sock"
if node['platform_family'] == 'debian'
directory "/var/run/mysqld" do
action :create
owner "mysql"
group "mysql"
end
link '/var/run/mysqld/mysqld.sock' do
to socket
not_if 'test -f /var/run/mysqld/mysqld.sock'