renamed sl to sl_vm and updated docs
namespace for softlayer modules should now be sl_
This commit is contained in:
parent
b228bfb575
commit
745df06abc
1 changed files with 5 additions and 4 deletions
|
@ -146,7 +146,7 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build instance request
|
- name: Build instance request
|
||||||
local_action:
|
local_action:
|
||||||
module: sl
|
module: sl_vm
|
||||||
hostname: instance-1
|
hostname: instance-1
|
||||||
domain: anydomain.com
|
domain: anydomain.com
|
||||||
datacenter: dal09
|
datacenter: dal09
|
||||||
|
@ -167,7 +167,7 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Build instances request
|
- name: Build instances request
|
||||||
local_action:
|
local_action:
|
||||||
module: sl
|
module: sl_vm
|
||||||
hostname: "{{ item.hostname }}"
|
hostname: "{{ item.hostname }}"
|
||||||
domain: "{{ item.domain }}"
|
domain: "{{ item.domain }}"
|
||||||
datacenter: "{{ item.datacenter }}"
|
datacenter: "{{ item.datacenter }}"
|
||||||
|
@ -193,7 +193,7 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
- name: Cancel by tag
|
- name: Cancel by tag
|
||||||
local_action:
|
local_action:
|
||||||
module: sl
|
module: sl_vm
|
||||||
state: absent
|
state: absent
|
||||||
tags: ansible-module-test
|
tags: ansible-module-test
|
||||||
'''
|
'''
|
||||||
|
@ -203,6 +203,7 @@ RETURN = '''# '''
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
#TODO: get this info from API
|
||||||
STATES = ['present', 'absent']
|
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']
|
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]
|
CPU_SIZES = [1,2,4,8,16]
|
||||||
|
@ -345,4 +346,4 @@ def main():
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
Loading…
Reference in a new issue