Adding App Metrics to Denver new environment. - pivotal-cf/TAS-LTS GitHub Wiki
1Password credentials generation
- Login to 1Password
- 0.1 Find for example 'ops-manager-4-0' in folder 'AOA Legacy/Logins' or just search 'keyword'.
- 0.2 Clone that folder.
- 0.3 Change URL to your environment URL, save.
- 0.4 Change name(whatever you want, just pay attention that you will use that name in the future so you can specify the version of ops manager).
- 0.5 Find 'cf-login-tas40' in same folder as 'ops-manager'.
- 0.5 Clone that.
- 0.6 Change the login URL to your new environment login URL.
- 0.7 Change name (same logic as in step 0.4)
- 0.8 Change domain to 'sys.hw.your_new_doman.cf-denver.com'.
- 0.9 Login to your newly created ops manager.
- 0.10 Click on 'VMware Tanzu Application Service'
- 0.11 Open 'Credentials' tab.
- 0.12 Find 'Admin credentials' in UAA section and click on 'Link to credentials'.
- 0.13 Copy password.
- 0.14 Open in 1Password your copied folder of 'cf-login-pas40'.
- 0.15 Paste the password in the 'password' section.
(Shell scripts changes)
- In terminal use this command 'fly --target hw-denver login --concourse-url https://concourse.cf-denver.com --team-name healthwatch'
- 1.1 if you have problem with fly versions 6.7->5.8, you need to download fly previous version from https://github.com/concourse/concourse/releases/tag/v5.8.0
- 1.2 unzip file, write in terminal 'which fly' -> this will output path to fly(usually its '/usr/local/bin/'), after it "mv 'flyfile'" to that path.
- 1.3 Repeat step 1
- Checkout to 'main' branch
- 2.1 Change in file 'catalyst/ci/scripts/set-pipeline.sh' every line with path of your previous environment to your new environment path (usually they are on lines 27,28,34,35,36,38)
- 2.2 Change in file 'catalyst/ci/tasks/install-tile-on-acceptance.yml', in section 'network-properties->network->name: hw-new_created_environment_name-pas-subnet' (usually on line 43).
- 2.3 Same for 'catalyst/applications/metric/build.gradle.kts' 'sysDoman=sys.hw-your_new_environment_name.cf-denver.com' (usually on line 77).
- 2.4 Change in file 'catalyst/platform-support/scripts/create-uaa-client.sh' on line 10 the 1Password path to your newly cloned 'cf-login-tas40' name.
(run set-pipeline.sh script)
-
Cd to 'catalyst/ci/scripts/' and run './set-pipeline.sh'.
-
If you don't have 'cf-uaac' run in the terminal 'gem install cf-uaac'.
- 4.1 cd your terminal to 'catalyst/platform-support/scripts' and run './create-uaa-client.sh'
-
Add to 'Ops manager' 'App Metrics' and 'Metrics store'.
-
Configure them
-
Add to git your changes done on step 2, commit and push them.
-
As result on Concource/healthwatch/catalyst (https://concourse.cf-denver.com/teams/healthwatch/pipelines/catalyst) 'build-product' and all in right side of 'build-product' will be runned.