Skip to content

chef client scripts for deployment of local machines

Sam Habiel edited this page May 31, 2017 · 1 revision

These scripts are here for you to forgo using gradle for deployement and rather using chef-client directly to deploy machines. Note that you still have to use gradle to build the releases necessary in the source code. The scripts here are for GT.M. If you want to use Cache, you will need to set INSTALL_INTERSYSTEMS_CACHE to 1. To run these scripts, $1 (first argument) needs to be either "destroy" to delete the machine or "converge" to deploy the machine.

JDS

export ALLOW_WEB_ACCESS=1
export GEM_PATH=$GEM_PATH:/home/sam/.chefdk/gem/ruby/2.3.0/
unset INSTALL_INTERSYSTEMS_CACHE
export JDS_LOCAL_FILE="/home/sam/Projects/vistacore/ehmp/product/production/jds/build/jds-2.0.rc216-staging.0.ro"
export JDS_DATA_LOCAL_FILE="/home/sam/Projects/vistacore/ehmp/product/tests/jds_data/build/jds_data-2.0.rc216-staging.0.zip"
export VAGRANT_HOME="/home/sam/Projects/vistacore/.vagrant.d"
MACHINE_NAME=jds ACTION=$1 chef-client -z -o 'ehmp_provision' -c ~/Projects/vistacore/.chef/knife.rb

VistA Panorama

export ALLOW_WEB_ACCESS=1
export GEM_PATH=$GEM_PATH:/home/sam/.chefdk/gem/ruby/2.3.0/
unset INSTALL_INTERSYSTEMS_CACHE
export HMP_LOCAL_FILE="/home/sam/Projects/vistacore/ehmp/product/production/hmp/build/hmp-2.0.rc216-staging.0.zip"
export CACHE_LOCAL_FILE=1
export WORKSPACE="/home/sam/Projects/vistacore"
export CORRELATED_IDS_LOCAL_FILE="/home/sam/Projects/vistacore/ehmp/product/production/correlated_ids/src/correlatedIds.json"
export VAGRANT_HOME="/home/sam/Projects/vistacore/.vagrant.d"
MACHINE_NAME=vista-panorama ACTION=$1 chef-client -z -o 'ehmp_provision' -c ~/Projects/vistacore/.chef/knife.rb