cdot65/pan-os-upgrade

Enhancement Request: Support for Configuration Files to Override Default Settings

Closed this issue · 0 comments

Summary

This issue proposes the addition of support for external configuration files to override default settings within the application. The ability to use configuration files would offer users more flexibility and control over the application's behavior without altering the codebase.

Current Behavior

Currently, the application relies on hard-coded default settings or requires parameters to be specified via the command line or environment variables. This approach can limit usability and flexibility, especially in complex deployments or when managing multiple instances of the application.

Desired Behavior

Introduce the capability to read from external configuration files (e.g., YAML, JSON, INI) that users can create and maintain separately. The application should prioritize these settings over the default ones, allowing for easy customization of behavior, features, and operational parameters.

Use Cases

Custom Configuration: Users can specify custom settings tailored to their specific use cases without modifying the application code.
Environment-Specific Settings: Enable different configurations for development, testing, and production environments, improving deployment flexibility.
Easier Management: Simplify the management of settings for instances running in different contexts or with varying requirements.

Potential Benefits

Enhanced Usability: Makes it easier for users to customize the application to their needs.
Increased Flexibility: Allows for more granular control over application behavior without the need for code changes.
Improved Scalability: Facilitates managing configurations for multiple instances or environments.
Suggested Implementation:

Determine the preferred formats for the configuration files (YAML, JSON, INI, etc.).
Implement a configuration management module to parse and apply settings from these files.
Define a clear hierarchy for settings precedence (e.g., command-line arguments > configuration file > defaults).
Provide documentation and examples on creating and using configuration files.

Request for Comments

Feedback is sought from the community on this proposal, including any concerns, alternative approaches, or additional features that should be considered. Contributions to the design and implementation are also welcome.