Set up Redis VM, upgrade all cookbooks for Chef 18, major cleanup #496

Merged
raucao merged 28 commits from feature/488-redis_server into master 2023-07-01 12:22:39 +00:00
Owner

This replaces the deprecated redis cookbook. Compiles the latest version of Redis, currently 7.0.11. Running on redis-1. (The database is empty right now, there's no dump to check the backup functionality. It's more convenient to check that after we have data.)

The new redisio cookbook required upgrading to Chef client 16+, so we did a general upgrade of all code to be compatible with 18.x (latest stable). #500 will be a follow-up to complete the Chef 18 upgrades on the actual hosts.

Done in this PR:

  • Set up Redis VM
  • Upgrade all existing VMs with Redis to latest version of the redisio cookbook and Chef client 18.x
  • Refactor all cookbooks using poise dependencies (application, application-ruby, application-javascript, etc.) with vanilla Chef resources, deploy on the various VMs and upgrade them to Chef 18
  • Remove all obsolete and unused cookbooks
  • Various other cleanups

Refs #488, #500

This replaces the deprecated redis cookbook. Compiles the latest version of Redis, currently 7.0.11. Running on redis-1. (The database is empty right now, there's no dump to check the backup functionality. It's more convenient to check that after we have data.) The new redisio cookbook required upgrading to Chef client 16+, so we did a general upgrade of all code to be compatible with 18.x (latest stable). #500 will be a follow-up to complete the Chef 18 upgrades on the actual hosts. Done in this PR: * Set up Redis VM * Upgrade all existing VMs with Redis to latest version of the redisio cookbook and Chef client 18.x * Refactor all cookbooks using poise dependencies (application, application-ruby, application-javascript, etc.) with vanilla Chef resources, deploy on the various VMs and upgrade them to Chef 18 * Remove all obsolete and unused cookbooks * Various other cleanups Refs #488, #500
greg added the
kredits-2
feature
labels 2023-06-19 14:07:25 +00:00
greg self-assigned this 2023-06-19 14:07:26 +00:00
greg added 1 commit 2023-06-19 14:07:26 +00:00
This replaces the deprecated redis cookbook. Compiles the latest version
of Redis, currently 7.0.11

Refs #488
greg added 2 commits 2023-06-19 14:09:33 +00:00
greg requested review from raucao 2023-06-19 14:10:52 +00:00
greg added 1 commit 2023-06-19 14:13:28 +00:00
Author
Owner

I forgot to add the firewall rule to only allow connections to Redis from Zerotier, doing that in a bit. Marking as WIP

I forgot to add the firewall rule to only allow connections to Redis from Zerotier, doing that in a bit. Marking as WIP
greg changed title from Set up Redis using the latest version of redisio to WIP: Set up Redis using the latest version of redisio 2023-06-20 12:36:43 +00:00
greg added 1 commit 2023-06-20 13:19:56 +00:00
greg changed title from WIP: Set up Redis using the latest version of redisio to Set up Redis using the latest version of redisio 2023-06-20 13:20:08 +00:00
raucao reviewed 2023-06-20 13:28:30 +00:00
Berksfile Outdated
@ -8,4 +8,0 @@
cookbook 'redis',
git: 'https://github.com/phlipper/chef-redis.git',
ref: 'v0.5.6'
cookbook 'redisio', '= 5.0.0' # TODO upgrade to 6.x when we use Chef 16
Owner

Are we actually using Chef 16 now on all machines that need Redis? If not, this would break Chef runs...

Are we actually using Chef 16 now on all machines that need Redis? If not, this would break Chef runs...
Author
Owner

I just checked the node files. We do need to update Chef on the following machines, they're on Chef 15 and used an older version of the redisio cookbook

  • akkounts-1
  • bitcoin-2
  • mastodon-3
  • nodejs-4

I'll take care of that tomorrow on Friday

I just checked the node files. We do need to update Chef on the following machines, they're on Chef 15 and used an older version of the redisio cookbook * akkounts-1 * bitcoin-2 * mastodon-3 * nodejs-4 I'll take care of that ~~tomorrow~~ on Friday
greg marked this conversation as resolved
greg added 1 commit 2023-06-28 12:15:48 +00:00
raucao added 3 commits 2023-06-28 12:29:42 +00:00
greg added 11 commits 2023-06-28 16:55:42 +00:00
raucao was assigned by greg 2023-06-28 16:55:55 +00:00
greg added 1 commit 2023-06-28 17:00:08 +00:00
greg added 6 commits 2023-06-29 15:06:29 +00:00
greg added 1 commit 2023-06-29 15:17:18 +00:00
greg was unassigned by raucao 2023-06-29 15:41:09 +00:00
raucao removed their assignment 2023-06-29 15:41:09 +00:00
raucao added
kredits-3
and removed
kredits-2
labels 2023-06-30 11:59:28 +00:00
greg changed title from Set up Redis using the latest version of redisio to Set up Redis using the latest version of redisio & general cookbooks update and cleanup 2023-07-01 09:30:28 +00:00
raucao changed title from Set up Redis using the latest version of redisio & general cookbooks update and cleanup to Set up Redis VM, upgrade all cookbooks for Chef 18, major cleanup 2023-07-01 12:14:14 +00:00
raucao approved these changes 2023-07-01 12:22:25 +00:00
raucao merged commit 8072fafa46 into master 2023-07-01 12:22:39 +00:00
raucao deleted branch feature/488-redis_server 2023-07-01 12:22:39 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#496
No description provided.