From 8386dae46f6bedba3b33aa25ef1af7dd4c81a26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 19 Jun 2020 16:26:39 +0200 Subject: [PATCH 1/3] Add the new Hetzner server, draco.kosmos.org --- clients/draco.kosmos.org.json | 4 +++ nodes/draco.kosmos.org.json | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 clients/draco.kosmos.org.json create mode 100644 nodes/draco.kosmos.org.json diff --git a/clients/draco.kosmos.org.json b/clients/draco.kosmos.org.json new file mode 100644 index 0000000..e3154f6 --- /dev/null +++ b/clients/draco.kosmos.org.json @@ -0,0 +1,4 @@ +{ + "name": "draco.kosmos.org", + "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqJiREO7WJyKWzOltXREs\n6bCMBzHTeyBSLxK/50xPvk43A8e+8qW1V52oO/uQkHh8YJ8BCDdSsWTNTudTuMhm\nEFLYP7n+ESYyz7nBgcwLX19lSo3dGnyuQBwlno6W/F1uEdTxfY6MtxJdiPZQDIt0\noijEwOF4ZhA5A+kqx6fpp+rX48r9wdidjdhrJimQixL0SsJFkoStc17BxrnqPpv9\n/sd4xYKgK9hEmEovhghBN3ULsxDOj63cGmM4uWLjbO4ZpL6g1lZRJR5kmcziL9KH\n23M7ShaJu90PnPiFSCUFgNN24zA7aKTkKulNs4g2OYovWVG/z8WglGqHNY83dBP0\nLwIDAQAB\n-----END PUBLIC KEY-----\n" +} diff --git a/nodes/draco.kosmos.org.json b/nodes/draco.kosmos.org.json new file mode 100644 index 0000000..f370077 --- /dev/null +++ b/nodes/draco.kosmos.org.json @@ -0,0 +1,51 @@ +{ + "name": "draco.kosmos.org", + "normal": { + "knife_zero": { + "host": "draco.kosmos.org" + } + }, + "automatic": { + "fqdn": "draco.kosmos.org", + "os": "linux", + "os_version": "5.4.0-37-generic", + "hostname": "draco", + "ipaddress": "148.251.237.73", + "roles": [ + + ], + "recipes": [ + "kosmos-base", + "kosmos-base::default", + "apt::default", + "timezone_iii::default", + "timezone_iii::debian", + "ntp::default", + "kosmos-base::systemd_emails", + "apt::unattended-upgrades", + "kosmos-base::firewall", + "kosmos-postfix::default", + "postfix::default", + "postfix::_common", + "postfix::_attributes", + "postfix::sasl_auth", + "hostname::default" + ], + "platform": "ubuntu", + "platform_version": "20.04", + "cloud": null, + "chef_packages": { + "ohai": { + "version": "15.9.1", + "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/ohai-15.9.1/lib/ohai" + }, + "chef": { + "version": "15.11.8", + "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.11.8/lib" + } + } + }, + "run_list": [ + "recipe[kosmos-base]" + ] +} \ No newline at end of file From f7dfffd96715b779f2bd9d0104c9d2ce61eda51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 19 Jun 2020 16:43:42 +0200 Subject: [PATCH 2/3] Add the kosmos_encfs recipe to draco --- nodes/draco.kosmos.org.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodes/draco.kosmos.org.json b/nodes/draco.kosmos.org.json index f370077..25f4a36 100644 --- a/nodes/draco.kosmos.org.json +++ b/nodes/draco.kosmos.org.json @@ -17,6 +17,8 @@ "recipes": [ "kosmos-base", "kosmos-base::default", + "kosmos_encfs", + "kosmos_encfs::default", "apt::default", "timezone_iii::default", "timezone_iii::debian", @@ -46,6 +48,7 @@ } }, "run_list": [ - "recipe[kosmos-base]" + "recipe[kosmos-base]", + "recipe[kosmos_encfs]" ] } \ No newline at end of file From fb8687b63c696f5f0e6ac21e23be83888b148037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 19 Jun 2020 17:13:26 +0200 Subject: [PATCH 3/3] Add the postgresql_replica role to draco --- nodes/draco.kosmos.org.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nodes/draco.kosmos.org.json b/nodes/draco.kosmos.org.json index 25f4a36..e266fe1 100644 --- a/nodes/draco.kosmos.org.json +++ b/nodes/draco.kosmos.org.json @@ -12,13 +12,14 @@ "hostname": "draco", "ipaddress": "148.251.237.73", "roles": [ - + "postgresql_replica" ], "recipes": [ "kosmos-base", "kosmos-base::default", "kosmos_encfs", "kosmos_encfs::default", + "kosmos-postgresql::replica", "apt::default", "timezone_iii::default", "timezone_iii::debian", @@ -31,7 +32,10 @@ "postfix::_common", "postfix::_attributes", "postfix::sasl_auth", - "hostname::default" + "hostname::default", + "firewall::default", + "chef-sugar::default", + "build-essential::default" ], "platform": "ubuntu", "platform_version": "20.04", @@ -49,6 +53,7 @@ }, "run_list": [ "recipe[kosmos-base]", - "recipe[kosmos_encfs]" + "recipe[kosmos_encfs]", + "role[postgresql_replica]" ] } \ No newline at end of file