Skip to content

Commit

Permalink
Merge pull request #61 from cdot65/59-enhancement-request-support-for…
Browse files Browse the repository at this point in the history
…-configuration-files-to-override-default-settings

Override script execution default settings
  • Loading branch information
cdot65 authored Jan 28, 2024
2 parents 77226a9 + c23a1f5 commit 964b33d
Show file tree
Hide file tree
Showing 11 changed files with 2,294 additions and 1,945 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ cython_debug/
# ignore local dev
assurance
logs
pan_os_upgrade/settings.yaml
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
{
"cSpell.words": [
"adminpassword",
"apikey",
"defusedxml",
"dynaconf",
"Dynaconf",
"hhotfix",
"highavailability",
"hostnames",
"levelname",
"malformatted",
"nics",
"NXDOMAIN",
"proxied",
"pydantic",
"Pydantic",
"refreshall",
"typer",
"Typer",
"Typer's",
"unsynchronized",
"Xapi",
"xmltodict"
]
Expand Down
288 changes: 20 additions & 268 deletions README.md

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ RUN apk add --no-cache gcc musl-dev libffi-dev make
# Set the working directory in the container to /app
WORKDIR /app

# Add settings.yaml to the container at /app
ADD settings.yaml /app

# Install any needed packages specified in requirements.txt
# Note: The requirements.txt should contain pan-os-upgrade==0.4.1
RUN pip install --no-cache-dir pan-os-upgrade==0.4.1
# Note: The requirements.txt should contain pan-os-upgrade==0.4.2
RUN pip install --no-cache-dir pan-os-upgrade==0.4.2

# Set the locale to avoid issues with emoji rendering
ENV LANG C.UTF-8
Expand Down
1 change: 1 addition & 0 deletions docker/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
13 changes: 12 additions & 1 deletion docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

Welcome to the release notes for the `pan-os-upgrade` tool. This document provides a detailed record of changes, enhancements, and fixes in each version of the tool.

## Version 0.4.2

**Release Date:** *<20240127>*

### What's New

- Created mechanism to override the default settings of `pan-os-upgrade`
- Added support for new CLI argument, `pan-os-upgrade settings`
- Created a banner message to help with usability

## Version 0.4.1

**Release Date:** *<20240127>*

<!-- trunk-ignore(markdownlint/MD024) -->
### What's New

- Resolved an issue where missing fields in session snapshots for older PAN-OS versions caused errors in Pydantic models
Expand Down Expand Up @@ -133,4 +144,4 @@ Welcome to the release notes for the `pan-os-upgrade` tool. This document provid

---

For more detailed information on each release, visit the [GitHub repository](https://github.com/cdot65/pan-os-upgrade/releases) or check the [commit history](https://github.com/cdot65/pan-os-upgrade/commits/main).
For more detailed information on each release, visit the [GitHub repository](https://github.com/cdot65/pan-os-upgrade/releases) or check the [commit history](https://github.com/cdot65/pan-os-upgrade/commits/main).
354 changes: 257 additions & 97 deletions docs/user-guide/docker/execution.md

Large diffs are not rendered by default.

237 changes: 152 additions & 85 deletions docs/user-guide/python/execution.md

Large diffs are not rendered by default.

1,701 changes: 1,009 additions & 692 deletions pan_os_upgrade/upgrade.py

Large diffs are not rendered by default.

1,621 changes: 822 additions & 799 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pan-os-upgrade"
version = "0.4.1"
version = "0.4.2"
description = "Python script to automate the upgrade process of PAN-OS firewalls."
authors = ["Calvin Remsburg <[email protected]>"]
license = "Apache 2.0"
Expand All @@ -15,6 +15,8 @@ pydantic = "^2.5.3"
typer = { extras = ["all"], version = "^0.9.0" }
setuptools = "^69.0.3"
dnspython = "^2.5.0"
dynaconf = "^3.2.4"
pyyaml = "^6.0.1"

[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
Expand Down

0 comments on commit 964b33d

Please sign in to comment.