Skip to content

Commit

Permalink
fix template defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
devopswise committed Apr 9, 2019
1 parent a358d2e commit 6efbce3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions roles/cdtportal/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
become: yes
become_method: sudo

- name: get or generate local.admin pass
set_fact:
openldap_admin_pass: "{{ lookup('password', '../credentials/openldap_admin_pass chars=ascii_letters,digits,hexdigits length=12') }}"

- name: sync application.yaml file for cdtportal
template:
src: ../templates/application.yml.j2
Expand Down
8 changes: 4 additions & 4 deletions roles/cdtportal/templates/application.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ spring:
urls: ldap://cdt.{{ base_domain }}:389
base: {{ openldap_full_domain }}
username: cn=admin,{{ openldap_full_domain }}
password: Jah8qOetood
password: {{ openldap_admin_pass }}
jenkins:
baseUrl: https://jenkins.{{ base_domain }}
username: admin
password: Jah8qOetood
password: {{ openldap_admin_pass }}
rocketChat:
baseUrl: https://rocketchat.{{ base_domain }}
username: local.admin
password: Jah8q123!
password: {{ openldap_admin_pass }}
debug: "true"
gitea:
baseUrl: https://gitea.{{ base_domain }}/api/v1
username: local.admin
password: Jah8q123!
password: {{ openldap_admin_pass }}
debug: "true"

0 comments on commit 6efbce3

Please sign in to comment.