From a8cb729ddbc0cd6dcb0d5ef173bb74754b638a04 Mon Sep 17 00:00:00 2001 From: Andy Krohg Date: Wed, 14 Apr 2021 11:48:54 -0400 Subject: [PATCH] Update gitea cli usage for user creation --- hack/operate.conf | 2 +- roles/gitea-ocp/tasks/main.yml | 2 +- roles/gitea-ocp/tasks/user.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/operate.conf b/hack/operate.conf index 758716b..37d9356 100644 --- a/hack/operate.conf +++ b/hack/operate.conf @@ -1,6 +1,6 @@ IMG=quay.io/redhatgov/gitea-operator KIND=Gitea CR_SAMPLE=redhatgov_v1alpha1_gitea_openshift.yaml -VERSION=0.0.6 +VERSION=0.0.7 CHANNELS=alpha OSDK_VERSION=1.4.2 diff --git a/roles/gitea-ocp/tasks/main.yml b/roles/gitea-ocp/tasks/main.yml index f1cbd41..c6f4c44 100644 --- a/roles/gitea-ocp/tasks/main.yml +++ b/roles/gitea-ocp/tasks/main.yml @@ -127,7 +127,7 @@ pod: '{{ gitea_pod_name }}' command: > /home/gitea/gitea --config=/home/gitea/conf/app.ini - admin create-user --admin --access-token + admin user create --admin --access-token --username '{{ _gitea_admin_user }}' --password '{{ gitea_admin_password }}' --email '{{ _gitea_admin_email }}' diff --git a/roles/gitea-ocp/tasks/user.yml b/roles/gitea-ocp/tasks/user.yml index ddd1e64..aaedc33 100644 --- a/roles/gitea-ocp/tasks/user.yml +++ b/roles/gitea-ocp/tasks/user.yml @@ -19,7 +19,7 @@ pod: '{{ gitea_pod_name }}' command: > /home/gitea/gitea --config=/home/gitea/conf/app.ini - admin create-user --access-token + admin user create --access-token --username '{{ _giteauser.username }}' --password '{{ _giteauser.password }}' --email '{{ _giteauser.email }}'