simple-minded install of systemd units
ClosedPublic

Authored by adamwill on Sep 2 2015, 4:58 PM.

Details

Summary

This works, but with some caveats. It won't work with any path
other than /usr/bin for the executable (there's no step where
you can substitute another bindir into the .service files) and
there is no uninstall possible. You can use 'pip uninstall' to
remove things installed with 'setup.py install', but this won't
catch stuff installed via data_files; if you 'pip uninstall
fedora-openqa' the systemd files stick around.

The alternative would be to set up a Makefile, I guess, which
would puppet setup.py. I'm not sure how desirable that is and
how much we care about the above issues.

Test Plan

Check this actually works as described in README.md.

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to simple-minded install of systemd units.Sep 2 2015, 4:58 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
garretraziel accepted this revision.Sep 3 2015, 10:17 AM

I don't see a problem with this solution. I think that we would only mimic setup.py behaviour by creating our own Makefile.

README.md
98

I think that we should also notice user that he need to either reboot or run sudo systemctl start openqa-trigger-current.timer.

setup.py
36

I know that it would be more verbose, but I'd rather copy only *.service and *.timer files, I would use glob.glob('systemd/*.{service,timer}') or something.

This revision is now accepted and ready to land.Sep 3 2015, 10:17 AM
This revision was automatically updated to reflect the committed changes.