-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backup foreman #1909
backup foreman #1909
Conversation
b246a07
to
af5ef9a
Compare
af5ef9a
to
c8ab85c
Compare
restic::repository { 'foreman': | ||
backup_cap_dac_read_search => true, | ||
backup_path => $backup_path, | ||
backup_pre_cmd => ["+/usr/bin/foreman-maintain backup online --assumeyes --preserve-directory ${backup_path}"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know systemd could do this, but nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither did I until a few days ago :)
using `+/usr/bin/foreman-maintain` makes systemd execute the binary as root, not as the user the main execution happens as See https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines
c8ab85c
to
e05f512
Compare
FTR, I had to apply the following patches locally to get things to work: |
No description provided.