Skip to content

Commit

Permalink
Update drift manager for min version and uninstall update
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks committed Jan 21, 2024
1 parent 1da31ed commit 2fe78c4
Show file tree
Hide file tree
Showing 14 changed files with 355 additions and 283 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
fail-fast: true
matrix:
python-version: ["3.11"]
nautobot-version: ["1.6.8"]
nautobot-version: ["1.6.0"]
env:
INVOKE_NAUTOBOT_DESIGN_BUILDER_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_DESIGN_BUILDER_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
fail-fast: true
matrix:
python-version: ["3.11"]
nautobot-version: ["1.6.8"]
nautobot-version: ["1.6.0"]
env:
INVOKE_NAUTOBOT_DESIGN_BUILDER_PYTHON_VER: "${{ matrix.python-version }}"
INVOKE_NAUTOBOT_DESIGN_BUILDER_NAUTOBOT_VER: "${{ matrix.nautobot-version }}"
Expand Down Expand Up @@ -175,14 +175,13 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.11"]
db-backend: ["postgresql"]
nautobot-version: ["1.6", "stable"]
include:
- python-version: "3.11"
db-backend: "postgresql"
nautobot-version: "1.6.8"
nautobot-version: "1.6.0"
- python-version: "3.11"
db-backend: "mysql"
nautobot-version: "stable"
Expand Down
4 changes: 2 additions & 2 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# -------------------------------------------------------------------------------------
# !!! USE CAUTION WHEN MODIFYING LINES BELOW

# Accepts a desired Nautobot version as build argument, default to 1.6.8
ARG NAUTOBOT_VER="1.6.8"
# Accepts a desired Nautobot version as build argument, default to 1.6.0
ARG NAUTOBOT_VER="1.6.0"

# Accepts a desired Python version as build argument, default to 3.11
ARG PYTHON_VER="3.11"
Expand Down
2 changes: 1 addition & 1 deletion docs/admin/compatibility_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

| Nautobot Design Builder Version | Nautobot First Support Version | Nautobot Last Support Version |
| ------------- | -------------------- | ------------- |
| 1.0.X | 1.6.8 | 2.9999 |
| 1.0.X | 1.6.0 | 2.9999 |
2 changes: 1 addition & 1 deletion docs/admin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Here you will find detailed instructions on how to **install** and **configure**

## Prerequisites

- The plugin is compatible with Nautobot 1.6.8 and higher.
- The plugin is compatible with Nautobot 1.6.0 and higher.
- Databases supported: PostgreSQL, MySQL

!!! note
Expand Down
8 changes: 0 additions & 8 deletions docs/admin/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

Here you will find any steps necessary to cleanly remove the App from your Nautobot environment.

## Database Cleanup

Prior to removing the plugin from the `nautobot_config.py`, run the following command to roll back any migration specific to this plugin.

```shell
nautobot-server migrate nautobot_app_design_builder zero
```

## Remove App configuration

Remove the configuration you added in `nautobot_config.py` from `PLUGINS` & `PLUGINS_CONFIG`.
12 changes: 6 additions & 6 deletions docs/dev/dev_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a quick reference guide if you're already familiar with the development

