Skip to content

Instantly share code, notes, and snippets.

@batk0
Created February 1, 2019 05:59
Show Gist options
  • Save batk0/32e03d360903cdfcdb8075267419b892 to your computer and use it in GitHub Desktop.
Save batk0/32e03d360903cdfcdb8075267419b892 to your computer and use it in GitHub Desktop.
---
version: 1.0
input:
- dry_run
- domains
tasks:
sk_update_domains:
with:
items: <% ctx(domains) %>
concurrency: 5
action: i371.sk_update_domain
input:
dry_run: <% ctx(dry_run) %>
domain: <% item() %>
next:
- publish:
domains_res: <% result() %>
do: log_results
- when: <% not(result().result) %>
do: fail
log_results:
join: all
action: i371.sk_log_results
input:
domains: <% ctx(domains_res) %>
@batk0
Copy link
Author

batk0 commented Feb 1, 2019

Each item looks like this:

      {
        "dh_name": "some FQDN",
        "domain_name": "some string",
        "db_port": 3306,
        "ds_name": "some string",
        "dh_id": 12,
        "db_name": "db_name",
        "db_host": "dbadress",
        "domain_id": 1941
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment