Move akkounts to redisio cookbook

This commit is contained in:
2022-04-11 11:58:28 +02:00
committed by Râu Cao
parent 0320cae893
commit 8f70bf5033
4 changed files with 16 additions and 10 deletions

View File

@@ -8,3 +8,5 @@ node.default['akkounts_api']['domain'] = 'api.kosmos.org'
node.default['akkounts']['lndhub']['api_url'] = nil
node.default['akkounts']['lndhub']['public_url'] = nil
node.default['akkounts']['lndhub']['postgres_db'] = 'lndhub'
node.override["redisio"]["version"] = "6.2.6"

View File

@@ -9,7 +9,7 @@ chef_version '>= 14.0'
depends 'kosmos-nginx'
depends "kosmos-nodejs"
depends "kosmos-redis"
depends "redisio"
depends "poise-ruby-build"
depends "application"
depends 'application_git'

View File

@@ -20,8 +20,9 @@ end
package "libpq-dev"
include_recipe 'redisio::default'
include_recipe 'redisio::enable'
include_recipe 'kosmos-nodejs'
include_recipe "kosmos-redis"
npm_package "yarn" do
version "1.22.4"
@@ -82,7 +83,8 @@ systemd_unit "akkounts.service" do
Unit: {
Description: "Kosmos Accounts",
Documentation: ["https://gitea.kosmos.org/kosmos/akkounts"],
After: "network.target"
Requires: "redis@6379.service",
After: "syslog.target network.target"
},
Service: {
Type: "simple",
@@ -110,8 +112,8 @@ systemd_unit "akkounts-sidekiq.service" do
Unit: {
Description: "Kosmos Accounts async/background jobs",
Documentation: ["https://gitea.kosmos.org/kosmos/akkounts"],
Requires: "redis-server.service",
After: "syslog.target network.target redis-server.service"
Requires: "redis@6379.service",
After: "syslog.target network.target redis@6379.service"
},
Service: {
Type: "notify",