Use name instead of username for a user
Change-Id: I2dd4c1ffdd6c7005029e9375849f0e8082d1a331
diff --git a/metadata/service/server/single.yml b/metadata/service/server/single.yml
index 66f9d6c..0524e89 100644
--- a/metadata/service/server/single.yml
+++ b/metadata/service/server/single.yml
@@ -12,7 +12,7 @@
enabled: true
users:
admin:
- username: ${_param:rundeck_admin_username}
+ name: ${_param:rundeck_admin_username}
password: ${_param:rundeck_admin_password}
roles:
- user
diff --git a/rundeck/files/framework.properties b/rundeck/files/framework.properties
index 9b47b69..566de8e 100644
--- a/rundeck/files/framework.properties
+++ b/rundeck/files/framework.properties
@@ -3,7 +3,7 @@
{%- set admin = server.users.admin %}
-framework.server.username={{ admin.username }}
+framework.server.username={{ admin.name }}
framework.server.password={{ admin.password }}
framework.server.hostname={{ server.api.hostname }}
diff --git a/rundeck/files/realm.properties b/rundeck/files/realm.properties
index c6430fd..5926dbc 100644
--- a/rundeck/files/realm.properties
+++ b/rundeck/files/realm.properties
@@ -1,5 +1,5 @@
{% from "rundeck/map.jinja" import server with context %}
{%- for user in server.users.values() %}
-{{ user.username }}:{{ user.password }},{{ user.roles|join(',') }}
+{{ user.name }}:{{ user.password }},{{ user.roles|join(',') }}
{%- endfor %}