|
|
|
@ -146,7 +146,7 @@ EXAMPLES = '''
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Build instance request
|
|
|
|
|
local_action:
|
|
|
|
|
module: sl
|
|
|
|
|
module: sl_vm
|
|
|
|
|
hostname: instance-1
|
|
|
|
|
domain: anydomain.com
|
|
|
|
|
datacenter: dal09
|
|
|
|
@ -167,7 +167,7 @@ EXAMPLES = '''
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Build instances request
|
|
|
|
|
local_action:
|
|
|
|
|
module: sl
|
|
|
|
|
module: sl_vm
|
|
|
|
|
hostname: "{{ item.hostname }}"
|
|
|
|
|
domain: "{{ item.domain }}"
|
|
|
|
|
datacenter: "{{ item.datacenter }}"
|
|
|
|
@ -193,7 +193,7 @@ EXAMPLES = '''
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Cancel by tag
|
|
|
|
|
local_action:
|
|
|
|
|
module: sl
|
|
|
|
|
module: sl_vm
|
|
|
|
|
state: absent
|
|
|
|
|
tags: ansible-module-test
|
|
|
|
|
'''
|
|
|
|
@ -203,6 +203,7 @@ RETURN = '''# '''
|
|
|
|
|
|
|
|
|
|
import time
|
|
|
|
|
|
|
|
|
|
#TODO: get this info from API
|
|
|
|
|
STATES = ['present', 'absent']
|
|
|
|
|
DATACENTERS = ['ams01','ams03','dal01','dal05','dal06','dal09','fra02','hkg02','hou02','lon2','mel01','mex01','mil01','mon01','par01','sjc01','sjc03','sao01','sea01','sng01','syd01','tok02','tor01','wdc01','wdc04']
|
|
|
|
|
CPU_SIZES = [1,2,4,8,16]
|