-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates/packer: look for
RUN_BUILDER
variable
- Loading branch information
1 parent
f436512
commit c6dc11f
Showing
4 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
templates/packer/ansible/roles/common/files/worker-initialization-scripts/run_builder.sh
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
templates/packer/ansible/roles/common/files/worker-initialization-scripts/worker_builder.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
source /tmp/cloud_init_vars | ||
|
||
RUN_BUILDER=${RUN_BUILDER:-} | ||
if [[ -z "$RUN_BUILDER" ]] || [ "$RUN_BUILDER" != true ]; then | ||
echo "RUN_BUILDER not defined or not set to 'true', not starting builder." | ||
exit 0 | ||
fi | ||
|
||
echo "Starting osbuild-jobsite-builder." | ||
/usr/libexec/osbuild-composer/osbuild-jobsite-builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters