11 lines
432 B
Bash
11 lines
432 B
Bash
#!/bin/bash
|
|
|
|
set -eux
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# TODO should be a way to render configs, in order to do this
|
|
# we should have scripts dir variable passed from above
|
|
sed -i "s|<ROOT>|${DIR}|" "${DIR}"/templates/agent.config
|
|
|
|
provision --log-file /tmp/fa_provision.log -d --data_driver nailgun_simple --input_data_file "${DIR}"/templates/provisioning.json --config-file "${DIR}"/templates/agent.config
|