When and if a new environment is setup on Acquia for CoB, the following steps should be followed:
The following steps need to be completed to allow single sign on via Ping Federated.
To use the environment as a Drupal site, you need to attach a branch from the Acquia git repository. For detailed instructions see section.
add in the a new condition for the new envname:
save the updated file and commit to the private repo.
if [[ "${target_env}" == 'uat' ]] || [[ "${target_env}" == 'ci' ]] ... ; then... || [[ "${target_env}" == 'envname' ]] ......
elseif ($_ENV['AH_SITE_ENVIRONMENT'] == 'uat') {
$conf['acquia_purge_domains'] = array(
'bostond8uat.prod.acquia-sites.com',
);
}
...elseif ($_ENV['AH_SITE_ENVIRONMENT'] == 'envname') {
$conf['acquia_purge_domains'] = array(
'bostond8envname.prod.acquia-sites.com',
'd8-envname.boston.gov',
);
}...
if (in_array($siteEnv, ["test", "ci", "uat"])) {
$settings['file_public_path'] = 'sites/default/files/linked';
...if (in_array($siteEnv, ["test", "ci", "uat", "envname"])) {envname:
root: /var/www/html/bostond8.envname/docroot
ac-site: bostond8
ac-env: envname
ac-realm: prod
uri: d8-envname.boston.gov
host: bostond8envname.ssh.prod.acquia-sites.com
user: bostond8.envname
envname.livedev:
parent: "@bostond8.envname"
root: "/mnt/gfs/bostond8.envname/livedev/docroot"
paths:
drush-script: drush9RewriteCond %{HTTP_HOST}... dev|stg|ci|ra|uat ...RewriteCond %{HTTP_HOST}... dev|stg|ci|ra|uat|envname ...elif [[ "${target_env}" == "ci" ]] || [[ "${target_env}" == "uat" ]] || ... ; then
site_machine_name="none"
fi... || [[ "${target_env}" == "envname" ]] ...