| 1 |
#%Module |
| 2 |
|
| 3 |
# hide modules only loaded as dependency |
| 4 |
module-hide --soft deplibA |
| 5 |
module-hide --soft --hidden-loaded deplibB |
| 6 |
|
| 7 |
# hide modules not from user's scientific field |
| 8 |
module-hide --soft --not-group bio bioappA bioappB |
| 9 |
module-hide --soft --not-group chem chemappA chemappB |
| 10 |
|
| 11 |
# forbid use of modules unless software user agreement is signed |
| 12 |
set msg {User agreement for ChemAppA application must be validated to use it |
| 13 |
1. Please connect to https://ChemAppA.example.org |
| 14 |
2. Read the Term of Use and sign it |
| 15 |
3. Send back this signed agreement to our service desk} |
| 16 |
module-forbid --not-group chemappA --message $msg chemappA |
| 17 |
|
| 18 |
# fully hide and forbid modules unless user owns a license token |
| 19 |
module-hide --hard --not-group appC appC |
| 20 |
set msg {Access is restricted to owners of license token} |
| 21 |
module-forbid --not-group appC --message $msg appC |
| 22 |
|
| 23 |
# test new version of chemappB prior general availability |
| 24 |
module-hide --before 2020-11-18 --not-group pilot chemappB/2.0 |
| 25 |
|
| 26 |
# decommission of old version of appA |
| 27 |
set nearmsg {appA/1.0 will be decommissioned, please use appA/2.0} |
| 28 |
set msg {appA/1.0 is decommissioned, please use appA/2.0} |
| 29 |
module-hide --hard --after 2020-11-18 --not-group eol appA/1.0 |
| 30 |
module-forbid --after 2020-11-18 --not-group eol \ |
| 31 |
--nearly-message $nearmsg --message $msg appA/1.0 |