浏览代码

Updated to using oo_random_word for secret gen

ewolinetz 7 年之前
父节点
当前提交
d301171b2f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      roles/openshift_logging_kibana/tasks/main.yaml

+ 2 - 2
roles/openshift_logging_kibana/tasks/main.yaml

@@ -55,7 +55,7 @@
 # gen session_secret if necessary
 - name: Generate session secret
   copy:
-    content: "{{ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | random_word(200) }}"
+    content: "{{ 200 | oo_random_word }}"
     dest: "{{ generated_certs_dir }}/session_secret"
   when:
   - not session_secret_file.stat.exists
@@ -63,7 +63,7 @@
 # gen oauth_secret if necessary
 - name: Generate oauth secret
   copy:
-    content: "{{ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | random_word(64) }}"
+    content: "{{ 64 | oo_random_word }}"
     dest: "{{ generated_certs_dir }}/oauth_secret"
   when:
   - not oauth_secret_file.stat.exists