From 18161832ef9b3251170bc3981ce550abeeab736a Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 10 Feb 2022 16:59:58 -0600 Subject: [PATCH 1/2] Deploy new nodejs VM (nodejs-3) --- clients/nodejs-3.json | 4 ++ nodes/nodejs-3.json | 86 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 clients/nodejs-3.json create mode 100644 nodes/nodejs-3.json diff --git a/clients/nodejs-3.json b/clients/nodejs-3.json new file mode 100644 index 0000000..17558de --- /dev/null +++ b/clients/nodejs-3.json @@ -0,0 +1,4 @@ +{ + "name": "nodejs-3", + "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyqP7aGx+S9Mdt6xmaGnJ\nfNWWQsg4BvLiP1qtVt3VRrcXF2cy1bhgfnmqoBqnDk4bGlRoTzF+rSOw284+O2UQ\ntUlsBRos4TOyGfbYHehF12Re6NX51K9LHwaprr3eN5h08wLI8pjVrRJlbce8pHST\nXQ/CZvU+CBg43LE08cXr5kRmhnZrgh70g7zTO8+1E6y74r1LEh77Ar4uaaB5jXw7\n6o9TyfaA1HgyqvfYbH+9KPrJfMX/DeLrYPMI3IG/j3fzDUQQ8o9Pb5B+G1Apl+I+\nsTcgWRei5u06aZHLMMd8MMo4O1yUhbt05kxfVhlDGUDWBdi3cvsMf95t6MNdz/eq\niwIDAQAB\n-----END PUBLIC KEY-----\n" +} \ No newline at end of file diff --git a/nodes/nodejs-3.json b/nodes/nodejs-3.json new file mode 100644 index 0000000..5bf6228 --- /dev/null +++ b/nodes/nodejs-3.json @@ -0,0 +1,86 @@ +{ + "name": "nodejs-3", + "normal": { + "knife_zero": { + "host": "10.1.1.13" + } + }, + "automatic": { + "fqdn": "nodejs-3", + "os": "linux", + "os_version": "5.4.0-1049-kvm", + "hostname": "nodejs-3", + "ipaddress": "192.168.122.85", + "roles": [ + "kredits_github", + "sockethub" + ], + "recipes": [ + "kosmos-base", + "kosmos-base::default", + "kosmos-hubot::botka_irc-libera-chat", + "kredits-github", + "kredits-github::default", + "kredits-github::nginx", + "sockethub", + "sockethub::default", + "sockethub::proxy", + "apt::default", + "timezone_iii::default", + "timezone_iii::debian", + "ntp::default", + "ntp::apparmor", + "kosmos-base::systemd_emails", + "apt::unattended-upgrades", + "kosmos-base::firewall", + "kosmos-postfix::default", + "postfix::default", + "postfix::_common", + "postfix::_attributes", + "postfix::sasl_auth", + "hostname::default", + "kosmos-nodejs::default", + "nodejs::nodejs_from_package", + "nodejs::repo", + "kosmos-redis::default", + "redis::server", + "redis::default", + "backup::default", + "logrotate::default", + "kosmos-hubot::_user", + "kosmos-base::letsencrypt", + "kosmos-nginx::default", + "nginx::default", + "nginx::package", + "nginx::ohai_plugin", + "nginx::repo", + "nginx::commons", + "nginx::commons_dir", + "nginx::commons_script", + "nginx::commons_conf", + "kosmos-nginx::firewall", + "nodejs::npm", + "nodejs::install", + "sockethub::_firewall" + ], + "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" + } + } + }, + "run_list": [ + "recipe[kosmos-base]", + "recipe[kosmos-hubot::botka_irc-libera-chat]", + "role[kredits_github]", + "role[sockethub]" + ] +} \ No newline at end of file From a710182c398c7b914f7b3ab184d83731ebfb2380 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 10 Feb 2022 17:00:19 -0600 Subject: [PATCH 2/2] Add missing user recipe import to botka recipe --- site-cookbooks/kosmos-hubot/recipes/botka_irc-libera-chat.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/site-cookbooks/kosmos-hubot/recipes/botka_irc-libera-chat.rb b/site-cookbooks/kosmos-hubot/recipes/botka_irc-libera-chat.rb index 00db622..144e7f5 100644 --- a/site-cookbooks/kosmos-hubot/recipes/botka_irc-libera-chat.rb +++ b/site-cookbooks/kosmos-hubot/recipes/botka_irc-libera-chat.rb @@ -15,6 +15,7 @@ end include_recipe "kosmos-nodejs" include_recipe "kosmos-redis" +include_recipe "kosmos-hubot::_user" application app_path do credentials = Chef::EncryptedDataBagItem.load('credentials', app_name)