summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master/config.yml
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-12-09 12:08:56 -0500
committerAndrew Butcher <abutcher@redhat.com>2015-12-09 12:08:56 -0500
commitdd17fd49597ec27f66ff9436f211036125dbb08f (patch)
tree1ac7d9611d0d04ab43c35ad1a3b27d17cabd8789 /playbooks/common/openshift-master/config.yml
parent530aaf841d38c036a2d08df075f85d63b8a52840 (diff)
downloadopenshift-dd17fd49597ec27f66ff9436f211036125dbb08f.tar.gz
openshift-dd17fd49597ec27f66ff9436f211036125dbb08f.tar.bz2
openshift-dd17fd49597ec27f66ff9436f211036125dbb08f.tar.xz
openshift-dd17fd49597ec27f66ff9436f211036125dbb08f.zip
Simplify session secrets overrides.
Diffstat (limited to 'playbooks/common/openshift-master/config.yml')
-rw-r--r--playbooks/common/openshift-master/config.yml12
1 files changed, 2 insertions, 10 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml
index becd68dbe..196cdc8fe 100644
--- a/playbooks/common/openshift-master/config.yml
+++ b/playbooks/common/openshift-master/config.yml
@@ -249,22 +249,14 @@
- name: Generate session authentication key
command: /usr/bin/openssl rand -base64 24
register: session_auth_output
- with_sequence: count=1
when: openshift_master_session_auth_secrets is undefined
- name: Generate session encryption key
command: /usr/bin/openssl rand -base64 24
register: session_encryption_output
- with_sequence: count=1
when: openshift_master_session_encryption_secrets is undefined
- set_fact:
- session_auth_secret: "{{ openshift_master_session_auth_secrets
- | default(session_auth_output.results
- | oo_collect(attribute='stdout')
- | list) }}"
- session_encryption_secret: "{{ openshift_master_session_encryption_secrets
- | default(session_encryption_output.results
- | oo_collect(attribute='stdout')
- | list) }}"
+ session_auth_secret: "{{ openshift_master_session_auth_secrets | default([session_auth_output.stdout]) }}"
+ session_encryption_secret: "{{ openshift_master_session_encryption_secrets | default([session_encryption_output.stdout]) }}"
- name: Parse named certificates
hosts: localhost