Hello.
I’m trying to create a gitlab-runnerservice and I have an issue with USER_INPUTSscopes.
In the following service, I want ONEAPP_RUNNER_GITLAB_TOKEN to be different per role:
{
"name": "gitlab-runner-debian-12",
"deployment": "straight",
"description": "",
"roles": [
{
"name": "docker",
"cardinality": 1,
"min_vms": 0,
"max_vms": 10,
"cooldown": 30,
"elasticity_policies": [],
"scheduled_policies": [],
"user_inputs": {
"ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
},
"template_id": 2,
"type": "vm",
"template_contents": {
"NIC": [
{
"NAME": "_NIC0",
"NETWORK_ID": "$Network"
}
],
"DISK": [
{
"IMAGE": "gitlab-runner-debian-12",
"IMAGE_UNAME": "nebula",
"SIZE": "51200"
}
],
"TOKEN": "YES",
"ONEAPP_RUNNER_EXECUTOR_TYPE": "docker"
}
},
{
"name": "packer",
"cardinality": 1,
"min_vms": 0,
"max_vms": 10,
"cooldown": 30,
"elasticity_policies": [],
"scheduled_policies": [],
"user_inputs": {
"ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
},
"template_id": 2,
"type": "vm",
"template_contents": {
"NIC": [
{
"NAME": "_NIC0",
"NETWORK_ID": "$Network"
}
],
"DISK": [
{
"IMAGE": "gitlab-runner-debian-12",
"IMAGE_UNAME": "nebula",
"SIZE": "51200"
}
],
"TOKEN": "YES",
"ONEAPP_RUNNER_EXECUTOR_TYPE": "packer"
}
},
{
"name": "shell",
"cardinality": 1,
"min_vms": 0,
"max_vms": 10,
"cooldown": 30,
"elasticity_policies": [],
"scheduled_policies": [],
"user_inputs": {
"ONEAPP_RUNNER_GITLAB_TOKEN": "M|password|Gitlab secret token for the runner||"
},
"template_id": 2,
"type": "vm",
"template_contents": {
"NIC": [
{
"NAME": "_NIC0",
"NETWORK_ID": "$Network"
}
],
"DISK": [
{
"IMAGE": "gitlab-runner-debian-12",
"IMAGE_UNAME": "nebula",
"SIZE": "51200"
}
],
"TOKEN": "YES",
"ONEAPP_RUNNER_EXECUTOR_TYPE": "shell"
}
}
],
"ready_status_gate": false,
"automatic_deletion": false,
"networks": {
"Network": "M|network|Network to access internet||id:"
},
"user_inputs": {
"ONEAPP_RUNNER_RUNNER_NAME": "O|text|Name of the Runner||",
"ONEAPP_RUNNER_GITLAB_URL": "M|text|URL of Gitlab||https://gitlab.mim-libre.fr",
"ONEAPP_RUNNER_EXECUTOR_SHELL": "O|text|Shell to use for \"Shell\" executor||bash",
"ONEAPP_CACHE_S3_ADDRESS": "O|text|Address of the S3 cache server||",
"ONEAPP_CACHE_S3_ACCESSKEY": "O|text|Access key for S3||",
"ONEAPP_CACHE_S3_SECRETKEY": "O|password|Secret key for S3||",
"ONEAPP_CACHE_S3_BUCKET": "O|text|Bucket name||",
"ONEAPP_CACHE_S3_INSECURE": "O|boolean|Configure S3 over HTTP without TLS||"
},
"registration_time": 1756133788
}
But, it’s actually not the case:
- I set
ONEAPP_RUNNER_GITLAB_TOKENfor roledocker - I switch to role
packerand theONEAPP_RUNNER_GITLAB_TOKENis filled, I had more text to it - I switch back to
dockerrole and theONEAPP_RUNNER_GITLAB_TOKENcontains more characters.