Package: gandalf-cmt
Gandalf is an open-source tool that can be used for configuration management for any use cases. This is an open-source project however, authorization rights and confidential modules belongs to the owner itself. Self written modules based on Python3 works with the tool.Prerequisite:WindowsBefore using the tool, make sure to manually set environment in Windows to the path:C:/Users/$USERNAME/AppData/Local/Programs/Python/Python<latest version>/Lib/gandalf-cli. Perform this through the Windows UI. Will make this process easier and automnatic in future releases.LinuxIn the case of Linux based systems, set environment variable path and provide execution permission:PATH=$PATH:/usr/local/Lib/gandalf-cli/
chmod774/usr/local/Lib/gandalf-cli/gandalfCommand usage:gandalf --spell [yaml file]RequirementsPython >= 3.9ModulesNameTypeProgressCommentsmav_bedc_cu_moduleConfidentialStableUsed for CUCP and CUUP based deployment configuration changes in application_config.json, config.json.mav_bedc_cu_values_yaml_filesConfidentialBetaUsed to insert new line changes to values.yaml in CUCP and CUUP.mav_bedc_mgmt_moduleConfidentialStableUsed for BEDC MGMT based deployment configuration changes in application_config.json, config.json.mav_bedc_mgmt_values_yaml_filesConfidentialBetaUsed to insert new line changes to values.yaml in BEDC MGMTmav_increment_pipeline_versionConfidentialStableUsed to incrementing PIPELINE_ID value in bulk-pipeline-trigger.json file.mav_ndc_cms_backupConfidentialStableUsed to take mCMS backup from any EKS clusters.Module Parametersmav_bedc_cu_moduleParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.deleteChoices:falseortrueIf delete is set tofalse, then HELM delete and redeploy wont happen. If delete is set toyes, then HELM delete and redeployment will happen.redeployChoices:falseortrueIf redeploy is set tofalse, then HELM upgrade wont happen. If redeploy is set toyes, then HELM updrade will happen.sanity_checkChoices:disabledorenabledIf sanity_check flag is set todisabled, then sanity check wont run. If sanity_check flag is set toenabled, then sanity check will run.validation_checkChoices:disabledorenabledIf validation_check flag is set todisabled, then validation check wont run. If validation_check flag is set toenabled, then validation check will run.new_chart_versionProvide the name of the new chart versionnew_cnf_package_versionProvide the name of the new cnf_package_versionExample---eks_level_folder_selection:allgrimoire:-spell:Update application_config.json and config.jsonmodule:mav_bedc_cu_moduleattributes:required:yespath:D:\Repo\config\proddelete:falseredeploy:falsesanity_check:disabledvalidation_check:disablednew_chart_version:new_helm_chartnew_cnf_package_version:new_cnf_package.zipmav_bedc_cu_values_yaml_filesParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.drop_versionProvide the name of the drop.line_numberProvide the line number of the values.yaml.changeProvide the line change. Input will only accept one line at a time.Example---eks_level_folder_selection:allgrimoire:-spell:Updating values.yaml files with latest changesmodule:mav_bedc_cu_values_yaml_filesattributes:required:yespath:D:\Repo\config\proddrop_version:new_drop_versionline_number:142change:'-destination:"10.0.0.1/0"'mav_bedc_mgmt_moduleParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.release_nameProvide the name of the release.deleteChoices:falseortrueIf delete is set tofalse, then HELM delete and redeploy wont happen. If delete is set toyes, then HELM delete and redeployment will happen.redeployChoices:falseortrueIf redeploy is set tofalse, then HELM upgrade wont happen. If redeploy is set toyes, then HELM updrade will happen.validation_checkChoices:disabledorenabledIf sanity_check flag is set todisabled, then validation check wont run. If validation_check flag is set toenabled, then validation check will run.new_chart_versionProvide the name of the new chart versionnew_cnf_package_versionProvide the name of the new cnf_package_versionExample---eks_level_folder_selection:allgrimoire:-spell:Updating application_config.json for NF1module:mav_bedc_mgmt_moduleattributes:required:yespath:D:\Repo\config\prodrelease_name:mtcildelete:trueredeploy:falsevalidation_check:disablednew_chart_version:new_chart_03new_cnf_package_version:new_cnf_package_v2.zip-spell:Updating application_config.json  NF2module:mav_bedc_mgmt_moduleattributes:required:yespath:D:\Repo\config\prodrelease_name:admfdelete:trueredeploy:falsevalidation_check:disablednew_chart_version:new_chart_03new_cnf_package_version:new_cnf_package_v2.zipmav_bedc_mgmt_values_yaml_filesParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.drop_versionProvide the name of the drop.line_numberProvide the line number of the values.yaml.nf_typeProvide the name of the NF type.changeProvide the line change. Input will only accept one line at a time.Example---eks_level_folder_selection:allgrimoire:-spell:Updating values.yaml files with latest changes for NF1module:mav_bedc_mgmt_values_yaml_filesattributes:required:yespath:D:\Repo\config\proddrop_version:drop17.8nf_type:nf1line_number:142change:'-destination:"10.0.0.1/0"'mav_increment_pipeline_versionParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.Example---eks_level_folder_selection:allgrimoire:-spell:Update bulk_pipeline_trigger.jsonmodule:mav_increment_pipeline_versionattributes:required:yespath:D:\Repo\config\prodmav_ndc_cms_backupParameterChoices/DefaultsCommentsrequiredChoices:nooryesIf set tono, the spell will not work and if set toyes, the spell will be triggered.pathIf required was set toyes, then you will need to provide the path a value.namespaceProvide the name of the mCMS Kubernetes namespace.nf_typeChoices:cms1orcms2Provide the option whether it's cms1 or cms2.s3_bucketOptionalProvide the name of the AWS S3 Bucket where the backup needs to be uploaded to. If ignored, backup files wont be uploaded to any S3 bucketExample---grimoire:-spell:Taking mCMS1 backup for EKS Cluster.module:mav_ndc_cms_backupattributes:required:yespath:C:\Users\user1\Desktopnamespace:test-naspacenf_type:cms1s3_bucket:test-s3-bucket