splunk / attack_range_local

Build a attack range in your local machine
Apache License 2.0
130 stars 39 forks source link

Enhancement: Add default timeout for Ansible get_url options #38

Closed malvidin closed 1 year ago

malvidin commented 3 years ago

The default timeout may not work for all URLs retrieved. Adding a default "url_timeout" would allow setting a default in one location, rather than finding all locations where a get_url may timeout.

The Splunk and ESCU downloads have both taken longer than the default timeout (10s), causing build failures.

- name: download splunk
  tags: install
  get_url:
    url: '{{ splunk_url }}'
    dest: /opt/
    timeout:  30
  when: splunk_path.stat.exists == false

or to scale based on the size of the download or hosting provider:

- name: download splunk
  tags: install
  get_url:
    url: '{{ splunk_url }}'
    dest: /opt/
    timeout:  '{{  url_timeout * 4 }}'
  when: splunk_path.stat.exists == false
P4T12ICK commented 3 years ago

That is great suggestion. Thank you.

pyth0n1c commented 1 year ago

Closing this issue as Attack Range Local has been deprecated (and functionality migrated into Attack Range). Please use https://github.com/splunk/attack_range for all future simulation needs. If this continues to be an issue, please open a ticket in that repo.