Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

This article describes how to deploy

...

modules from install json formatted list

The purpose of this job, is to give possibility for developers to

...

deploy a set of modules

Job: 

...

deployModulesFromJson

Parameters

Parameter

Type

Description

refresh_parametersbooleanService parameter for parameters refreshingrancher_cluster_name
CLUSTERlist<string>Name of cluster where project environment hosted
rancher_project_name
NAMESPACElist<string>Name of target environment where changes should be applied
config

CONFIG_

type

TYPE

list<string>Config for module deployment (cpu, memory, replica count, etc)
install_jsontextJson formatted install list of modulesenable_modulesboolean

True if module should be registered in okapi, false if only deploy without registration

tenant_id
DEFAULT_TENANT_IDstringTenant id where module should be installed
admin
INSTALL_
username
JSON
stringTenant admin user nameadmin_passwordsecure stringTenant admin user passwordload_referencebooleanTrue if reference data should be loaded during provisioningload_samplebooleanTrue if sample data should be loaded during provisioningreinstallbooleanTrue if force reinstall neededreindex_elastic_searchbooleanTrue if elasticsearch reindex neededrecreate_elastic_search_indexbooleanTrue if elasticsearch index should be recreated
textJson formatted install list of modules
LOAD_REFERENCEbooleanSet to true to load reference data during install
LOAD_SAMPLEbooleanSet to true to load sample data during install
SIMULATEbooleanSet to true to simulate installation before install
REINSTALLbooleanSet to true to re-enable modules during install
IGNORE_ERRORSbooleanSet to true to ignore errors during install

Steps

  1. Go to Jenkins
  2. Navigate to

...

  1. folioRancher -> folioDevTools -> moduleDeployment -> deployModulesFromJson
  2. Click Build with Parameters (if you didn't see this button, contact Kitfox team)
  3. Select parameters

      ...

        1. CLUSTER - Select name of the cluster where your rancher environment located

      ...

        1. NAMESPACE - Select name of target environment where module should be deployed

      ...

        1. CONFIG_

      ...

        1. TYPE - If needed select deployment config type

      ...

        1. DEFAULT_TENANT_ID - Set tenant id where module should be registered

      ...

        1. INSTALL_

      ...

        1. JSON - Type/Paste json formatted install list of modules
        2. LOAD_REFERENCE - Set to true if reference data needed

      ...

        1. LOAD_

      ...

        1. SAMPLE - Set to true if sample data needed

      ...

        1. SIMULATE - Set to true to simulate installation before install
        2. REINSTALL - Set to true if module should be reinstall (if same version already registered in okapi)

      ...

        1. IGNORE_

      ...

        1. ERRORS - Set to true

      ...

        1. to ignore errors during install
      1. Click Build button
      2. Wait for completion

      ...


      Example

      ...

      Image Added