Closed hyweldaniels closed 1 year ago
The logic shows that if you have V4_CFG_LICENSE
or V4_CFG_DEPLOYMENT_ASSESTS
set it should not download the viya-order-cli
From your comment you appear to be setting both of these correct?
Based on the contents of assets.yaml I figured that if either of V4_CFG_LICENSE or V4_CFG_DEPLOYMENT_ASSETS were not set/pre-downloaded, then the orders CLI was needed to download them. So I set the logic so that it either of them were not set in ansible-vars.yaml, then assume we need to download them and so need the orders CLI.
You logic is right based on the current docs; however, logic would indicate that you should set both if you are controlling the assets and license from a dark site. So the or
statement you have should suffice. You can fork the repo and then create a pull request asking for the change with the code snippet you have above modified in your fork.
Closing, fixed in the 6.2.0 release https://github.com/sassoftware/viya4-deployment/releases/tag/6.2.0
When deploying to a dark site, the V4_CFG_DEPLOYMENT_ASSETS and V4_CFG_LICENSE configuration options are used to provide the paths to pre-downloaded assets and a pre-downloaded license file respectively. The expectation is that when these are used, the viya4-orders-cli should not be required.
There is conditional logic in https://github.com/sassoftware/viya4-deployment/blob/main/roles/vdm/tasks/assets.yaml to ensure that the assets and license file are only pulled when needed. However the viya4-orders-cli is always downloaded, regardless; https://github.com/sassoftware/viya4-deployment/blob/main/roles/vdm/tasks/assets.yaml#L3
For dark sites with no external access, this task will fail. Can a suitable conditional statement be added so that the download of the viya4-orders-cli is only attempted when required (i.e. when no assets or no license is specified in ansible-vars.yaml) ?
An example change is included below, which I have tested and verified.