From e2cc9386fb0ee5e9cd3b3789eefae294f6ec5653 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Tue, 18 May 2021 09:32:48 +0200 Subject: [PATCH] Secrets are removed in Netbox 2.12 --- initializers/secret_roles.yml | 4 ---- startup_scripts/310_secret_roles.py | 15 --------------- 2 files changed, 19 deletions(-) delete mode 100644 initializers/secret_roles.yml delete mode 100644 startup_scripts/310_secret_roles.py diff --git a/initializers/secret_roles.yml b/initializers/secret_roles.yml deleted file mode 100644 index 239906a..0000000 --- a/initializers/secret_roles.yml +++ /dev/null @@ -1,4 +0,0 @@ -# - name: Super Secret Passwords -# slug: super-secret -# - name: SNMP Communities -# slug: snmp diff --git a/startup_scripts/310_secret_roles.py b/startup_scripts/310_secret_roles.py deleted file mode 100644 index 02dcd88..0000000 --- a/startup_scripts/310_secret_roles.py +++ /dev/null @@ -1,15 +0,0 @@ -import sys -from secrets.models import SecretRole - -from startup_script_utils import load_yaml - -secret_roles = load_yaml("/opt/netbox/initializers/secret_roles.yml") - -if secret_roles is None: - sys.exit() - -for params in secret_roles: - secret_role, created = SecretRole.objects.get_or_create(**params) - - if created: - print("🔑 Created Secret Role", secret_role.name)