From 2cb5540a7b6b3af19ceac5459b0c346647596d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 7 Apr 2026 16:56:01 +0400 Subject: [PATCH] Add new postgres replica (v12) --- clients/postgres-10.json | 4 +++ nodes/postgres-10.json | 63 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 clients/postgres-10.json create mode 100644 nodes/postgres-10.json diff --git a/clients/postgres-10.json b/clients/postgres-10.json new file mode 100644 index 0000000..b64b616 --- /dev/null +++ b/clients/postgres-10.json @@ -0,0 +1,4 @@ +{ + "name": "postgres-10", + "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2oBb5omC7ZionWhudgFm\n2NGcRXsI0c7+g1+0duaxj5dziaRTltqzpRJTfiJD6R36FcvEqwGc+qQgYSMzc1Xd\nY4OTvJFIDiFAmROm/DZYgFtTDldVNJZO2bbU3COYf/Z2Poq56gC4zLLd/zf6shgb\n2Mty8PlQ82JJAY9EMI3aAifdnZ1k/g4weFC4LFg9lUcNNXOwlAjp//LJ3ku3aY1r\nwW74msSeWEjE44YZdWyMYgM7Fy1hz5giHFQtRdOLemRCWQ8h26wn/cmWld7lsLg+\nlYqxokxWXGv8r5zR8kDTBkd0dxY7ZMbo7oESY4Uhuf4UReMe2ZGHto1E7w3llSj+\n7wIDAQAB\n-----END PUBLIC KEY-----\n" +} \ No newline at end of file diff --git a/nodes/postgres-10.json b/nodes/postgres-10.json new file mode 100644 index 0000000..73cde74 --- /dev/null +++ b/nodes/postgres-10.json @@ -0,0 +1,63 @@ +{ + "name": "postgres-10", + "chef_environment": "production", + "normal": { + "knife_zero": { + "host": "10.1.1.176" + } + }, + "automatic": { + "fqdn": "postgres-10", + "os": "linux", + "os_version": "5.15.0-1095-kvm", + "hostname": "postgres-10", + "ipaddress": "192.168.122.41", + "roles": [ + "base", + "kvm_guest", + "postgresql_replica" + ], + "recipes": [ + "kosmos-base", + "kosmos-base::default", + "kosmos_kvm::guest", + "kosmos_postgresql::hostsfile", + "kosmos_postgresql::replica", + "kosmos_postgresql::firewall", + "apt::default", + "timezone_iii::default", + "timezone_iii::debian", + "ntp::default", + "ntp::apparmor", + "kosmos-base::journald_conf", + "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": "22.04", + "cloud": null, + "chef_packages": { + "chef": { + "version": "18.10.17", + "chef_root": "/opt/chef/embedded/lib/ruby/gems/3.1.0/gems/chef-18.10.17/lib", + "chef_effortless": null + }, + "ohai": { + "version": "18.2.13", + "ohai_root": "/opt/chef/embedded/lib/ruby/gems/3.1.0/gems/ohai-18.2.13/lib/ohai" + } + } + }, + "run_list": [ + "role[base]", + "role[kvm_guest]", + "role[postgresql_replica]" + ] +}