Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent concurrent db actions sapp 4587 #219

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
20190a4
Apply composer updates to remove committed Drupal core patch.
pingers Oct 19, 2018
6726a2a
Adds a site version report by querying OpenShift pod label.
Oct 22, 2018
195d84a
Merge branch 'feature/env-reports' into 'develop'
Oct 22, 2018
d65e471
Fixes broken env-site relationship in the version report.
pingers Oct 22, 2018
269b68a
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Oct 22, 2018
d96ae44
Environment version report - check properly for version being present.
pingers Oct 22, 2018
44c7597
Fixes env version report script.
pingers Oct 22, 2018
e85f70a
Fixes missing version numbers when retrieving pods.
pingers Oct 22, 2018
325f921
More specific selection for env version labeling.
pingers Oct 23, 2018
488a827
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Oct 24, 2018
15998ca
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Oct 25, 2018
01d13ff
Remove base profile
singularo Jan 16, 2019
1df8d80
Put config files in to make it as close as possible to original.
singularo Jan 16, 2019
8d467cd
Another instance needing changing.
singularo Jan 24, 2019
7f1672a
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 4, 2019
a82d6ec
Export uni specific production config.
Feb 4, 2019
dcb7dbf
Merge branch 'feature/ua-config-export' into 'develop'
Feb 4, 2019
7ca7fe9
Merge branch 'develop' into feature/WEBOPS-357-remove-install-profile…
singularo Feb 5, 2019
0bbf3b3
Merge remote-tracking branch 'shepherd/develop' into feature/WEBOPS-3…
singularo Feb 5, 2019
7821899
Merge upstream & Rename profile to match upstream
singularo Feb 5, 2019
54e2742
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 5, 2019
bae27bd
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 5, 2019
b843123
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 5, 2019
b6705aa
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 7, 2019
487dc72
Merge branch 'release/0.3.0'
pingers Feb 7, 2019
ca3451d
Merge tag '0.3.0' into develop
pingers Feb 7, 2019
b4d0680
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 7, 2019
f239a56
Merge branch 'release/0.3.1'
pingers Feb 7, 2019
5981079
Merge tag '0.3.1' into develop
pingers Feb 7, 2019
b3c3016
YOLO - Get it working today.
pingers Feb 7, 2019
8f5f576
YOLO - Request limit must be less than or equal to memory limit.
pingers Feb 7, 2019
83ae182
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 19, 2019
c3c4ca1
Revert "Remove online consultant role from Shepherd distro. (#129)"
pingers Feb 19, 2019
34db574
YOLO - Drush 9 now requires absolute paths or none.
pingers Feb 20, 2019
4fcd0c9
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 20, 2019
7937d21
Merge branch 'release/0.4.0'
pingers Feb 21, 2019
f12d307
Merge tag '0.4.0' into develop
pingers Feb 21, 2019
9314e06
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 22, 2019
ea0c3ba
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 1, 2019
d44110b
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 14, 2019
06f6f0e
Merge branch 'release/0.4.1'
pingers Mar 14, 2019
4713ef4
Merge tag '0.4.1' into develop
pingers Mar 14, 2019
aed2733
Catching up to develop.
singularo Apr 1, 2019
2aff1ac
Catching up to upstream.
singularo Jun 13, 2019
c6156b5
Updating with changes in ua_ldap that fix robo build.
singularo Jun 13, 2019
4646e5f
Merge branch 'feature/WEBOPS-357-remove-install-profile-inheritance' …
Jul 24, 2019
f394b4f
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jul 24, 2019
31c7b7e
Fix the composer.json weirdness from merging.
pingers Jul 24, 2019
3230201
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jul 30, 2019
58f8b0c
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jul 31, 2019
dfaad8e
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 12, 2019
dd13a4e
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Oct 7, 2019
b03e5b8
Update api version and database to current prd.
singularo Oct 11, 2019
a5f3768
New prod DB cluster.
pingers Oct 13, 2019
e450e38
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jan 17, 2020
f92f3ca
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jan 29, 2020
edd4fad
Merge from shepherd upstream and make the same changes to UA cron yml.
pingers Feb 4, 2020
b1a2f87
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 20, 2020
e47db16
Update cas configuration.
pingers May 20, 2020
afd180d
Use login-project1 for cas.
pingers May 20, 2020
08005a7
The backup retention needs to default to an integer if not set specif…
singularo Oct 28, 2020
53712ee
Merge branch 'release/0.5.0'
singularo Oct 28, 2020
648e7a1
Merge tag '0.5.0' into develop
singularo Oct 28, 2020
951e26b
Merging develop in from github repo.
singularo Oct 30, 2020
cb6c608
Add in some variable sets as part of the import for safety.
singularo Oct 30, 2020
5a4f0d7
More removing live code and making safe for local dev.
singularo Oct 30, 2020
602c5e8
Ahh, need to run config updates after upgrade at the moment.
singularo Oct 30, 2020
1d1220e
Also need to disable tls for local.
singularo Oct 30, 2020
2cc0050
Add missing config import.
singularo Nov 2, 2020
e55a084
Merging changes from github in, with HPA support.
singularo Dec 10, 2020
ef00dba
Merging changes from Upstream.
singularo Dec 14, 2020
03a306a
Various config updates.
acbramley Dec 14, 2020
ea592ac
Remove deprecated moderation_state relationship https://www.drupal.or…
acbramley Dec 14, 2020
4767c2a
Merge branch 'feature/merging-from-github-dec' into 'develop'
singularo Dec 15, 2020
31206ce
Adding needed yamls.
singularo Feb 4, 2021
1ddbf6f
Updating -dev to -prd, myproject to shepherd-prd.
singularo Feb 4, 2021
b1f9713
Adding basic readme.
singularo Feb 4, 2021
9fd2934
Increasing backup size.
singularo Feb 4, 2021
d2e2446
Merge branch 'feature/add-operator-setup' into 'develop'
singularo Feb 4, 2021
96162b5
Merge branch 'release/0.6.0'
singularo Feb 4, 2021
6221421
Merge tag '0.6.0' into develop
singularo Feb 4, 2021
103b30e
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Feb 12, 2021
7a3da09
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 23, 2021
560d7f1
Adds https config file overrides and deploy for local dev.
pingers Mar 23, 2021
6beaa56
Adds hook to allow modifying deployment configs prior to creation.
pingers Mar 23, 2021
57103fd
Adds UA custom module for UA specific changes.
pingers Mar 23, 2021
66f7b71
Adds force https field on environment.
pingers Mar 23, 2021
a6fb2c0
Pass through env id to retrieve force https setting.
pingers Mar 23, 2021
642828a
Respect force https setting.
pingers Mar 23, 2021
c4d9090
Adds project force https field.
pingers Mar 23, 2021
34e468e
Respect default value from project when creating environments.
pingers Mar 23, 2021
d2ba344
Remove commented lines.
pingers Mar 30, 2021
2a49ff9
Merge branch 'feature/SAPP-1428-force-https' into 'develop'
Mar 30, 2021
5bccb35
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 30, 2021
5ff6cc7
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 30, 2021
ade772f
Update .htaccess from core.
pingers Mar 30, 2021
ac6a22c
Allow for when no hook implementations exist.
pingers Mar 30, 2021
e44ab6b
Merge branch 'release/0.7.0'
pingers Mar 31, 2021
682ff4f
Merge tag '0.7.0' into develop
pingers Mar 31, 2021
5deefeb
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 4, 2021
a844cc5
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 9, 2021
b2eafc5
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 14, 2021
cdd274f
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 14, 2021
1748669
SAPP-1722 Adds memcache for RDG.
pingers May 18, 2021
bda7bc2
Fix indenting.
pingers May 18, 2021
b59d759
Merge branch 'release/0.8.0'
pingers May 18, 2021
f2f9efb
Merge tag '0.8.0' into develop
pingers May 18, 2021
3112d05
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Jun 15, 2021
1a1bccb
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 1, 2021
28f5bbd
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 2, 2021
4d48e8e
Adds shepherd-dev project sync crd and supporting rbac.
pingers Aug 3, 2021
9bae215
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 5, 2021
929f5f0
Adds missing sync finalizer.
pingers Aug 9, 2021
380070b
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 11, 2021
641b808
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 11, 2021
1940472
Merge branch 'release/0.9.0'
pingers Aug 12, 2021
b26e031
Merge tag '0.9.0' into develop
pingers Aug 12, 2021
ec2baae
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Aug 13, 2021
0b1bada
Merge branch 'release/0.9.1'
pingers Aug 13, 2021
9318a10
Merge tag '0.9.1' into develop
pingers Aug 13, 2021
149967a
Default to memcached and RDG for cache per production.
pingers Aug 16, 2021
2af763b
Enable missing module so robo build works.
singularo Sep 17, 2021
9160009
Use project value for force https on sync.
singularo Sep 17, 2021
8756407
Couple of linting issues stopping CI.
singularo Sep 17, 2021
24c16c4
One more thing.
singularo Sep 17, 2021
441cf8f
Need to use correct install profile.
singularo Sep 17, 2021
07a4549
Move the test module so it can be enabled, enable it.
singularo Sep 17, 2021
3cdd6fb
Revert "Move the test module so it can be enabled, enable it."
singularo Sep 21, 2021
8aa93f9
Revert "One more thing."
singularo Sep 21, 2021
a4d270a
Revert "Couple of linting issues stopping CI."
singularo Sep 21, 2021
5f24bb7
Linting fixes.
pingers Sep 23, 2021
0e9fd6c
Enable testing module.
pingers Sep 23, 2021
42af60e
Merge branch 'SAPP-2003-https-from-project' into 'develop'
Sep 23, 2021
bdc4c85
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Sep 23, 2021
6c1c0be
Merge branch 'release/0.9.2'
pingers Sep 23, 2021
97faa8a
Merge tag '0.9.2' into develop
pingers Sep 23, 2021
063ae8c
Update report configs, add ldap config.
singularo Jan 13, 2022
9269826
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Mar 2, 2022
babea65
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Apr 29, 2022
c4b9592
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Apr 29, 2022
e70279a
Merge remote-tracking branch 'shepherd/develop' into develop
pingers Apr 29, 2022
c852684
Drupal 8/9 compatibility.
pingers May 4, 2022
c69e57a
Entity reference not a module anymore.
pingers May 4, 2022
3e72e60
Fixes refactored translation method call.
pingers May 6, 2022
18b0a0f
Merge remote-tracking branch 'shepherd/develop' into develop
pingers May 6, 2022
3a21611
Enable UA Shepherd specific modules.
pingers May 10, 2022
0b4a6e2
Missed externalauth for cas.
pingers May 10, 2022
43e21a5
Merging upstream changes in.
singularo Jun 13, 2022
8b39af9
Merging more upstream changes in.
singularo Jun 14, 2022
7227952
Merging in missing function from upstream.
singularo Jun 14, 2022
eaaebdc
Select the openshift CI runner.
singularo Jun 14, 2022
f61c975
Merging upstream in.
singularo Jun 16, 2022
4ca8408
Merging upstream in.
singularo Jun 16, 2022
2de8abd
Pulling in phpcs fixes.
singularo Jun 16, 2022
70e5e37
Merging upstream in.
singularo Jun 16, 2022
ef8543f
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jun 28, 2022
1cdb666
Maybe fix building issue.
singularo Jun 30, 2022
cc23b09
Maybe fix building issue more.
singularo Jun 30, 2022
0f3954f
Revert "Maybe fix building issue more."
singularo Jun 30, 2022
60fdfad
Fixing deploy config.
singularo Jun 30, 2022
56a6b2d
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jul 1, 2022
fb09ea2
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jul 1, 2022
fcc22ea
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jul 5, 2022
11448ff
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jul 7, 2022
cb6edaf
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Jul 15, 2022
f33672b
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 10, 2022
46c08f1
Add/Fix wcms example.
singularo Aug 11, 2022
faf3cb3
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 11, 2022
f5eae94
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 16, 2022
7ccd35c
Add in the new config values.
singularo Aug 16, 2022
7bde30c
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 17, 2022
981f44b
Fix duplicate caused by merge, use storage var.
singularo Aug 17, 2022
6e49f0a
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 18, 2022
2a65863
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 18, 2022
848dc67
Need to pull in client updates, sigh.
singularo Aug 18, 2022
4689401
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 18, 2022
60d37fc
Merge in cpu/memory strategy changes from upstream.
singularo Aug 19, 2022
98fa072
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 19, 2022
3630315
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 22, 2022
66c4f45
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 29, 2022
e76cfd1
Merging migration work in.
singularo Aug 30, 2022
dec399c
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 30, 2022
7924970
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Aug 31, 2022
fcd27ef
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 1, 2022
e796ee2
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 1, 2022
4bedb62
Separators handled automatically now.
singularo Sep 1, 2022
e469972
Search/replace old domain with new. Change builder image.
singularo Sep 1, 2022
ba01857
Add users migration.
singularo Sep 1, 2022
e2ea216
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 2, 2022
8ab2e52
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 5, 2022
c5e1d92
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 5, 2022
62625e4
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 5, 2022
af731a9
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 6, 2022
e692915
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 6, 2022
794e409
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 7, 2022
e9db33e
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 7, 2022
e9986e1
Tweak the incoming domain path.
singularo Sep 7, 2022
b5ec6b9
Handle matches with a regex.
singularo Sep 7, 2022
c35cfa2
Update destination domain names.
singularo Sep 7, 2022
61761ec
Composer update for ldap fix.
singularo Sep 7, 2022
194e238
Use laminas ldap not zend.
singularo Sep 8, 2022
7813601
Pull in client status updates.
singularo Sep 12, 2022
72aa76c
Pull in more client status updates.
singularo Sep 12, 2022
68c61ab
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 14, 2022
9308041
Composer updates.
singularo Sep 14, 2022
23c9f73
Automation for the migration.
singularo Sep 15, 2022
a43ddc6
Merge branch 'migration-automation' into 'openshift-4.x'
singularo Sep 15, 2022
65afc2a
Update ua specific installation notes.
singularo Sep 15, 2022
f3072f9
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 15, 2022
2148b0b
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Sep 16, 2022
3d9841f
Tweaks needed found in testing.
singularo Sep 19, 2022
2507339
Missed NOT prepopulating the db setting.
singularo Sep 19, 2022
50932e6
Environments need to be dev to be tested.
singularo Sep 20, 2022
402b945
Updating scripts to fix bug.
singularo Sep 20, 2022
d3967da
Remove routes.txt, slight backup changes to set readonly mode.
singularo Sep 20, 2022
ec1c586
Doc and slight updates with the processes.
singularo Sep 21, 2022
83259dc
Small additionsl to the backup/restore scripts.
singularo Oct 27, 2022
213c510
Prod for prod.
pingers Nov 1, 2022
7742181
More docs clarity.
pingers Nov 2, 2022
222786e
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
pingers Nov 4, 2022
f2fdcf3
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
singularo Nov 9, 2022
3f667e0
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
pingers Nov 24, 2022
454bd66
Merge remote-tracking branch 'shepherd/openshift-4.x' into openshift-4.x
pingers Jan 20, 2023
3ace0b1
the storgae needs to read from OC3
behzad1q Jan 27, 2023
a23f824
Merge branch 'openshift-4.x' of gitlab.adelaide.edu.au:web-team/ua-sh…
Nov 7, 2024
eccbbe3
Introduce time delay between environment creation and other actions
Jan 19, 2025
507fe00
Fix minor styling videos
Jan 20, 2025
79069bd
Change DB image for gitlab CI
Jan 21, 2025
3df01be
Fix codesniffer errors
Jan 21, 2025
03f0651
Introduce time delay between environment creation and other actions
Jan 21, 2025
b82271c
Merge branch 'feature/prevent-concurrent-db-actions-SAPP-4587' into '…
Jan 21, 2025
6ac5130
Clean up code and use correct funtion name to call formAlter.
Jan 22, 2025
153fff1
Merge branch 'openshift-4.x' into feature/prevent-concurrent-db-actio…
Jan 22, 2025
0e90435
Merge branch 'feature/prevent-concurrent-db-actions-SAPP-4587' into '…
Jan 22, 2025
ca3438a
Revert "Merge branch 'feature/prevent-concurrent-db-actions-SAPP-4587…
Jan 31, 2025
fa6fd4c
Revert "Merge branch 'feature/prevent-concurrent-db-actions-SAPP-4587…
Jan 31, 2025
e8d6805
Use latest image of mariadb
Feb 2, 2025
bb294ea
Add module with time restriction functionality
Jan 31, 2025
71e6c30
Remove unneeded files generated by drush gen
Feb 2, 2025
2a47e1f
Add config to module, fix typos
Feb 3, 2025
80d232f
Add default config on module install
Feb 3, 2025
73ba956
Restrict backup and restore actions by environment
Feb 3, 2025
908a09d
Merge branch 'SAPP-4873-adv-env' into 'develop'
Feb 3, 2025
8130fd0
Merge branch 'SAPP-4761-env-default-fields' into 'develop'
Feb 3, 2025
5383fdf
Only restore is limited by environment, other actions should be preve…
Feb 6, 2025
6aa2c25
Fix routing file for a permission that actually exists
Feb 6, 2025
834ae20
Merge branch 'feature/prevent-concurrent-db-actions-SAPP-4587-take2' …
Feb 6, 2025
9a7ab93
Add update hook to enable shp_time_restrictions module
Feb 6, 2025
bb3d44a
Prevent errors by calling operations alter on nodes only
Feb 6, 2025
0c9aa1f
Change block text when environment actions are paused
Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ RoboFile.php
docker/Dockerfile
docker/xdebug.ini
docker/php_custom.ini

