Skip to content

Replace hardcoded configurations by play vars#13

Open
fwiesweg wants to merge 5 commits into
Truelite:mainfrom
fwiesweg:main
Open

Replace hardcoded configurations by play vars#13
fwiesweg wants to merge 5 commits into
Truelite:mainfrom
fwiesweg:main

Conversation

@fwiesweg

Copy link
Copy Markdown

Hi,

I pulled some of the hard-coded constants into the playbook and command line arguments. If you feel like you'd like this upstream, let me know and I'll update the README. Fixes and improvements are of course welcome.

Best,
Florian

@fwiesweg

Copy link
Copy Markdown
Author

Oh and thanks for the good work! Really made our builds run quite a bit quicker.

@spanezz

spanezz commented Oct 31, 2022

Copy link
Copy Markdown
Contributor

Thanks, I like the direction this is going!

Unless I'm mistaken, nspawn-runner with this change would change behaviour on existing deployments. I wonder if the previous hardcoded values could be used as defaults when nspawn_runner_* keys are not present in the configuration, to allow smooth upgrades?

@kapouer, since you're also having nspawn-runner deployed, what do you think?

@kapouer

kapouer commented Oct 31, 2022

Copy link
Copy Markdown
Contributor

Indeed, keeping default behavior is good, unless there are better defaults which should be used.

@fwiesweg

fwiesweg commented Nov 2, 2022

Copy link
Copy Markdown
Author

There you go ;-) I have not gotten around to test the latest commit with the old defaults in our installation, but the changes are quite straightforward.

Some systems (e.g. Arch) do not necessarily have the systemd binary on
PATH, so instead rely on something which we need to call later anyway.
@fwiesweg

fwiesweg commented Nov 4, 2022

Copy link
Copy Markdown
Author

Just tested it on our ci infrastructure and of course found some ... not so intelligent bugs. I fixed them all and updated the branch. README has been updated as well.

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.

3 participants