Skip to content

Commit

Permalink
Merge pull request #8 from Onemind-Services-LLC/dev
Browse files Browse the repository at this point in the history
Release v0.0.2
  • Loading branch information
abhi1693 authored Jan 4, 2024
2 parents 87d186d + 2200ccc commit 2691275
Show file tree
Hide file tree
Showing 15 changed files with 259 additions and 351 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

test:
runs-on: ubuntu-latest
name: Runs plugin tests - NetBox v3.5
name: Runs plugin tests

steps:
- name: Checkout
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# NetBox Cloud Pilot

[NetBox Cloud Pilot](https://github.com/Onemind-Services-LLC/netbox-cloud-pilot) is a specialized plugin tailored for
NetBox, offering enhanced functionality for users on the
[CloudMyDC public Cloud platform (VAP)](https://app.xapp.cloudmydc.com/). This plugin simplifies the management of
[NetBox Cloud Pilot](https://github.com/Onemind-Services-LLC/netbox-cloud-pilot) is a specialized plugin tailored for
NetBox, offering enhanced functionality for users on the
[CloudMyDC public Cloud platform (VAP)](https://app.xapp.cloudmydc.com/). This plugin simplifies the management of
various NetBox components and infrastructure, streamlining processes and offering a more integrated experience.

NetBox Cloud Pilot, developed and maintained by [Onemind Services LLC](https://onemindservices.com/), introduces an
exclusive plugin store for NetBox. It caters to users with a diverse range of both free and paid plugins, enhancing the
NetBox Cloud Pilot, developed and maintained by [Onemind Services LLC](https://onemindservices.com/), introduces an
exclusive plugin store for NetBox. It caters to users with a diverse range of both free and paid plugins, enhancing the
NetBox experience.

## Features
Expand Down Expand Up @@ -35,5 +35,5 @@ For support, questions, or feedback, please file an issue on our [GitHub issue t

## Contributing

Contributions to NetBox Cloud Pilot are welcome! If you'd like to contribute, please fork the repository and submit a
Contributions to NetBox Cloud Pilot are welcome! If you'd like to contribute, please fork the repository and submit a
pull request. For more detailed information, refer to our contributing guidelines in the repository.
13 changes: 3 additions & 10 deletions configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def _read_secret(secret_name, default=None):
# Database connection SSLMODE
"CONN_MAX_AGE": int(environ.get("DB_CONN_MAX_AGE", "300")),
# Max database connection age
"DISABLE_SERVER_SIDE_CURSORS": environ.get(
"DB_DISABLE_SERVER_SIDE_CURSORS", "False"
).lower()
== "true",
"DISABLE_SERVER_SIDE_CURSORS": environ.get("DB_DISABLE_SERVER_SIDE_CURSORS", "False").lower() == "true",
# Disable the use of server-side cursors transaction pooling
}

Expand All @@ -66,10 +63,7 @@ def _read_secret(secret_name, default=None):
"PASSWORD": _read_secret("redis_password", environ.get("REDIS_PASSWORD", "")),
"DATABASE": int(environ.get("REDIS_DATABASE", 0)),
"SSL": environ.get("REDIS_SSL", "False").lower() == "true",
"INSECURE_SKIP_TLS_VERIFY": environ.get(
"REDIS_INSECURE_SKIP_TLS_VERIFY", "False"
).lower()
== "true",
"INSECURE_SKIP_TLS_VERIFY": environ.get("REDIS_INSECURE_SKIP_TLS_VERIFY", "False").lower() == "true",
},
"caching": {
"HOST": environ.get("REDIS_CACHE_HOST", environ.get("REDIS_HOST", "localhost")),
Expand All @@ -79,8 +73,7 @@ def _read_secret(secret_name, default=None):
environ.get("REDIS_CACHE_PASSWORD", environ.get("REDIS_PASSWORD", "")),
),
"DATABASE": int(environ.get("REDIS_CACHE_DATABASE", 1)),
"SSL": environ.get("REDIS_CACHE_SSL", environ.get("REDIS_SSL", "False")).lower()
== "true",
"SSL": environ.get("REDIS_CACHE_SSL", environ.get("REDIS_SSL", "False")).lower() == "true",
"INSECURE_SKIP_TLS_VERIFY": environ.get(
"REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY",
environ.get("REDIS_INSECURE_SKIP_TLS_VERIFY", "False"),
Expand Down
4 changes: 2 additions & 2 deletions netbox_cloud_pilot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

class NetBoxCloudPilot(PluginConfig):
name = metadata.get("Name").replace("-", "_")
verbose_name = metadata.get("Summary")
description = metadata.get("Long-Description")
verbose_name = metadata.get("Name")
description = metadata.get("Summary")
version = metadata.get("Version")
author = metadata.get("Author")
author_email = metadata.get("Author-email")
Expand Down
58 changes: 15 additions & 43 deletions netbox_cloud_pilot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
from .nb_settings import *

JELASTIC_API = "https://app.xapp.cloudmydc.com"
NETBOX_JPS_REPO = (
"https://raw.githubusercontent.com/Onemind-Services-LLC/netbox-jps/master"
)
NETBOX_JPS_REPO = "https://raw.githubusercontent.com/Onemind-Services-LLC/netbox-jps/master"
NODE_GROUP_CP = "cp"
NODE_GROUP_SQLDB = "sqldb"

Expand Down Expand Up @@ -174,7 +172,7 @@
help_text="Base path for URL patterns",
placeholder="/",
required=False,
initial="/",
initial=None,
),
Param(
key="EMAIL_FROM",
Expand Down Expand Up @@ -296,9 +294,7 @@
placeholder="{'filter_name': 'path.to.filter'}",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
initial={},
),
Param(
Expand Down Expand Up @@ -336,9 +332,7 @@
placeholder="{'location': '/var/netbox/media'}",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
initial={},
),
],
Expand Down Expand Up @@ -372,9 +366,7 @@
placeholder="[]",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
initial=[
[
{
Expand Down Expand Up @@ -500,19 +492,15 @@
help_text="List of custom data validators",
placeholder="[]",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="FIELD_CHOICES",
label="Field Choices",
help_text="List of custom field choices",
placeholder="[]",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
],
),
Expand All @@ -525,9 +513,7 @@
help_text="Default dashboard for users",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
initial=DEFAULT_DASHBOARD,
),
Param(
Expand All @@ -536,9 +522,7 @@
help_text="Default user preferences",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
initial={},
),
Param(
Expand Down Expand Up @@ -654,49 +638,39 @@
help_text="List of NetBox administrators",
placeholder="[('NetBox Admin', '[email protected]')]",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="BANNER_BOTTOM",
label="Banner Bottom",
help_text="Bottom banner text",
placeholder="Banner text",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="BANNER_LOGIN",
label="Banner Login",
help_text="Login banner text",
placeholder="Banner text",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="BANNER_TOP",
label="Banner Top",
help_text="Top banner text",
placeholder="Banner text",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="BANNER_MAINTENANCE",
label="Banner Maintenance",
help_text="Maintenance banner text",
placeholder="Banner text",
required=False,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="CENSUS_REPORTING_ENABLED",
Expand Down Expand Up @@ -822,9 +796,7 @@
placeholder="{'queue_name': 'queue_name'}",
required=False,
field=forms.JSONField,
field_kwargs={
"widget": forms.Textarea(attrs={"class": "vLargeTextField"})
},
field_kwargs={"widget": forms.Textarea(attrs={"class": "vLargeTextField"})},
),
Param(
key="RELEASE_CHECK_URL",
Expand Down
Loading

0 comments on commit 2691275

Please sign in to comment.