Currently it's only checked, if the config.toml contains a runner with the same description as specified in the puppet configuration, but not if its parameters match the puppet config.
Instead of using grep, awk or similar to find matching lines in the config.toml, I think, the best solution would be to use a config.toml-runner template and use puppetlabs-concat to join single runner-templates in the final config.toml. This rebuilds the config on every puppet run and the changes are automatically picked up by gitlab-ci-multi-runner.
But this would need some bigger refactoring.
Currently it's only checked, if the
config.tomlcontains a runner with the same description as specified in the puppet configuration, but not if its parameters match the puppet config.Instead of using
grep,awkor similar to find matching lines in theconfig.toml, I think, the best solution would be to use aconfig.toml-runner template and usepuppetlabs-concatto join single runner-templates in the finalconfig.toml. This rebuilds the config on every puppet run and the changes are automatically picked up by gitlab-ci-multi-runner.But this would need some bigger refactoring.