cloudstack: rename modules to more meaningful name schema
This commit is contained in:
parent
2f554518a6
commit
8f0a2ce50d
3 changed files with 13 additions and 13 deletions
|
@ -19,7 +19,7 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
module: cloudstack_fw
|
module: cs_firewall
|
||||||
short_description: Manages firewall rules on Apache CloudStack based clouds.
|
short_description: Manages firewall rules on Apache CloudStack based clouds.
|
||||||
description: Creates and removes firewall rules.
|
description: Creates and removes firewall rules.
|
||||||
version_added: '2.0'
|
version_added: '2.0'
|
||||||
|
@ -77,7 +77,7 @@ EXAMPLES = '''
|
||||||
---
|
---
|
||||||
# Allow inbound port 80/tcp from 1.2.3.4 to 4.3.2.1
|
# Allow inbound port 80/tcp from 1.2.3.4 to 4.3.2.1
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_fw
|
module: cs_firewall
|
||||||
ip_address: 4.3.2.1
|
ip_address: 4.3.2.1
|
||||||
start_port: 80
|
start_port: 80
|
||||||
end_port: 80
|
end_port: 80
|
||||||
|
@ -86,7 +86,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
# Allow inbound tcp/udp port 53 to 4.3.2.1
|
# Allow inbound tcp/udp port 53 to 4.3.2.1
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_fw
|
module: cs_firewall
|
||||||
ip_address: 4.3.2.1
|
ip_address: 4.3.2.1
|
||||||
start_port: 53
|
start_port: 53
|
||||||
end_port: 53
|
end_port: 53
|
||||||
|
@ -98,7 +98,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
# Ensure firewall rule is removed
|
# Ensure firewall rule is removed
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_fw
|
module: cs_firewall
|
||||||
ip_address: 4.3.2.1
|
ip_address: 4.3.2.1
|
||||||
start_port: 8000
|
start_port: 8000
|
||||||
end_port: 8888
|
end_port: 8888
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: cloudstack_iso
|
module: cs_iso
|
||||||
short_description: Manages ISOs images on Apache CloudStack based clouds.
|
short_description: Manages ISOs images on Apache CloudStack based clouds.
|
||||||
description: Register and remove ISO images.
|
description: Register and remove ISO images.
|
||||||
version_added: '2.0'
|
version_added: '2.0'
|
||||||
|
@ -100,7 +100,7 @@ EXAMPLES = '''
|
||||||
---
|
---
|
||||||
# Register an ISO if ISO name does not already exist.
|
# Register an ISO if ISO name does not already exist.
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_iso
|
module: cs_iso
|
||||||
name: Debian 7 64-bit
|
name: Debian 7 64-bit
|
||||||
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
||||||
os_type: Debian GNU/Linux 7(64-bit)
|
os_type: Debian GNU/Linux 7(64-bit)
|
||||||
|
@ -108,7 +108,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
# Register an ISO with given name if ISO md5 checksum does not already exist.
|
# Register an ISO with given name if ISO md5 checksum does not already exist.
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_iso
|
module: cs_iso
|
||||||
name: Debian 7 64-bit
|
name: Debian 7 64-bit
|
||||||
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
url: http://mirror.switch.ch/ftp/mirror/debian-cd/current/amd64/iso-cd/debian-7.7.0-amd64-netinst.iso
|
||||||
os_type:
|
os_type:
|
||||||
|
@ -117,14 +117,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
# Remove an ISO by name
|
# Remove an ISO by name
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_iso
|
module: cs_iso
|
||||||
name: Debian 7 64-bit
|
name: Debian 7 64-bit
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
|
||||||
# Remove an ISO by checksum
|
# Remove an ISO by checksum
|
||||||
- local_action:
|
- local_action:
|
||||||
module: cloudstack_iso
|
module: cs_iso
|
||||||
name: Debian 7 64-bit
|
name: Debian 7 64-bit
|
||||||
checksum: 0b31bccccb048d20b551f70830bb7ad0
|
checksum: 0b31bccccb048d20b551f70830bb7ad0
|
||||||
state: absent
|
state: absent
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: cloudstack_sshkey
|
module: cs_sshkeypair
|
||||||
short_description: Manages SSH keys on Apache CloudStack based clouds.
|
short_description: Manages SSH keys on Apache CloudStack based clouds.
|
||||||
description:
|
description:
|
||||||
- If no key was found and no public key was provided and a new SSH
|
- If no key was found and no public key was provided and a new SSH
|
||||||
|
@ -53,15 +53,15 @@ options:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
---
|
---
|
||||||
# create a new private / public key pair:
|
# create a new private / public key pair:
|
||||||
- local_action: cloudstack_sshkey name=linus@example.com
|
- local_action: cs_sshkeypair name=linus@example.com
|
||||||
register: key
|
register: key
|
||||||
- debug: msg='private key is {{ key.private_key }}'
|
- debug: msg='private key is {{ key.private_key }}'
|
||||||
|
|
||||||
# remove a public key by its name:
|
# remove a public key by its name:
|
||||||
- local_action: cloudstack_sshkey name=linus@example.com state=absent
|
- local_action: cs_sshkeypair name=linus@example.com state=absent
|
||||||
|
|
||||||
# register your existing local public key:
|
# register your existing local public key:
|
||||||
- local_action: cloudstack_sshkey name=linus@example.com public_key='{{ lookup('file', '~/.ssh/id_rsa.pub') }}'
|
- local_action: cs_sshkeypair name=linus@example.com public_key='{{ lookup('file', '~/.ssh/id_rsa.pub') }}'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
Loading…
Reference in a new issue