This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* vagrant setup for WPT * general support for MySQL 5.7 in vagrant * fixes for 16.04 Related: easybib/issues#5617 easybib/sbm-issues#255
- Loading branch information
Showing
17 changed files
with
131 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
include_recipe 'supervisor' | ||
|
||
unless is_aws | ||
conf = node['fake-s3'] | ||
|
||
s3_bin = '/usr/local/bin/fakes3' | ||
|
||
gem_package 'fakes3' do | ||
version conf['version'] | ||
end | ||
|
||
# installed chef inside vagrant box demands this | ||
link s3_bin do | ||
to '/opt/chef/embedded/bin/fakes3' | ||
only_if { File.exist?('/opt/chef/embedded/bin/fakes3') } | ||
end | ||
|
||
supervisor_service 'fakes3' do | ||
action :enable | ||
autostart true | ||
command "/usr/local/bin/fakes3 -r #{conf['storage']} -p #{conf['port']}" | ||
command "#{s3_bin} -r #{conf['storage']} -p #{conf['port']}" | ||
user 'nobody' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default['fake-sqs'] = { | ||
'version' => '0.3.1' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
include_recipe 'supervisor' | ||
|
||
unless is_aws | ||
::Chef::Log.info('SQS - installing fake_sqs...') | ||
conf = node['fake-sqs'] | ||
|
||
sqs_bin = '/usr/local/bin/fake_sqs' | ||
|
||
gem_package 'fake_sqs' do | ||
version '0.3.1' | ||
version conf['version'] | ||
end | ||
::Chef::Log.info('SQS - configuring supervisor...') | ||
|
||
# installed chef inside vagrant box demands this | ||
link sqs_bin do | ||
to '/opt/chef/embedded/bin/fake_sqs' | ||
only_if { File.exist?('/opt/chef/embedded/bin/fake_sqs') } | ||
end | ||
|
||
supervisor_service 'fake_sqs' do | ||
action :enable | ||
autostart true | ||
command '/usr/local/bin/fake_sqs' | ||
command sqs_bin | ||
user 'nobody' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE USER IF NOT EXISTS 'vagrant'@'%'; | ||
GRANT ALL PRIVILEGES ON *.* TO 'vagrant'@'%' WITH GRANT OPTION; | ||
FLUSH PRIVILEGES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
include_recipe 'ohai' | ||
include_recipe 'supervisor' | ||
|
||
include_recipe 'ies-mysql' | ||
include_recipe 'ies-mysql::dev' | ||
|
||
include_recipe 'fake-sqs' | ||
|
||
node.set['fake-s3']['storage'] = '/vagrant_wpt/var/s3' | ||
include_recipe 'fake-s3' | ||
|
||
# frontend | ||
# include_recipe 'nodejs' | ||
# include_recipe 'nodejs::npm' | ||
# package 'build-essential' | ||
# package 'g++' | ||
|
||
include_recipe 'stack-scholar::role-scholar' | ||
include_recipe 'php::module-pdo_sqlite' | ||
include_recipe 'nginx-app::vagrant-silex' |