From d51a2b3ceda7a9d33066db4bdde2998cca62ae24 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 11 May 2019 14:41:00 +0200 Subject: [PATCH] initialize admin user --- defaults/main.yml | 2 +- templates/services/droneci-compose.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index c52f4a1..2ec1154 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -81,7 +81,7 @@ droneci_server_http_port: 8080 droneci_server_proxy_port: "{{ droneci_server_http_port }}" droneci_server_proxy_protocol: http -# droneci_admins: # defaults to not set +# droneci_admin: # defaults to not set # droneci_http_proxy: # defaults to not set # droneci_https_proxy: # defaults to not set # droneci_no_proxy: (see below) diff --git a/templates/services/droneci-compose.yml.j2 b/templates/services/droneci-compose.yml.j2 index 35a37f9..620d4c0 100644 --- a/templates/services/droneci-compose.yml.j2 +++ b/templates/services/droneci-compose.yml.j2 @@ -28,7 +28,7 @@ services: - DRONE_SERVER_PROTO={{ droneci_host | urlsplit('scheme') }} - DRONE_AGENTS_ENABLED=true - DRONE_RPC_SECRET={{ droneci_secret }} - - DRONE_USER_CREATE={{ droneci_admins | default(omit) | join(",") }} + - DRONE_USER_CREATE=username:{{ droneci_admin }},admin:true - DRONE_LOGS_COLOR=true - DRONE_LOGS_PRETTY=true - DRONE_TLS_AUTOCERT=false