Chef Recipe - _setup_3_neodatasource.rb
Chef::Log.info('*** start neodatasource')

# directory should already exist
#directory "#{node['tf_scms']['cf_home']}/lib" do
#  recursive true
#end

template "#{node['tf_scms']['cf_home']}/lib/neo-datasource.bak" do
  action :delete
end

template "#{node['tf_scms']['cf_home']}/lib/neo-datasource.xml" do
  action :delete
end

template "#{node['tf_scms']['cf_home']}/lib/neo-datasource.xml" do
  variables(
    ecom_primary_db: node['tf_scms']['ecom']['primary_db'],
    ecom_secondary_db: node['tf_scms']['ecom']['secondary_db'],
    ecom_service: node['tf_scms']['ecom']['service'],
    ecom_user_name: node['tf_scms']['ecom']['user_name'],
    ecom_user_password: node['tf_scms']['ecom']['user_password'],
    e1_oracle_primary_db: node['tf_scms']['e1_oracle']['primary_db'],
    e1_oracle_service: node['tf_scms']['e1_oracle']['service'],
    e1_oracle_user_name: node['tf_scms']['e1_oracle']['user_name'],
    e1_oracle_user_password: node['tf_scms']['e1_oracle']['user_password'],
    irongate_primary_db: node['tf_scms']['irongate']['primary_db'],
    irongate_secondary_db: node['tf_scms']['irongate']['secondary_db'],
    irongate_service: node['tf_scms']['irongate']['service'],
    irongate_user_name: node['tf_scms']['irongate']['user_name'],
    irongate_user_password: node['tf_scms']['irongate']['user_password'],
    triage_db_server: node['tf_scms']['triage']['db_server'],
    triage_db_name: node['tf_scms']['triage']['db_name'],
    triage_user_name: node['tf_scms']['triage']['user_name'],
    triage_user_password: node['tf_scms']['triage']['user_password'],
  )

  source 'neo-datasource.xml.erb'
end

Chef::Log.info('*** stop neodatasource')

_common_set_attributes   _setup_1_cfstop   _setup_2_jvmconfig   _setup_3_neodatasource   _setup_4_neocron   _setup_5_cfstart   COLDFUSION INTERFACING WITH AWS