The [Invoke](http://www.pyinvoke.org/) library is used to provide some helper commands based on the environment. There are a few configuration parameters which can be passed to Invoke to override the default configuration:

- `nautobot_ver`: the version of Nautobot to use as a base for any built docker containers (default: 1.6.8)
- `nautobot_ver`: the version of Nautobot to use as a base for any built docker containers (default: 1.6.0)
- `project_name`: the default docker compose project name (default: `nautobot-design-builder`)
- `python_ver`: the version of Python to use as a base for any built docker containers (default: 3.11)
- `local`: a boolean flag indicating if invoke tasks should be run on the host or inside the docker containers (default: False, commands will be run in docker containers)
Expand Down Expand Up @@ -179,7 +179,7 @@ The first thing you need to do is build the necessary Docker image for Nautobot
#14 exporting layers
#14 exporting layers 1.2s done
#14 writing image sha256:2d524bc1665327faa0d34001b0a9d2ccf450612bf8feeb969312e96a2d3e3503 done
#14 naming to docker.io/nautobot-design-builder/nautobot:1.6.8-py3.11 done
#14 naming to docker.io/nautobot-design-builder/nautobot:1.6.0-py3.11 done
```

### Invoke - Starting the Development Environment
Expand Down Expand Up @@ -210,9 +210,9 @@ This will start all of the Docker containers used for hosting Nautobot. You shou
```bash
➜ docker ps
****CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ee90fbfabd77 nautobot-design-builder/nautobot:1.6.8-py3.11 "nautobot-server rqw…" 16 seconds ago Up 13 seconds nautobot_design_builder_worker_1
b8adb781d013 nautobot-design-builder/nautobot:1.6.8-py3.11 "/docker-entrypoint.…" 20 seconds ago Up 15 seconds 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp nautobot_design_builder_nautobot_1
d64ebd60675d nautobot-design-builder/nautobot:1.6.8-py3.11 "mkdocs serve -v -a …" 25 seconds ago Up 18 seconds 0.0.0.0:8001->8080/tcp, :::8001->8080/tcp nautobot_design_builder_docs_1
ee90fbfabd77 nautobot-design-builder/nautobot:1.6.0-py3.11 "nautobot-server rqw…" 16 seconds ago Up 13 seconds nautobot_design_builder_worker_1
b8adb781d013 nautobot-design-builder/nautobot:1.6.0-py3.11 "/docker-entrypoint.…" 20 seconds ago Up 15 seconds 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp nautobot_design_builder_nautobot_1
d64ebd60675d nautobot-design-builder/nautobot:1.6.0-py3.11 "mkdocs serve -v -a …" 25 seconds ago Up 18 seconds 0.0.0.0:8001->8080/tcp, :::8001->8080/tcp nautobot_design_builder_docs_1
e72d63129b36 postgres:13-alpine "docker-entrypoint.s…" 25 seconds ago Up 19 seconds 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp nautobot_design_builder_postgres_1
96c6ff66997c redis:6-alpine "docker-entrypoint.s…" 25 seconds ago Up 21 seconds 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp nautobot_design_builder_redis_1
```
Expand Down Expand Up @@ -410,7 +410,7 @@ namespace.configure(
{
"nautobot_design_builder": {
...
"nautobot_ver": "1.6.8",
"nautobot_ver": "1.6.0",
...
}
}
Expand Down
2 changes: 1 addition & 1 deletion invoke.example.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
nautobot_design_builder:
project_name: "nautobot-design-builder"
nautobot_ver: "1.6.8"
nautobot_ver: "1.6.0"
local: false
python_ver: "3.11"
compose_dir: "development"
Expand Down
2 changes: 1 addition & 1 deletion invoke.mysql.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
nautobot_design_builder:
project_name: "nautobot-design-builder"
nautobot_ver: "1.6.8"
nautobot_ver: "1.6.0"
local: false
python_ver: "3.11"
compose_dir: "development"
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ nav:
- Code Reference:
- "dev/code_reference/index.md"
- Package: "dev/code_reference/package.md"
- Design Job: "dev/code_reference/design_job.md"
- Context: "dev/code_reference/context.md"
- Design Builder: "dev/code_reference/design.md"
- Design Job: "dev/code_reference/design_job.md"
- Jinja Rendering: "dev/code_reference/jinja2.md"
- Template Extensions: "dev/code_reference/ext.md"
- Util: "dev/code_reference/util.md"
Expand Down
2 changes: 1 addition & 1 deletion nautobot_design_builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NautobotDesignBuilderConfig(NautobotAppConfig):
description = "Nautobot app that uses design templates to easily create data objects in Nautobot with minimal input from a user.."
base_url = "design-builder"
required_settings = []
min_version = "1.6.8"
min_version = "1.6.0"
max_version = "2.9999"
default_settings = {}
caching_config = {}
Expand Down
34 changes: 0 additions & 34 deletions nautobot_design_builder/tests/test_basic.py

This file was deleted.

Loading

0 comments on commit 2fe78c4

Please sign in to comment.