aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjolo <bjorn.lofdahl@gmail.com>2016-09-30 10:41:24 +0200
committerbjorn lofdahl <bjorn.lofdahl@gmail.com>2016-10-03 10:14:04 +0000
commitffa6c118e413abe3d7842d775bb1e8fc48eafb1f (patch)
treef9fd176a37ddb2c0ee2866b481073f19f46dd72a
parent60e13ec142afabf0ca8d81122a5792a80c12521d (diff)
downloadkolla-ffa6c118e413abe3d7842d775bb1e8fc48eafb1f.tar.gz
kolla-ffa6c118e413abe3d7842d775bb1e8fc48eafb1f.zip
fixed kestone fernet prechecks for multinode deployments
command fails since it is a compound command. Changed to a single awk command instead. Closes-Bug: #1629206 Change-Id: Id7963b15c3321eca6f891a625b1ba140dc57aa22
-rw-r--r--ansible/roles/prechecks/tasks/service_checks.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/prechecks/tasks/service_checks.yml b/ansible/roles/prechecks/tasks/service_checks.yml
index 6c3b26c5e..add1cc318 100644
--- a/ansible/roles/prechecks/tasks/service_checks.yml
+++ b/ansible/roles/prechecks/tasks/service_checks.yml
@@ -45,7 +45,7 @@
- name: Checking fernet_token_expiry in globals.yml. Update fernet_token_expiry to allowed value if this task fails
run_once: true
- local_action: command grep '^[^#]*fernet_token_expiry:\s*\d*' "{{ CONFIG_DIR }}/globals.yml" | sed 's/[^0-9]*//g'
+ local_action: command awk '/^fernet_token_expiry/ { print $2 }' "{{ CONFIG_DIR }}/globals.yml"
register: result
changed_when: false
failed_when: result.stdout | regex_replace('(60|120|180|240|300|360|600|720|900|1200|1800|3600|7200|10800|14400|21600|28800|43200|86400|604800)', '') | search(".+")