14 lines
407 B
Desktop File
14 lines
407 B
Desktop File
[Unit]
|
|
Description=Creates an encrypted ramfs for Octavia certs
|
|
After=cloud-config.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/local/bin/certfs-ramfs
|
|
ExecStop=/bin/sh -c 'certs_path=$$(awk "/base_cert_dir / {printf \\$$3}" /etc/octavia/amphora-agent.conf); umount "$${certs_path}"; cryptsetup luksClose /dev/mapper/certfs-ramfs;'
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
|
|
[Install]
|
|
WantedBy=amphora-agent.service
|