Add cofig-assign and config-deploy to cds workflow
[demo.git] / heat / vFW_CNF_CDS / automation / README.md
1 # vFW_CNF_CDS use case automation
2
3 0. Make sure you have python 3.8.x installed and default interpreter, what is required by onap-pythonsdk
4 1. Install required packages with pipenv `pipenv install`
5 2. Run virtual environment `pipenv shell`. In case of problems use `--fancy` option
6    
7    **In case of problems with pipenv:** `venv` can be used as well. In that case, please install all required python packages in correct version according the list in `Pipfile`
8 3. Add kubeconfig file for k8s cluster that will host vFW
9    - `artifacts/cluster_kubeconfig`
10 4. Prepare onboarding packages `cd ../templates/ && make && cd ../automation/`
11 5. Modify `config.py`:
12    - NATIVE - enables native helm orchestration path in SO
13    - CLOUD_REGION
14    - GLOBAL_CUSTOMER_ID
15    - VENDOR
16    - SERVICENAME
17    - CUSTOMER_RESOURCE_DEFINITIONS - add list of CRDs to be installed on non KUD k8s cluster
18    - VNF_PARAM_LIST - list of parameters to pass for VNF creation process
19    - VF_MODULE_PARAM_LIST - list of parameters to pass for VF Module creation
20 6. __Important:__ Before running python scripts, some settings for `onapsdk` with information about ONAP endpoints (and socks) have to be exported. 
21    All settings for ONAP instance are located in `automation/onap_settings.py` file. To export that settings please run command inside `pipenv` or `venv` shell
22    ```shell
23    (automation) ubuntu@onap:~/automation$ export ONAP_PYTHON_SDK_SETTINGS="onap_settings"
24    ```
25 7. Run script `python create_k8s_region.py` in order to create **k8s cloud region**
26 8. Onboard **vFW** `python onboard.py`
27 9. Instantiate **vFW** `python instantiate.py`
28 10. Once test is done, **vFW** service instance can be deleted with `python delete.py` command
29