Update akkounts cookbook, deploy new akkounts VM
* Fix: add missing directory resource * New nodejs cookbook usage * Remove Redis entirely (not using local Redis anymore)
This commit is contained in:
@@ -4,12 +4,11 @@ maintainer_email 'mail@kosmos.org'
|
|||||||
license 'MIT'
|
license 'MIT'
|
||||||
description 'Installs/configures kosmos-akkounts'
|
description 'Installs/configures kosmos-akkounts'
|
||||||
long_description 'Installs/configures kosmos-akkounts'
|
long_description 'Installs/configures kosmos-akkounts'
|
||||||
version '0.2.0'
|
version '0.3.0'
|
||||||
chef_version '>= 18.0'
|
chef_version '>= 18.0'
|
||||||
|
|
||||||
depends 'kosmos_openresty'
|
depends 'kosmos_openresty'
|
||||||
depends "kosmos-nodejs"
|
depends "kosmos-nodejs"
|
||||||
depends "redisio"
|
|
||||||
depends "postgresql"
|
depends "postgresql"
|
||||||
depends "kosmos_postgresql"
|
depends "kosmos_postgresql"
|
||||||
depends "backup"
|
depends "backup"
|
||||||
|
|||||||
@@ -19,13 +19,16 @@ user deploy_user do
|
|||||||
shell "/bin/bash"
|
shell "/bin/bash"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
directory deploy_path do
|
||||||
|
owner deploy_user
|
||||||
|
group deploy_group
|
||||||
|
mode "0755"
|
||||||
|
end
|
||||||
|
|
||||||
package "libpq-dev"
|
package "libpq-dev"
|
||||||
package "libvips"
|
package "libvips"
|
||||||
|
|
||||||
include_recipe 'redisio::default'
|
node.override["kosmos_nodejs"]["version"] = "22.23.1"
|
||||||
include_recipe 'redisio::enable'
|
|
||||||
|
|
||||||
node.override["nodejs"]["repo"] = "https://deb.nodesource.com/node_20.x"
|
|
||||||
include_recipe 'kosmos-nodejs'
|
include_recipe 'kosmos-nodejs'
|
||||||
npm_package "bun"
|
npm_package "bun"
|
||||||
|
|
||||||
@@ -34,7 +37,7 @@ ruby_path = "/opt/ruby_build/builds/#{ruby_version}"
|
|||||||
bundle_path = "#{ruby_path}/bin/bundle"
|
bundle_path = "#{ruby_path}/bin/bundle"
|
||||||
rails_env = node.chef_environment == "development" ? "development" : "production"
|
rails_env = node.chef_environment == "development" ? "development" : "production"
|
||||||
|
|
||||||
ruby_build_install 'v20240221'
|
ruby_build_install 'v20260701'
|
||||||
ruby_build_definition ruby_version do
|
ruby_build_definition ruby_version do
|
||||||
prefix_path ruby_path
|
prefix_path ruby_path
|
||||||
end
|
end
|
||||||
@@ -221,7 +224,6 @@ systemd_unit "akkounts.service" do
|
|||||||
Unit: {
|
Unit: {
|
||||||
Description: "Kosmos Accounts",
|
Description: "Kosmos Accounts",
|
||||||
Documentation: ["https://gitea.kosmos.org/kosmos/akkounts"],
|
Documentation: ["https://gitea.kosmos.org/kosmos/akkounts"],
|
||||||
Requires: "redis@6379.service",
|
|
||||||
After: "syslog.target network.target"
|
After: "syslog.target network.target"
|
||||||
},
|
},
|
||||||
Service: {
|
Service: {
|
||||||
|
|||||||
Reference in New Issue
Block a user