parent
23df44bb61
commit
039da3d35a
@ -52,3 +52,4 @@ cookbook 'mariadb', '= 0.3.1'
|
|||||||
cookbook 'ipfs',
|
cookbook 'ipfs',
|
||||||
git: 'https://github.com/67P/ipfs-cookbook.git',
|
git: 'https://github.com/67P/ipfs-cookbook.git',
|
||||||
ref: 'v0.4.1'
|
ref: 'v0.4.1'
|
||||||
|
cookbook 'elasticsearch', '= 4.2.0'
|
||||||
|
@ -11,6 +11,7 @@ DEPENDENCIES
|
|||||||
chef_client_updater (= 1.1.1)
|
chef_client_updater (= 1.1.1)
|
||||||
compat_resource (= 12.19.0)
|
compat_resource (= 12.19.0)
|
||||||
composer (~> 2.6.1)
|
composer (~> 2.6.1)
|
||||||
|
elasticsearch (= 4.2.0)
|
||||||
firewall (~> 2.6.3)
|
firewall (~> 2.6.3)
|
||||||
git (= 6.0.0)
|
git (= 6.0.0)
|
||||||
homebrew (= 3.0.0)
|
homebrew (= 3.0.0)
|
||||||
@ -89,6 +90,11 @@ GRAPH
|
|||||||
php (>= 0.0.0)
|
php (>= 0.0.0)
|
||||||
windows (>= 0.0.0)
|
windows (>= 0.0.0)
|
||||||
dmg (4.1.1)
|
dmg (4.1.1)
|
||||||
|
elasticsearch (4.2.0)
|
||||||
|
apt (>= 0.0.0)
|
||||||
|
ark (>= 0.0.0)
|
||||||
|
chef-sugar (>= 0.0.0)
|
||||||
|
yum (>= 0.0.0)
|
||||||
firewall (2.6.5)
|
firewall (2.6.5)
|
||||||
chef-sugar (>= 0.0.0)
|
chef-sugar (>= 0.0.0)
|
||||||
git (6.0.0)
|
git (6.0.0)
|
||||||
|
@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org'
|
|||||||
license 'MIT'
|
license 'MIT'
|
||||||
description 'Installs/Configures kosmos-mastodon'
|
description 'Installs/Configures kosmos-mastodon'
|
||||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||||
version '0.1.0'
|
version '0.2.0'
|
||||||
|
|
||||||
depends "kosmos-nginx"
|
depends "kosmos-nginx"
|
||||||
depends "kosmos-nodejs"
|
depends "kosmos-nodejs"
|
||||||
@ -15,3 +15,4 @@ depends "application_javascript"
|
|||||||
depends "postgresql"
|
depends "postgresql"
|
||||||
depends "kosmos-postgresql"
|
depends "kosmos-postgresql"
|
||||||
depends "backup"
|
depends "backup"
|
||||||
|
depends "elasticsearch"
|
||||||
|
@ -28,6 +28,20 @@ include_recipe "kosmos-nodejs"
|
|||||||
include_recipe "kosmos-redis"
|
include_recipe "kosmos-redis"
|
||||||
include_recipe "kosmos-postgresql"
|
include_recipe "kosmos-postgresql"
|
||||||
|
|
||||||
|
elasticsearch_user 'elasticsearch'
|
||||||
|
|
||||||
|
elasticsearch_install 'elasticsearch' do
|
||||||
|
type 'package'
|
||||||
|
version '7.3.1'
|
||||||
|
download_checksum '570af7456603fd103408ed61ccec4473302976d46e1ff845b74a881122977e02'
|
||||||
|
end
|
||||||
|
|
||||||
|
elasticsearch_configure 'elasticsearch' do
|
||||||
|
allocated_memory '512m'
|
||||||
|
end
|
||||||
|
|
||||||
|
elasticsearch_service 'elasticsearch'
|
||||||
|
|
||||||
# TODO: Remove the condition once we have migrated mastodon to andromeda
|
# TODO: Remove the condition once we have migrated mastodon to andromeda
|
||||||
unless platform?('ubuntu') && node[:platform_version].to_f < 18.04
|
unless platform?('ubuntu') && node[:platform_version].to_f < 18.04
|
||||||
postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
|
postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
|
||||||
|
@ -54,3 +54,8 @@ S3_REGION=<%= @s3_region %>
|
|||||||
# Web Push API
|
# Web Push API
|
||||||
VAPID_PRIVATE_KEY=<%= @vapid_private_key %>
|
VAPID_PRIVATE_KEY=<%= @vapid_private_key %>
|
||||||
VAPID_PUBLIC_KEY=<%= @vapid_public_key %>
|
VAPID_PUBLIC_KEY=<%= @vapid_public_key %>
|
||||||
|
|
||||||
|
# Elasticsearch
|
||||||
|
ES_ENABLED=true
|
||||||
|
ES_HOST=localhost
|
||||||
|
ES_PORT=9200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user