-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump the python-dependencies group with 4 updates (#288)
* Bump the python-dependencies group with 4 updates --- updated-dependencies: - dependency-name: pydantic-settings dependency-type: direct:production dependency-group: python-dependencies - dependency-name: sqlalchemy dependency-type: direct:production dependency-group: python-dependencies - dependency-name: sphinx-rtd-theme dependency-type: direct:development dependency-group: python-dependencies - dependency-name: sphinx-jsonschema dependency-type: direct:development dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * Drops sphinx pydantic --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Perrefort <[email protected]>
- Loading branch information
1 parent
a98acc5
commit 539ed5b
Showing
3 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,76 @@ If this file does not exist, the application will run using the default settings | |
A full list of available settings and their defaults is provided below. | ||
|
||
|
||
Core Settings | ||
............. | ||
|
||
.. important:: The top level ``file_systems`` field is a nested field and entries | ||
should adhere to the :ref:`#/$defs/filesystemschema` schema outlined below. | ||
should adhere to the :ref:`fs-label` schema outlined below. | ||
|
||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| Setting | Default Value | Description | | ||
+==================+=========================================+=========================================================+ | ||
| ihome_quota_path | ``/ihome/crc/scripts/ihome_quota.json`` | Path to ihome storage information. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| file_systems | ``[]`` | List of file systems to examine. See the | | ||
| | | :ref:`fs-label` section for details | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| uid_blacklist | ``[0]`` | Do not notify users with these UID values. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| gid_blacklist | ``[0]`` | Do not notify groups with these GID values. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| disk_timeout | ``30`` | Give up on checking a file system after | | ||
| | | the given number of seconds. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| log_level | ``INFO`` | Application logging level. | | ||
| log_level | ``INFO`` | One of ``DEBUG``, ``INFO``, ``WARNING``, or ``ERROR``. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| log_path | | Optionally log application events to a | | ||
| | | file. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| smtp_host | Matches system default. | Name of the SMTP host server. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| smtp_port | Matches system default. | Port for the SMTP server. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| db_url | ``sqlite:///notifier_data.db`` | URL for the application database. By | | ||
| | | default, a SQLITE database is created in | | ||
| | | the working directory. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| email_from | ``[email protected]`` | From address for automatically generated | | ||
| | | emails. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| email_subject | ``CRC Disk Usage Alert`` | Subject line for automatically generated | | ||
| | | emails. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| email_domain | ``@domain.com`` | String to append to usernames when | | ||
| | | generating user email addresses. The | | ||
| | | leading ``@`` is optional. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| admin_emails | ``[]`` | Admin users to contact when the | | ||
| | | application encounters a critical issue. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
| debug | ``False`` | Disable database commits and email | | ||
| | | notifications. Useful for development | | ||
| | | and testing. | | ||
+------------------+-----------------------------------------+---------------------------------------------------------+ | ||
|
||
.. _fs-label: | ||
|
||
File System Settings | ||
.................... | ||
|
||
The following fields are required when defining which file systems to scan. | ||
|
||
.. pydantic:: quota_notifier.settings.SettingsSchema | ||
+------------------------+---------------------------------------------------------------------------------------------+ | ||
| Setting | Description | | ||
+========================+=============================================================================================+ | ||
| name | Human-readable name for the file system. | | ||
+------------------------+---------------------------------------------------------------------------------------------+ | ||
| path | Absolute path to the mounted file system. | | ||
+------------------------+---------------------------------------------------------------------------------------------+ | ||
| type | Type of the file system. Options: ``ihome``, ``generic``, ``beegfs``. If modifying options, | | ||
| | update QuotaType in ``quota_notifier.disk_utils.QuotaFactory``. | | ||
+------------------------+---------------------------------------------------------------------------------------------+ | ||
| thresholds | Usage percentages to issue notifications for. | | ||
+------------------------+---------------------------------------------------------------------------------------------+ | ||
|
||
.. _#/$defs/filesystemschema: | ||
.. pydantic:: quota_notifier.settings.FileSystemSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters