- name: Check swiftlog sfconfig
  command: "grep -q {{ swifturl }}/{{ container }} /etc/zuul/zuul.conf"
  register: swiftlog_config
  failed_when: False

- name: Add swift logs configuration to sfconfig
  when: swiftlog_config.rc != 0
  command: >
    hieraedit.py --yaml /etc/puppet/hiera/sf/sfconfig.yaml --eval logs "{ 'disabled': False,
        'swift_logsexport_container': '{{ container }}',
        'swift_logsexport_logserver_prefix': '{{ swifturl }}/{{ container }}',
        'swift_logsexport_x_storage_url': '{{ swifturl }}',
        'swift_logsexport_x_tempurl_key': 'sf4ever',
        'swift_logsexport_send_tempurl_key': False,
      }"

- name: Restart sfconfig
  when: swiftlog_config.rc != 0
  command: sfconfig.sh

- name: Check swiftlog sfconfig
  command: "grep -q {{ swifturl }}/{{ container }} /etc/zuul/zuul.conf"
  register: swiftlog_config
  failed_when: False

- name: Add swift logs configuration to sfconfig
  when: swiftlog_config.rc != 0
  command: >
    hieraedit.py --yaml /etc/puppet/hiera/sf/sfconfig.yaml --eval logs "{ 'disabled': False,
        'swift_logsexport_container': '{{ container }}',
        'swift_logsexport_logserver_prefix': '{{ swifturl }}/{{ container }}',
        'swift_logsexport_x_storage_url': '{{ swifturl }}',
        'swift_logsexport_x_tempurl_key': 'sf4ever',
        'swift_logsexport_send_tempurl_key': 'false',
      }"

- name: Restart sfconfig
  when: swiftlog_config.rc != 0
  command: sfconfig.sh

Fix swift artifact integration tests
Fix swift artifact integration tests

This uses 'false' instead of False to trick puppet erb templating.

Change-Id: I00479ebcdd6efd337bb5140dd86aaf6d70730c22
