Skip to content

Commit

Permalink
9.1.2
Browse files Browse the repository at this point in the history
* upgrade drupal core to 9.2.0

* Updated dependencies Jun 23 2021

* fix(STN-804): caption credit views hotfix (#907)

* Adjusted drush and settings for the Ace environment (#904)
  • Loading branch information
pookmish authored Jun 25, 2021
2 parents 1d4df37 + cb29c90 commit dd8444a
Show file tree
Hide file tree
Showing 145 changed files with 3,164 additions and 2,173 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ add_known_hosts: &add_known_hosts
run:
name: Add SSH Known Hosts
command: |
ssh-keyscan srv-7503.devcloud.hosting.acquia.com >> ~/.ssh/known_hosts
ssh-keyscan svn-4786.devcloud.hosting.acquia.com >> ~/.ssh/known_hosts
ssh-keyscan svn-23450.prod.hosting.acquia.com >> ~/.ssh/known_hosts
ssh-keyscan web-42199.prod.hosting.acquia.com >> ~/.ssh/known_hosts
ssh-keyscan staging-25390.prod.hosting.acquia.com >> ~/.ssh/known_hosts
ssh-keyscan -t rsa,dsa github.com >> ~/.ssh/known_hosts
## Defines images and working directory.
Expand Down
12 changes: 4 additions & 8 deletions blt/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ project:
git:
default_branch: develop-build
remotes:
- '[email protected]:swshumsci.git'
- '[email protected]:humscigryphon.git'
deploy:
tag_source: false
Expand Down Expand Up @@ -166,12 +165,9 @@ tests:
- functional
directory: '${docroot}/profiles/humsci/su_humsci_profile/tests/codeception'
keys_rsync:
ssh: swshumsci.prod@srv-7503.devcloud.hosting.acquia.com
ssh: humscigryphon.prod@web-42199.prod.hosting.acquia.com
files:
- /mnt/gfs/swshumsci.prod/nobackup/apikeys/
- /mnt/gfs/swshumsci.prod/secrets.settings.php
- /mnt/gfs/humscigryphon.prod/nobackup/apikeys/
- /mnt/gfs/humscigryphon.prod/secrets.settings.php
cloud:
appId: 23a85077-2967-41a4-be22-a84c24e0f81a
dev: 265866-23a85077-2967-41a4-be22-a84c24e0f81a
test: 265867-23a85077-2967-41a4-be22-a84c24e0f81a
prod: 265865-23a85077-2967-41a4-be22-a84c24e0f81a
appId: 60ee2ebb-94f3-415d-a289-c23889ecec18
29 changes: 25 additions & 4 deletions blt/src/Blt/Plugin/Commands/HsCertCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,36 @@ public function humsciLetsEncryptAdd($environment, $options = [

$primary_domain = array_shift($domains);
asort($domains);
$domains = "-d $primary_domain -d " . implode(' -d ', $domains);
if ($domains) {
$domains = "-d $primary_domain -d " . implode(' -d ', $domains);
}
else {
$domains = "-d $primary_domain";
}

$directory = "/mnt/gfs/swshumsci.$environment/files/";
$directory = "/mnt/gfs/humscigryphon.$environment/tmp";

$ssh_url = sprintf('swshumsci.%[email protected]', $environment);
$ssh_url = $this->getSshUrl($environment);
$command = sprintf('ssh %s "~/.acme.sh/acme.sh --issue %s -w %s --force --debug"', $ssh_url, $domains, $directory);
return $this->taskExec($command)->run();
}

/**
* Get the ssh url based on the environment name.
*
* @param string $environment
* Environment name: prod, test, dev.
*
* @return string
* Ssh location.
*/
protected function getSshUrl($environment) {
if ($environment == 'prod') {
return '[email protected]';
}
return '[email protected]';
}

/**
* List the LetsEncrypt certificates for the environment.
*
Expand Down Expand Up @@ -150,7 +171,7 @@ public function updateCert($environment) {
$cert_name = $environment == 'test' ? 'swshumsci-stage.stanford.edu' : "swshumsci-$environment.stanford.edu";
$this->taskDeleteDir($this->getConfigValue('repo.root') . '/certs')->run();
$this->taskDrush()
->drush("rsync --mode=rltDkz @default.prod:/home/swshumsci/.acme.sh/$cert_name/ @self:../certs")
->drush("rsync --mode=rltDkz @default.prod:/home/humscigryphon/.acme.sh/$cert_name/ @self:../certs")
->run();

$cert = file_get_contents($this->getConfigValue('repo.root') . "/certs/$cert_name.cer");
Expand Down
4 changes: 2 additions & 2 deletions blt/src/Blt/Plugin/Commands/HsCircleCiCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ protected function syncAcquia($site = 'swshumsci') {
$tasks[] = $this->taskDrush()
->alias("$site.prod")
->drush('sql-dump')
->option('result-file', "/mnt/tmp/swshumsci/$site.sql", '=');
->option('result-file', "/mnt/tmp/humscigryphon/$site.sql", '=');
$tasks[] = $this->taskDrush()
->drush('rsync')
->rawArg("@$site.prod:/mnt/tmp/swshumsci/$site.sql /tmp/$site.sql")
->rawArg("@$site.prod:/mnt/tmp/humscigryphon/$site.sql /tmp/$site.sql")
->option('mode', 'rultz', '=');

$tasks[] = $this->taskDrush()->drush('sql-drop')->option('yes');
Expand Down
30 changes: 0 additions & 30 deletions blt/src/Blt/Plugin/Commands/HsCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,6 @@ public function localSetup() {
$this->invokeCommands(['sws:keys', 'sbsc', 'settings']);
}

/**
* Get encryption keys from acquia.
*
* @command humsci:keys
* @description stuff
*/
public function humsciKeys() {
$this->taskDrush()
->drush("rsync --mode=rltDkz @default.prod:/mnt/gfs/swshumsci.prod/nobackup/apikeys/ @self:../keys")
->run();
}

/**
* Send encryption keys to acquia.
*
* @param string $env
* Acquia environment to send the keys.
*
* @command humsci:keys:send
*/
public function humsciKeysSend($env = 'prod') {
$send = $this->confirm('Are you sure you want to copy over existing keys with keys in the "keys" directory?');
$key_dir = $this->getConfigValue("key-dir.$env");
if ($send) {
$this->taskDrush()
->drush("rsync @self:../keys/ @default.$env:$key_dir")
->run();
}
}

/**
* Disables a list of modules for all sites in an environment.
*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"drupal/content_access": "^1.0@alpha",
"drupal/core-composer-scaffold": "^9",
"drupal/core-project-message": "^9",
"drupal/core-recommended": "~9.1.0",
"drupal/core-recommended": "^9.2",
"drupal/default_content": "^2.0",
"drupal/diff": "^1.0",
"drupal/domain_301_redirect": "dev-2954889-d9-ready",
Expand Down
Loading

0 comments on commit dd8444a

Please sign in to comment.