request-webrunner.j2 458 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import json

software_url = '{{ software_release_url }}'
# Choose a SlapOS Node
# If you are deploying SlapOS Master with Webrunner, then computer_id is 'slaprunner'
computer_id = 'local_computer'

supply(software_url, computer_id)

parameter_dict = {
  'instance-amount': 30,
}

# Choose a title
title = "instance-of-{{ playbook_name }}"

request(software_url,
  title,
  filter_kw={'computer_guid': computer_id},
  partition_parameter_kw=parameter_dict}
)