48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
---
|
|
schema: 'drydock/BootAction/v1'
|
|
metadata:
|
|
schema: 'metadata/Document/v1'
|
|
name: cloud-final-systemd-unit
|
|
replacement: false
|
|
storagePolicy: 'cleartext'
|
|
layeringDefinition:
|
|
abstract: false
|
|
layer: site
|
|
parentSelector:
|
|
name: cloud-final-systemd-unit
|
|
actions:
|
|
- method: replace
|
|
path: .assets
|
|
labels:
|
|
application: 'drydock'
|
|
data:
|
|
signaling: false
|
|
assets:
|
|
- path: /lib/systemd/system/cloud-final.service
|
|
type: unit
|
|
permissions: '444'
|
|
data: |
|
|
[Unit]
|
|
Description=Execute cloud user/final scripts
|
|
After=network-online.target cloud-config.service rc-local.service
|
|
Before=apt-daily.service
|
|
Wants=network-online.target cloud-config.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/cloud-init modules --mode=final
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
KillMode=process
|
|
TasksMax=infinity
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
data_pipeline:
|
|
- utf8_decode
|
|
...
|