From 1d1c661890318a3b41f66003bd154fbd207caa1f Mon Sep 17 00:00:00 2001 From: Elias Showk Date: Fri, 23 Feb 2018 17:22:55 +0100 Subject: [PATCH] hobo-manage cook add a superuser (#21882) --- roles/deploy-tenants/defaults/main.yml | 5 +++++ roles/deploy-tenants/templates/hobo-manage-recipe-with-wcs.j2 | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/deploy-tenants/defaults/main.yml diff --git a/roles/deploy-tenants/defaults/main.yml b/roles/deploy-tenants/defaults/main.yml new file mode 100644 index 0000000..af149ab --- /dev/null +++ b/roles/deploy-tenants/defaults/main.yml @@ -0,0 +1,5 @@ +superuser_username: "admin" +superuser_email: "admin@localhost" +superuser_firstname: "admin" +superuser_lastname: "admin" +superuser_password: "admin" diff --git a/roles/deploy-tenants/templates/hobo-manage-recipe-with-wcs.j2 b/roles/deploy-tenants/templates/hobo-manage-recipe-with-wcs.j2 index d7badc5..7003d78 100644 --- a/roles/deploy-tenants/templates/hobo-manage-recipe-with-wcs.j2 +++ b/roles/deploy-tenants/templates/hobo-manage-recipe-with-wcs.j2 @@ -3,6 +3,13 @@ {"create-hobo": { "url": "https://{{tenants_conf['dev-hobo']}}/" }}, + {"create-superuser": { + "username": "{{superuser_username}}", + "first_name": "{{superuser_firstname}}", + "last_name": "{{superuser_lastname}}", + "email": "{{superuser_email}}", + "password": "{{superuser_password}}" + }}, {"create-authentic": { "url": "https://{{tenants_conf['connexion-authentic']}}/", "title": "Connexion" -- 2.16.1