Skip to content

Commit 4325b1e

Browse files
committed
[ci skip] Add notice for Redis 4.0 requirement, update examples
1 parent 9b7924a commit 4325b1e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ install `redis-server` via a task in `pre_tasks` within your playbook or use a
8484
Redis installation role such as
8585
https://galaxy.ansible.com/davidwittman/redis[DavidWittman.redis].
8686

87+
WARNING: NetBox v2.9.0+ require Redis 4.0 at the minimum. The role suggested
88+
above defaults to a 2.8 version, so make sure you specify a newer version in a
89+
role variable or deploy Redis 4.0+ another way.
90+
8791
== Role Variables
8892

8993
TIP: See `examples/` for some playbooks you could write for different scenarios.
@@ -417,6 +421,8 @@ socket to talk to the Postgres server with the default netbox database user.
417421
- name: "{{ netbox_database_user }}"
418422
role_attr_flags: CREATEDB,NOSUPERUSER
419423
redis_bind: 127.0.0.1
424+
redis_version: 6.0.9
425+
redis_checksum: sha256:dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
420426
----
421427

422428
Note the `CREATEDB` attribute.
@@ -448,6 +454,8 @@ installing NetBox on to authenticate with it over TCP:
448454
netbox_database_user: netbox_prod_user
449455
netbox_database_password: "very_secure_password_for_prod"
450456
redis_bind: 127.0.0.1
457+
redis_version: 6.0.9
458+
redis_checksum: sha256:dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
451459
----
452460

453461
See the `examples/` directory for more.

examples/playbook_single_host_deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
- name: "{{ netbox_database_user }}"
2525
role_attr_flags: CREATEDB,NOSUPERUSER
2626
redis_bind: 127.0.0.1
27+
redis_version: 6.0.9
28+
redis_checksum: sha256:dc2bdcf81c620e9f09cfd12e85d3bc631c897b2db7a55218fd8a65eaa37f86dd
2729
pre_tasks:
2830
- name: Enable Subscription Manager Repos
2931
rhsm_repository:

0 commit comments

Comments
 (0)