Repository navigation
Expand file tree
/
Copy pathbosh-create-env.sh
More file actions
executable file
·42 lines (38 loc) · 1.69 KB
/
Copy pathbosh-create-env.sh
File metadata and controls
executable file
·42 lines (38 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -eux
bosh interpolate ${COMMON_FILE} --path "/default_ca/private_key" > ./ca.key
AGENT_VER=$(cat nessus-agent-release/version)
sed -i "s/NESSUS_VER/$AGENT_VER/" bosh-config/operations/add-nessus-agent.yml
# todo (mxplusb): there needs to be interpolation at some point before the deployment.
# and deploy it!
set +e
bosh create-env \
bosh-deployment/bosh.yml \
--state bosh-state/*.json \
--ops-file bosh-deployment/aws/cpi.yml \
--ops-file bosh-deployment/aws/iam-instance-profile.yml \
--ops-file bosh-deployment/aws/cli-iam-instance-profile.yml \
--ops-file bosh-deployment/aws/use-jammy.yml \
--ops-file bosh-deployment/uaa.yml \
--ops-file bosh-deployment/credhub.yml \
--ops-file bosh-deployment/jumpbox-user.yml \
--ops-file bosh-deployment/misc/source-releases/bosh.yml \
--ops-file bosh-deployment/misc/source-releases/uaa.yml \
--ops-file bosh-deployment/misc/source-releases/credhub.yml \
--ops-file bosh-config/operations/cpi.yml \
--ops-file bosh-config/operations/masterbosh-metadatav2.yml \
--ops-file bosh-config/operations/encryption.yml \
--ops-file bosh-config/operations/add-cloud-gov-root-certificate.yml \
--ops-file bosh-config/operations/masterbosh-ntp.yml \
--ops-file bosh-config/operations/add-nessus-agent.yml \
--vars-file bosh-config/variables/${BOSH_NAME}.yml \
--vars-file terraform-yaml/state.yml \
--vars-file terraform-secrets/terraform.yml \
--vars-file ${COMMON_FILE} \
--vars-store ./creds.yml
code=$?
set -e
# ensure state gets copied to output
cp bosh-state/*.json updated-bosh-state
# ensure we copy out creds.yml so we don't miss out on any new bosh-deployment variables
cp creds.yml updated-bosh-creds/master-bosh-creds.yml