1.0.0 • Published 4 years ago
rundeck-jobs v1.0.0
Readme
About
This contains all the scripts that are intended to run via rundeck.
- Customer specific scripts are organised under
clientsfolder - Generic scripts used accross everything is housed under
libfolder
Running this on your local machine
dotenv is a dev dependancy. Create a .env file which contains the following keys
ENCRYPTION_PASSWORD=For running a script, instead of running it as node script.js run like this node -r dotenv/config script.js - this will make sure that the environment variables are loaded
Encrypt env files before committing
On localhost run this -
node -r dotenv/config lib/aes.js encrypt ./clients/exponent/env/pull_from_cf.env.jsDecrypt env files before excuting script
On rundeck run this -
node lib/aes.js decrypt ./clients/exponent/env/pull_from_cf.env.js.enc @option.ENCRYPTION_PASSWORD@1.0.0
4 years ago