Skip to content

Commit

Permalink
#147: Add a default password for redis on ARM machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed May 25, 2023
1 parent 96fac27 commit ec1c69a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DRUSH_VERSION = '8.3.5';
const BACKDRUSH_VERSION = '1.2.0';
const PANTHEON_CACHE_HOST = 'cache';
const PANTHEON_CACHE_PORT = '6379';
const PANTHEON_CACHE_PASSWORD = '';
const PANTHEON_CACHE_PASSWORD = 'pantheon';
const PANTHEON_EDGE_HTTP_RESP_HDR_LEN = '25k';
const PANTHEON_INDEX_HOST = 'index';
const PANTHEON_INDEX_SCHEME = 'http';
Expand Down Expand Up @@ -143,7 +143,7 @@ exports.getPantheonBuildSteps = (framework, drush = 8) => {
*/
exports.getPantheonCache = isArmed => {
const cacheVersion = isArmed ? 'redis:6' : 'redis:2.8';
return {
let service = {
services: {
cache: {
type: cacheVersion,
Expand All @@ -155,6 +155,10 @@ exports.getPantheonCache = isArmed => {
'redis-cli': {service: 'cache'},
},
};
if (isArmed) {
service.services.cache.password = 'pantheon';
}
return service;
};

/*
Expand Down

0 comments on commit ec1c69a

Please sign in to comment.