Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 1 | --- |
| 2 | ################################### |
| 3 | # Resources configuration entries # |
| 4 | ################################### |
| 5 | |
| 6 | # Resource host information |
| 7 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 8 | # Directory on resource host where tars with resources are present |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 9 | resources_dir: |
| 10 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 11 | # tarfile name within resources_dir directory with offline infrastructure binaries. |
| 12 | # Content of APP_BINARY_RESOURCES_DIR (defined in package.conf) packaged by package.sh to single tar file. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 13 | resources_filename: |
| 14 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 15 | # tarfile name within resources_dir directory with auxiliary resources. |
| 16 | # Content of APP_AUX_BINARIES (defined in package.conf) packaged by package.sh to single tar file. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 17 | # the purpose of auxiliary resources is to provide user an interface |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 18 | # to distribute to infra node tar file with application specific files. |
| 19 | # Docker images in tar format are currently the only supported content of aux_resources package. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 20 | aux_resources_filename: |
| 21 | |
| 22 | # resources can be exported via nfs |
| 23 | # default is no - client will use ssh |
| 24 | # if set yes but nfs-utils is missing then fallback to ssh |
| 25 | resources_on_nfs: no |
| 26 | |
| 27 | # Infra node specific information |
| 28 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 29 | # Offline solution source data binaries (resources_filename tar) will be |
| 30 | # decompressed in this directory on target infra server. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 31 | # e.g. app_data_path: /opt/onap |
| 32 | app_data_path: |
| 33 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 34 | # Path for auxiliary data in target infra server. |
| 35 | # Data from resource host defined by aux_resources_filename variable is placed to this directory. |
| 36 | # Currently docker images in tar format are supported (see runtime_images parameter). |
| 37 | # Could be used for other kind of application specific data also. |
| 38 | # e.g. aux_data_path: /opt/onap/my_extra_pods_docker_images |
| 39 | aux_data_path: "{{ app_data_path }}/runtime_images_source_dir" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 40 | |
| 41 | |
| 42 | ########################################## |
| 43 | # Offline Infrastructure specific params # |
| 44 | ########################################## |
| 45 | |
| 46 | # information from which rootCA is created |
| 47 | # e.g. |
| 48 | # organization_name: Samsung |
| 49 | # state_or_province_name: Poland |
| 50 | # country_name: PL |
| 51 | # locality_name: Krakow |
| 52 | certificates: |
| 53 | organization_name: |
| 54 | state_or_province_name: |
| 55 | country_name: |
| 56 | locality_name: |
| 57 | |
| 58 | # Force k8s cluster redeploy if it exists already |
| 59 | # Default value is to allow redeploy |
| 60 | redeploy_k8s_env: yes |
| 61 | |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 62 | # Offline solution is deploying app specific rpm repository and requires some name |
| 63 | # also for k8s cluster |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 64 | # e.g. app_name: onap |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 65 | app_name: |
| 66 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 67 | # runtime_images provides an way to insert docker images |
| 68 | # into nexus during infrastructure playbook execution (populated to nexus at runtime). |
| 69 | # images specified must be available inside aux_resources_filename |
| 70 | # tar file that is extracted by installer into aux_data_path directory in infra server. |
| 71 | # Source format of an image is .tar file in aux_data_path directory and all .tar |
| 72 | # files in that dir are checked to match runtime_images definition. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 73 | # if runtime_images are not specified nothing is inserted on top of existing |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 74 | # prebuilt nexus blob in installation time. |
| 75 | # Component name must match with tar filename! |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 76 | # e.g. |
Samuli Silvius | f6f5fc4 | 2019-02-13 11:00:39 +0200 | [diff] [blame] | 77 | # aaa/bbb-component-0.0.1.tar are expected in aux_data_path for component images. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 78 | #runtime_images: |
Samuli Silvius | f6f5fc4 | 2019-02-13 11:00:39 +0200 | [diff] [blame] | 79 | # aaa-component-0.0.1: |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 80 | # registry: "nexus3.onap.org:10001" |
Petr Ospalý | 170d94b | 2018-12-20 16:40:58 +0100 | [diff] [blame] | 81 | # path: "/onap/components/aaa-component" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 82 | # tag: "latest" |
Samuli Silvius | f6f5fc4 | 2019-02-13 11:00:39 +0200 | [diff] [blame] | 83 | # bbb-component-0.0.1: |
| 84 | # registry: "nexus3.onap.org:10001" |
| 85 | # path: "/onap/components/bbb-component" |
| 86 | # tag: "latest" |
| 87 | runtime_images: {} |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 88 | |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 89 | ############################### |
| 90 | # Application specific params # |
| 91 | ############################### |
| 92 | |
Samuli Silvius | 51d7d01 | 2019-03-19 08:45:54 +0200 | [diff] [blame^] | 93 | # App Helm charts directory location in installation package |
| 94 | # (local path for the ansible process). |
| 95 | # The path locates relative inside of this sw package |
| 96 | # installation folder and must be visible for ansible docker/chroot |
Samuli Silvius | fe11111 | 2019-02-05 09:45:24 +0200 | [diff] [blame] | 97 | # process to find directory and to transfer it into machine (infra node) running |
| 98 | # Helm repository. |
| 99 | # Content of the folder must be Helm chart directories of the app with Makefile. |
| 100 | # In case of ONAP OOM it would be <oom_repo>/kubernetes folder content. |
| 101 | # NOTE: This default value should not be changed if not really needed and it |
| 102 | # must match with the variable "HELM_CHARTS_DIR_IN_PACKAGE" value in package.sh |
| 103 | # script! |
Samuli Silvius | 51d7d01 | 2019-03-19 08:45:54 +0200 | [diff] [blame^] | 104 | app_helm_charts_install_directory: application/helm_charts |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 105 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 106 | # Specify target dir where helm charts are copied into on infra node. |
| 107 | # (same as content of "app_helm_charts_install_directory" copied by installer to this dir.) |
| 108 | # This must be directory with all charts and Makefile. |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 109 | # e.g. app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts" |
Samuli Silvius | fe11111 | 2019-02-05 09:45:24 +0200 | [diff] [blame] | 110 | app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 111 | |
| 112 | # Main Helm chart to install |
| 113 | # e.g. app_helm_chart_name: onap |
Bartek Grzybowski | 652e41d | 2019-03-04 15:34:19 +0100 | [diff] [blame] | 114 | app_helm_chart_name: |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 115 | |
Michal Ptacek | 271cf3f | 2019-01-17 20:39:46 +0000 | [diff] [blame] | 116 | # Targets for helm charts repository build |
| 117 | # e.g. for ONAP Casablanca |
| 118 | # app_helm_build_targets: |
| 119 | # - all |
| 120 | # - onap |
| 121 | app_helm_build_targets: |
| 122 | |
| 123 | # Directory with helm plugins |
| 124 | # It's an optional parameter used e.g. in OOM Casablanca |
Samuli Silvius | fe11111 | 2019-02-05 09:45:24 +0200 | [diff] [blame] | 125 | # app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/" |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 126 | app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/" |
Michal Ptacek | 271cf3f | 2019-01-17 20:39:46 +0000 | [diff] [blame] | 127 | |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 128 | # Helm release name (visible in POD names) used by Helm |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 129 | # e.g. app_helm_release_name: onap |
| 130 | app_helm_release_name: "{{ app_name }}" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 131 | |
| 132 | # Kubernetes namespace where application is installed |
| 133 | # e.g. app_kubernetes_namespace: onap |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 134 | app_kubernetes_namespace: "{{ app_name }}" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 135 | |
| 136 | # Optional application custom Ansible roles name for pre and post install logic. |
| 137 | # Location of additional custom roles is defined in ansible.cfg with roles_path. |
Bartek Grzybowski | 652e41d | 2019-03-04 15:34:19 +0100 | [diff] [blame] | 138 | # e.g. application_pre_install_role: "my-pre-install-role" |
Petr Ospalý | fb2d0cb | 2018-12-19 14:22:00 +0100 | [diff] [blame] | 139 | application_pre_install_role: |
| 140 | application_post_install_role: |
| 141 | |
| 142 | # any other application specific params can be specified in this file |
| 143 | # e.g. |
| 144 | # onap_values: |
| 145 | # openStackKeyStoneUrl: "http://1.2.3.4:5000" |
| 146 | # openStackServiceTenantName: "services" |
| 147 | # openStackDomain: "Default" |
| 148 | # openStackUserName: "admin" |
| 149 | # openStackEncryptedPassword: "f7920677e15e2678b0f33736189e8965" |