rundeck-jobs
v1.0.0
Published
## About
Downloads
1
Readme
Readme
About
This contains all the scripts that are intended to run via rundeck.
- Customer specific scripts are organised under
clients
folder - Generic scripts used accross everything is housed under
lib
folder
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.js
Decrypt 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@