summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-04-10 22:02:57 -0700
committerTim Burke <tim.burke@gmail.com>2020-06-09 18:27:54 -0700
commit79811df34c84b416ce9f445926b31a23a32ea1a4 (patch)
tree5dcd0900c2680c5573e0121b6badf2b3f365d9a0 /tools
parent0b86f681f5e225854b6e66f3e5f2295e9ff3107e (diff)
downloadswift-79811df34c84b416ce9f445926b31a23a32ea1a4.tar.gz
Use ini_file to update timeout instead of crudini
crudini seems to have trouble on py3 -- still not sure *why* it's using py3 for the losf job, though... Change-Id: Id98055994c8d59e561372417c9eb4aec969afc6a
Diffstat (limited to 'tools')
-rw-r--r--tools/playbooks/saio_single_node_setup/setup_saio.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/playbooks/saio_single_node_setup/setup_saio.yaml b/tools/playbooks/saio_single_node_setup/setup_saio.yaml
index 60d39c5f3..c78cefda7 100644
--- a/tools/playbooks/saio_single_node_setup/setup_saio.yaml
+++ b/tools/playbooks/saio_single_node_setup/setup_saio.yaml
@@ -153,10 +153,12 @@
with_items: "{{ find_result.files }}"
- name: set the options in the proxy config file
- shell:
- cmd: |
- crudini --set /etc/swift/proxy-server.conf app:proxy-server node_timeout 20
- executable: /bin/bash
+ ini_file:
+ path: /etc/swift/proxy-server.conf
+ section: app:proxy-server
+ option: node_timeout
+ value: 20
+ create: no
- name: copy the SAIO scripts for resetting the environment
command: cp -r {{ zuul.project.src_dir }}/doc/saio/bin /home/{{ ansible_ssh_user }}/bin creates=/home/{{ ansible_ssh_user }}/bin