templates/packer: add worker-executor service
This commit is contained in:
parent
e7cadb16af
commit
4111ca4e0e
3 changed files with 23 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Worker Executor Service
|
||||||
|
ConditionPathExists=/tmp/worker-run-executor-service
|
||||||
|
Wants=cloud-final.service
|
||||||
|
After=cloud-final.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/local/libexec/worker-initialization-scripts/worker_executor.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
/usr/local/bin/aws secretsmanager get-secret-value \
|
||||||
|
--secret-id executor-subscription-manager-command | jq -r ".SecretString" > /tmp/subscription_manager_command.json
|
||||||
|
jq -r ".subscription_manager_command" /tmp/subscription_manager_command.json | bash
|
||||||
|
rm -f /tmp/subscription_manager_command.json
|
||||||
|
|
||||||
|
echo "Starting osbuild-jobsite-builder."
|
||||||
|
/usr/libexec/osbuild-composer/osbuild-jobsite-builder
|
||||||
|
|
@ -19,6 +19,7 @@ ExecStart=/usr/local/libexec/worker-initialization-scripts/get_koji_creds.sh
|
||||||
ExecStart=/usr/local/libexec/worker-initialization-scripts/get_oci_creds.sh
|
ExecStart=/usr/local/libexec/worker-initialization-scripts/get_oci_creds.sh
|
||||||
ExecStart=/usr/local/libexec/worker-initialization-scripts/get_pulp_creds.sh
|
ExecStart=/usr/local/libexec/worker-initialization-scripts/get_pulp_creds.sh
|
||||||
ExecStart=/usr/local/libexec/worker-initialization-scripts/worker_service.sh
|
ExecStart=/usr/local/libexec/worker-initialization-scripts/worker_service.sh
|
||||||
|
ExecStart=/usr/local/libexec/worker-initialization-scripts/worker_builder.sh
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue