gitlab-ci-multi-runner register --non-interactive does not correctly write config.toml
Summary
Hello guys. Using gitlab-ci-multi-runner register --non-interactive appears to miss to write some settings to config.toml. What am I doing wrong?
Steps to reproduce
Run as root / with sudo:
gitlab-ci-multi-runner register --non-interactive --registration-token ... --url https://gitlab..../ci --name test --executor virtualbox --virtualbox-base-name somebasename --virtualbox-base-snapshot 0x00 --virtualbox-disable-snapshots false --ssh-host 127.0.0.1 --ssh-port 22 --ssh-identity-file /some/file --ssh-user abc123 --ssh-password password123 -c /etc/gitlab-runner/config.toml
Actual behavior
/etc/gitlab-runner/config.toml looks like this:
concurrent = 1
check_interval = 0
[[runners]]
name = "test"
url = "https://gitlab..../ci"
token = "..."
executor = "virtualbox"
[runners.cache]
Expected behavior
concurrent = 1
check_interval = 0
[[runners]]
name = "test"
url = "https://gitlab..../ci"
token = "..."
executor = "virtualbox"
[runners.ssh]
port = "22"
user = "abc123"
password = "password123"
...
[runners.virtualbox]
...
Relevant logs and/or screenshots
N/A
Environment description
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
linux 3.16.0-4-amd64
Installed via
$ curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
$ cat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOF
$ sudo apt-get install gitlab-ci-multi-runner
Used GitLab Runner version
Version: 1.10.4
Git revision: b32125f
Git branch: 1-10-stable
GO version: go1.7.5
Built: Tue, 31 Jan 2017 14:39:18 +0000
OS/Arch: linux/amd64
Thank you!