Customize Your Harness Project Configuration
Customize the Project Template
Modify the Harness Project Setup workflow to source from the Custom Template Library
Log into your Harness Account and select
Code RepositoryChange your scope to the organization named
Harness Platform ManagementSelect the repository -
harness-template-libraryand clone this locally to your machineSelect the repository -
custom-harness-template-libraryand clone this locally to your machineOpen both repositories in separate VSCode windows. When prompted, do not click
Reopen in Container. This is done after the initial copy processLocally, in the
harness-template-libraryrepository, find the folder namedharness-projectCopy the folder to the root of the
custom-harness-template-libraryPrepare the IDP Resource Manager file
Open the
idp_registration_mgr.yamlin the repositoryharness-template-libraryFind the
harness-projectentry- org: Harness_Platform_Management project: Solutions_Factory workflows: - name: harness-projectOpen the
idp_registration_mgr.yamlin the repositorycustom-harness-template-libraryPaste the above code snippet entry under the
entitieskey.
Click to view full size image
Reopen the
custom-harness-template-libraryin the containerOn the bottom left corner of VSCode is a blue box
><, click on this icon to open the DevContainers management panel and chooseReopen in Container
Modify the Harness IDP workflow for the
harness-projecttemplate: open the fileharness-project/.harness/catalog_template.yamlin VSCodeFind and Modify the following
Solutions Factory Detailsparameters to match the following values

12. Find and Modify the following `Solutions Factory Options` parameters to match the following values

13. Save and Commit your changes.
14. Push your changes to Harness Code 15. Find and Execute the pipeline named Register Custom IDP Templates: - Navigate to the Solutions Factory project in your Harness Account - Filter your pipelines by typing idp in the pipeline search bar

16. Navigate to IDP, Workflows, Harness Project Setup and click the three dots to choose View Raw YAML to verify that the change has been made.

17. Create a new Project with the name Custom Project - Wait for the execution to complete. 18. Review the IACM Workspace Lab_Custom-Project in the Solutions Factory project - Select the Configuration Tab - Notice the Tags source:custom and type:harness-project - Verify that the Repository Git Connector is Custom Harness Template Library Repo
Customize your Harness Project template
Open the
custom-harness-template-libraryin VSCode. Make sure youReopen in ContainerCreate the file
harness-project/templates/roles/Security_Champions.yamlSample permission sets are included under the
permission_setsdirectory. Copy the contents from this fileharness-project/templates/roles/permission_sets/Security_Orchestration.yamlinto the new role file created.
Click to view full size image Create the file
harness-project/templates/groups/Security_Champions.yamlCopy the contents from this file
harness-project/templates/groups/Project_Viewers.yamlinto the new group file created.Add a new role binding to include the new role.

Click to view full size image Save and commit your changes.
Push your changes to Harness Code
Apply customizations to the custom project
Navigate to the
Solutions Factoryproject in your Harness AccountOpen the IACM Workspaces and select the workspace
Lab_Custom-ProjectClick Provision and Run the pipeline
Approve the change and wait for the pipeline to finish
Navigate to the
Custom Projectproject and look at the new RBAC configuration that was addedApply the change to all the existing workspaces
Navigate to the
Solutions Factoryproject in your Harness AccountFilter your pipelines by typing
iacmin the pipeline search barRun the pipeline
Bulk Workspace ManagementWORKSPACE_SOURCE =
officialWORKSPACE_TYPE =
harness-projectWORKSPACE_STATUS =
anyWORKSPACE_CHANGE_SOURCE =
yesWORKSPACE_ACTION =
apply
After the
Bulk Workspace Managementcompletes, it will have started new executions of theProvision Workspacepipeline for each matching IACM WorkspaceApprove the changes to the existing workspaces
Verify the changes have been applied.
The projects should include the new changes
The Workspaces will now be
source:customand the Repository Git Connector isCustom Harness Template Library Repo
Last updated
Was this helpful?