/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/uat/secret.yml
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/uat/LEGACY_TOKEN.txt
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/uat/NEW_TOKEN.txt
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/uat/daily_sites.txt

/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/prd/secret.yml
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/prd/LEGACY_TOKEN.txt
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/prd/NEW_TOKEN.txt
/web/modules/custom/shepherd/shp_content_migration/3.x-to-4.x/prd/daily_sites.txt
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: uofa/s2i-shepherd-drupal:composer2
services:
- alias: db
name: quay.io/centos7/mariadb-103-centos7
name: quay.io/fedora/mariadb-105
- alias: mail
name: mailhog/mailhog:latest
- alias: selenium
Expand Down
276 changes: 276 additions & 0 deletions INSTALL-UA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
# University of Adelaide Installation

This guide assumes a working knowledge of the `oc` command line tool.

## Configure a new Shepherd deployment on OpenShift

### Login and project selection
Visit [Openshift Console Command line tools](https://console-openshift-console.apps.ocp-blue.adelaide.edu.au/command-line-tools)
to find useful info about logging in.

CLUSTER: https://console-openshift-console.apps.ocp-blue.adelaide.edu.au/

UAT: shepherd-uat
PRD: shepherd-prd

Login through the console UI then click on your name and 'Copy login command', then
Choose OKTA to get information on how to login to the cluster.
```bash
# Requires uni a-number to login and access to the Shepherd project.
oc login --token=sha256~randomlookingstuffhere --server=https://api.ocp-blue.adelaide.edu.au:6443

# Create a new project if doesn't exist.
oc new-project shepherd-uat

# Switch to the `shepherd-uat` project.
oc project shepherd-uat
```

### Secrets (passwords and keys)

Secrets can be created via the UI `console/project/wcms-test/create-secret`.
Some secret types cannot be created in the UI and only via the `oc` CLI.

Running Shepherd requires the following secrets to be defined:

#### privileged-db-password

Type: password

Thycotic:

DEV: shepherd-db-uat-password

PRD: shepherd-db2-password

Used for managing databases for sites and their environments.

#### shepherd-db-password

Type: password

Thycotic:

DEV: shepherd-site-db-uat-password

PRD: shepherd-site-db-password

Used by Shepherd itself to connect to its own Drupal database.

#### build-key

Type: ssh key

Thycotic: jenkins_deployment_key

Used to authenticate to GitLab and GitHub to clone repositories.

#### Create the secrets

```bash
# Replace MYPASSWORD with the password defined in Thycotic.
oc create secret generic privileged-db-password --from-literal=DATABASE_PASSWORD=MYPASSWORD
oc create secret generic build-key --from-file=ssh-privatekey=id_rsa

# Link the build key to the builder account.
oc secret link serviceaccount/builder secret/build-key
```

### OpenShift service account

Read [INSTALL.md](INSTALL.md#Create-a-Service-Account-for-Shepherd)

### Deploy Shepherd


Create the Shepherd instance from a pre-configured yaml manifest.

DEV

```bash
oc process -f shepherd-template.yaml -p SHEPHERD_INSTALL_PROFILE=shepherd -p DATABASE_HOST=<from thycotic> -p DATABASE_USER=<from thycotic> ... etc | oc apply -f -
```

PRD

```bash
oc process -f shepherd-template.yaml -p SHEPHERD_INSTALL_PROFILE=shepherd -p DATABASE_HOST=<from thycotic> -p DATABASE_USER=<from thycotic> ... etc | oc apply -f -
```

### Ensure access for the shepherd service account

```
oc project shepherd-prd
Now using project "shepherd-prd" on server "https://api.ocp-blue.adelaide.edu.au:6443".
oc adm policy add-role-to-user admin system:serviceaccount:shepherd-prd:shepherd-sa
oc project shepherd-prd-datagrid
Now using project "shepherd-prd-datagrid" on server "https://api.ocp-blue.adelaide.edu.au:6443".
oc adm policy add-role-to-user admin system:serviceaccount:shepherd-prd:shepherd-sa
```

### Setup the database password secret file
```
oc set volume dc/shepherd-prd --add --name=shepherd-prd-db --secret-name=shepherd-db-password \
--default-mode=0444 --mount-path=/etc/secret/DATABASE_PASSWORD --sub-path=DATABASE_PASSWORD
```

### Setup any extra settings
```
oc set volume dc/shepherd-prd --add --name=settings-app-php --configmap-name=settings-app-php \
--default-mode=0444 --mount-path=/code/web/sites/default/settings.app.php --sub-path=settings.app.php
```

### Shepherd url
Find the url to Shepherd by looking in the routes in the UI, or running an oc command:
```
oc get route
```

Do a local build.
```
dsh
robo build
drush sql-dump --result-file=/code/sql/shepherd.sql
exit
```

Find a pod, then Upload the sql, check the db credentials, then import the database.
```
oc get pods
oc cp ./sql/shepherd.sql shepherd-prd-9-w8npn:/shared/tmp/shepherd.sql
oc rsh shepherd-prd-9-w8npn
drush sql-connect
drush sqlq --file=/shared/tmp/shepherd.sql
```

### Configure the orchestration provider

- Visit /admin/config/shepherd/orchestration and configure `OpenShift with Redis`.
- Visit /admin/config/shepherd/orchestration/provider-settings and configure:
- Endpoint: https://rhosd-console.services.adelaide.edu.au:8443
- Token: {auth token - see `Configure the Orchestration Provider` in INSTALL.md}
- Verify TLS: TRUE
- Namespace: shepherd
- Save

### Configure the database provisioner

Visit /admin/config/shepherd/database-provisioner and configure:

DEV

-- Host: mariadb-web-uat2.adelaide.edu.au
-- Port: 3306
-- User: uat_web2
-- Secret: privileged-db-password (Thycotic: shepherd-db-uat-password)

PRD

-- Host: mariadb-drup-prd.adelaide.edu.au
-- Port: 3306
-- User: prd_web2
-- Secret: privileged-db-password (Thycotic: shepherd-db2-password)

### Configure LDAP for user search

Visit /admin/config/people/ldap and configure:

-- Hostname: ldap.adelaide.edu.au
-- Port 389
-- Base DN: dc=adelaide,dc=edu,dc=au
-- Users OU: ou=people

All other fields can be omitted. User and password are not needed, because Shepherd only needs to read from LDAP.

### Configure the service accounts

Visit /admin/config/shepherd/service-account and add new service accounts:

This will list them for easier entry.
List provisioners.
```
oc get sa | grep provisioner | awk '{ print $1 }'
```
List tokens with names to help matchup.
```
for j in $(for i in $(oc get sa | grep provisioner | awk '{ print $1 }')
do
oc get sa/$i -o yaml; done | grep "\-token-" | awk '{ print $3 }')
do printf "\n%s\n\n" $j; oc get secret/$j -o jsonpath='{.data.token}' | base64 -d
echo ""
done
```

### Configure cron jobs for Shepherd

Cron jobs process the Shepherd job queue and run Drupal cron.
The cron jobs are defined in the `shepherd-openshift-cronjob.yml`.

First you should get the following parameters so they can be passed to the template:

- SHEPHERD_WEB_IMAGESTREAM

The image stream provides a source for the built images, so that you can launch pods to serve the Shepherd application.
To obtain the `SHEPHERD_WEB_IMAGESTREAM` first retrieve the internal docker registry ip address:
You require need system admin access.

```bash
# create the variables to use.
SHEPHERD_WEB_IMAGESTREAM="$(oc get is | tail -n1 | awk '{print $2}' | awk -F '/' '{print $1}')/$(oc project -q)/shepherd-web-is:latest"
```

Process and create the cron jobs:

DEV

```bash
oc process -f ua-shepherd-openshift-cronjob.yml -p SHEPHERD_WEB_IMAGESTREAM=${SHEPHERD_WEB_IMAGESTREAM} -p DATABASE_HOST=mariadb-web-uat2.adelaide.edu.au | oc create -f -
```

PRD

```bash
oc process -f ua-shepherd-openshift-cronjob.yml -p SHEPHERD_WEB_IMAGESTREAM=${SHEPHERD_WEB_IMAGESTREAM} -p DATABASE_HOST=mariadb-drup-prd.adelaide.edu.au | oc create -f -
```

### Configure the environment types

- Visit /admin/structure/taxonomy/manage/shp_environment_types/overview and configure:

#### Production OpenShift

##### Dev environment type

-- Name: Dev
-- Base domain: dev.openshift.services.adelaide.edu.au
-- Protect from deletion: false
-- Update go live: false

##### Prd environment type

- Name: Prd
- Base domain: prd.openshift.services.adelaide.edu.au
- Protect from deletion: true
- Update go live: true

#### Development OpenShift

##### Dev environment type

-- Name: Dev
-- Base domain: openshift.development.services.adelaide.edu.au
-- Protect from deletion: false
-- Update go live: false

### Create WCMS project

- Title : WCMS
- Git repository: [email protected]:web-team/ua-wcms-d8.git
- Build secret: build-key
- Default tag/branch: shepherd-foundation
- Builder image: uofa/s2i-shepherd-drupal
- DEFAULT ENVIRONMENT VARIABLES: SHEPHERD_INSTALL_PROFILE: value: ua

### Create Site

### Create Environment
50 changes: 49 additions & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class RoboFile extends RoboFileBase {
*/
public function build(): void {
parent::build();
$this->say("To provide default content for shepherd, use robo dev:drupal-content-generate or robo dev:wordpress-content-generate");
$this->say("To provide default content for shepherd, commands have been added:");
$this->say("robo dev:wcms-content-generate, dev:drupal-content-generate and dev:wordpress-content-generate");
}

/**
Expand All @@ -45,6 +46,17 @@ public function devWordpressContentGenerate() {
}
}

/**
* Create default WCMS content for the Shepherd.
*/
public function devWcmsContentGenerate() {
$virtual_host = getenv("VIRTUAL_HOST");
if (!empty($virtual_host)) {
$this->_exec("$this->drush_cmd scr WcmsContentGenerate.php --uri=$virtual_host");
$this->say('For proper deployment, edit the project and attach the default wcms sql.');
}
}

/**
* Create a dev login link.
*/
Expand All @@ -55,4 +67,40 @@ public function devLogin() {
}
}

/**
* Custom import db with some sefety built in.
*
* @param string $sql_file
*
* @throws \Robo\Exception\TaskException
*/
public function devImportDb($sql_file) {
$domain_name = getenv("OPENSHIFT_DOMAIN") ?: '192.168.99.100.nip.io';
$openshift_url = getenv("OPENSHIFT_URL") ?: 'https://192.168.99.100:8443';
$database_host = getenv("DB_HOST") ?: 'mysql-myproject.' . $domain_name;
$token = trim(getenv("TOKEN"));

$start = new DateTime();
$this->_exec("$this->drush_cmd -y sql-drop");
$this->_exec("$this->drush_cmd sqlq --file=$sql_file");
$this->_exec("$this->drush_cmd cr");
$this->_exec("$this->drush_cmd updb --entity-updates -y");
$this->taskExecStack()
->exec("$this->drush_cmd -y cset shp_database_provisioner.settings host $database_host")
->exec("$this->drush_cmd -y cset shp_database_provisioner.settings user root")
->exec("$this->drush_cmd -y cset shp_database_provisioner.settings populate_command \"wget [shepherd:public-filename] -O /tmp/dump.sql\r\ndrush sqlq --file=/tmp/dump.sql\r\ndrush updb -y\r\nrobo config:import-plus\r\ndrush cr\r\nrm /tmp/dump.sql\"")
->exec("$this->drush_cmd -y cget shp_database_provisioner.settings")
->exec("$this->drush_cmd -y cset shp_orchestration.settings connection.namespace myproject")
->exec("$this->drush_cmd -y cset shp_orchestration.settings connection.endpoint $openshift_url")
->exec("$this->drush_cmd -y cset shp_orchestration.settings connection.token $token")
->exec("$this->drush_cmd -y cset shp_orchestration.settings connection.verify_tls 0")
->exec("$this->drush_cmd -y cget shp_orchestration.settings")
->run();
$this->configImportPlus();
$this->_exec("$this->drush_cmd -y pmu cas");
$this->say('Duration: ' . date_diff(new DateTime(), $start)->format('%im %Ss'));
$this->_exec("$this->drush_cmd upwd admin password");
$this->say('Database imported, admin user password is : password');
}

}
Loading
Loading