From 1a19fa012da70a927b819627c7bf35ce58076675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 17 Jul 2023 18:09:13 +0200 Subject: [PATCH] Deploy openresty proxy on draco Also update Chef to 18.2.7 --- nodes/draco.kosmos.org.json | 39 +++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/nodes/draco.kosmos.org.json b/nodes/draco.kosmos.org.json index fdc850e..a98bf05 100644 --- a/nodes/draco.kosmos.org.json +++ b/nodes/draco.kosmos.org.json @@ -1,5 +1,6 @@ { "name": "draco.kosmos.org", + "chef_environment": "production", "normal": { "knife_zero": { "host": "10.1.1.167" @@ -8,6 +9,9 @@ "backup": { "schedule": "0/3:55" } + }, + "openresty": { + "listen_ip": "148.251.237.111" } }, "automatic": { @@ -17,7 +21,8 @@ "hostname": "draco", "ipaddress": "148.251.237.73", "roles": [ - + "openresty_proxy", + "openresty" ], "recipes": [ "kosmos-base", @@ -30,7 +35,10 @@ "kosmos-ipfs::firewall_swarm", "kosmos-bitcoin::firewall", "kosmos_zerotier::firewall", - "kosmos-nginx::firewall", + "kosmos_openresty", + "kosmos_openresty::default", + "kosmos_openresty::firewall", + "kosmos_assets::nginx_site", "sockethub::firewall", "apt::default", "timezone_iii::default", @@ -47,19 +55,30 @@ "postfix::sasl_auth", "hostname::default", "firewall::default", - "chef-sugar::default" + "openresty::apt_package", + "openresty::ohai_plugin", + "openresty::commons_user", + "openresty::commons_dir", + "openresty::commons_script", + "openresty::commons_conf", + "logrotate::default", + "openresty::luarocks", + "git::default", + "git::package", + "kosmos-base::letsencrypt" ], "platform": "ubuntu", "platform_version": "20.04", "cloud": null, "chef_packages": { - "ohai": { - "version": "15.12.0", - "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/ohai-15.12.0/lib/ohai" - }, "chef": { - "version": "15.17.4", - "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.17.4/lib" + "version": "18.2.7", + "chef_root": "/opt/chef/embedded/lib/ruby/gems/3.1.0/gems/chef-18.2.7/lib", + "chef_effortless": null + }, + "ohai": { + "version": "18.1.4", + "ohai_root": "/opt/chef/embedded/lib/ruby/gems/3.1.0/gems/ohai-18.1.4/lib/ohai" } } }, @@ -72,7 +91,7 @@ "recipe[kosmos-ipfs::firewall_swarm]", "recipe[kosmos-bitcoin::firewall]", "recipe[kosmos_zerotier::firewall]", - "recipe[kosmos-nginx::firewall]", + "role[openresty_proxy]", "recipe[sockethub::firewall]" ] } \ No newline at end of file