Add role to validate minimum free disk space before installation#342
Add role to validate minimum free disk space before installation#342gorjant-pythian wants to merge 1 commit intogoogle:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gorjant-pythian The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Testing output links: With enough space: https://gist.github.com/gorjant-pythian/f73a6de7f435a6b1205d165c13e4b829 |
af30f01 to
2a2e191
Compare
Change Description:
disk-space pre-check. Extended .gitignore for disk-space role Molecule paths.
Solution Overview:
Central role: disk_space_check
Role integrations
Default thresholds (overridable):
Ansible 2.9 note: Dynamic role includes (include_role/import_role) do not honor role dependencies declared in meta/main.yml; dependencies are only applied when roles are listed under the play-level roles: key. Because several roles are included dynamically
and expect baseline variables from the common role, we added a conditional fallback that loads roles/common/defaults via include_vars if oracle_base/oracle_home/grid_home are not defined. This prevents undefined-variable errors while remaining a no-op when
those vars are already set by inventories, group_vars, or earlier roles. See Ansible 2.9 docs on role dependencies and include_role behavior: role dependencies, include_role, import_role, variable precedence, include_vars.
▌Can you please help me