nixpkgs/nixos/modules/services/continuous-integration
Vincent Haupert 941c79b620 nixos/github-runner: fix bugs related to InaccessiblePaths=
This commit fixes two bugs:

1) When starting a github-runner for the very first time, the
   unconfigure script did not copy the `tokenFile` to the state
   directory. This case just was not handled so far. As a result, the
   runner could not configure. The unit did, however, fail even before
   as the state token file is configured as inaccessible for the service
   through `InaccessiblePaths=`. As the given path did not exist in the
   described case, setting up the unit's namespacing failed.

2) Similarly, the `tokenFile` is also marked as not accessible to the
   service user. There are, however, cases where other namespacing
   options make the files inaccessible even before `InaccessiblePaths=`
   kicks in; thus, they appear as non existing and cause the namespacing
   to fail yet again. Prefixing the entry with a `-` causes Systemd to
   ignore the entry if it cannot find it. This is the behavior we want.

I also took fixing those bugs as a chance to refactor the unconfigure
script to make it easier to follow.
2022-10-08 01:32:55 +02:00
..
buildbot nixos/*: literalDocBook -> literalMD 2022-08-27 19:18:29 +02:00
gocd-agent nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
gocd-server nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
hercules-ci-agent nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
hydra nixos/*: automatically convert option docs 2022-08-19 22:40:58 +02:00
jenkins treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
buildkite-agents.nix nixos/*: fix docbook deprecation notices 2022-09-10 18:23:13 +02:00
github-runner.nix nixos/github-runner: fix bugs related to InaccessiblePaths= 2022-10-08 01:32:55 +02:00
gitlab-runner.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
hail.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00