Skip to content
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

Merged
merged 1 commit into from
Sep 20, 2023
Merged

backup foreman #1909

merged 1 commit into from
Sep 20, 2023

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Sep 12, 2023

No description provided.

@evgeni evgeni force-pushed the foreman-backup branch 2 times, most recently from b246a07 to af5ef9a Compare September 16, 2023 10:33
@evgeni evgeni marked this pull request as ready for review September 16, 2023 10:35
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}"],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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!

Copy link
Member Author

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 :)

puppet/modules/profiles/manifests/foreman.pp Outdated Show resolved Hide resolved
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
@evgeni evgeni enabled auto-merge (rebase) September 20, 2023 06:17
@evgeni evgeni merged commit ebf8a3c into master Sep 20, 2023
2 checks passed
@evgeni evgeni deleted the foreman-backup branch September 20, 2023 06:20
@evgeni
Copy link
Member Author

evgeni commented Sep 20, 2023

@evgeni evgeni added this to the centralized automatic backups milestone Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants