Skip to content

Commit a3d0499

Browse files
author
Rene Moser
committed
use FQCN in examples
1 parent afd434f commit a3d0499

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+195
-326
lines changed

plugins/modules/cs_account.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
EXAMPLES = '''
101101
- name: create an account in domain 'CUSTOMERS'
102-
cs_account:
102+
ngine_io.cloudstack.cs_account:
103103
name: customer_xy
104104
username: customer_xy
105105
password: S3Cur3
@@ -109,42 +109,39 @@
109109
domain: CUSTOMERS
110110
role: Domain Admin
111111
112-
113112
- name: Lock an existing account in domain 'CUSTOMERS'
114-
cs_account:
113+
ngine_io.cloudstack.cs_account:
115114
name: customer_xy
116115
domain: CUSTOMERS
117116
state: locked
118117
119-
120118
- name: Disable an existing account in domain 'CUSTOMERS'
121-
cs_account:
119+
ngine_io.cloudstack.cs_account:
122120
name: customer_xy
123121
domain: CUSTOMERS
124122
state: disabled
125123
126-
127124
- name: Enable an existing account in domain 'CUSTOMERS'
128-
cs_account:
125+
ngine_io.cloudstack.cs_account:
129126
name: customer_xy
130127
domain: CUSTOMERS
131128
state: enabled
132129
133130
- name: Remove an account in domain 'CUSTOMERS'
134-
cs_account:
131+
ngine_io.cloudstack.cs_account:
135132
name: customer_xy
136133
domain: CUSTOMERS
137134
state: absent
138135
139136
- name: Create a single user LDAP account in domain 'CUSTOMERS'
140-
cs_account:
137+
ngine_io.cloudstack.cs_account:
141138
name: customer_xy
142139
username: customer_xy
143140
domain: CUSTOMERS
144141
ldap_domain: cn=customer_xy,cn=team_xy,ou=People,dc=domain,dc=local
145142
146143
- name: Create a LDAP account in domain 'CUSTOMERS' and bind it to a LDAP group
147-
cs_account:
144+
ngine_io.cloudstack.cs_account:
148145
name: team_xy
149146
username: customer_xy
150147
domain: CUSTOMERS

plugins/modules/cs_affinitygroup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959

6060
EXAMPLES = '''
6161
- name: Create a affinity group
62-
cs_affinitygroup:
62+
ngine_io.cloudstack.cs_affinitygroup:
6363
name: haproxy
6464
affinity_type: host anti-affinity
6565
6666
- name: Remove a affinity group
67-
cs_affinitygroup:
67+
ngine_io.cloudstack.cs_affinitygroup:
6868
name: haproxy
6969
state: absent
7070
'''

plugins/modules/cs_cluster.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,29 +112,26 @@
112112

113113
EXAMPLES = '''
114114
- name: Ensure a cluster is present
115-
cs_cluster:
115+
ngine_io.cloudstack.cs_cluster:
116116
name: kvm-cluster-01
117117
zone: ch-zrh-ix-01
118118
hypervisor: KVM
119119
cluster_type: CloudManaged
120120
121-
122121
- name: Ensure a cluster is disabled
123-
cs_cluster:
122+
ngine_io.cloudstack.cs_cluster:
124123
name: kvm-cluster-01
125124
zone: ch-zrh-ix-01
126125
state: disabled
127126
128-
129127
- name: Ensure a cluster is enabled
130-
cs_cluster:
128+
ngine_io.cloudstack.cs_cluster:
131129
name: kvm-cluster-01
132130
zone: ch-zrh-ix-01
133131
state: enabled
134132
135-
136133
- name: Ensure a cluster is absent
137-
cs_cluster:
134+
ngine_io.cloudstack.cs_cluster:
138135
name: kvm-cluster-01
139136
zone: ch-zrh-ix-01
140137
state: absent

plugins/modules/cs_configuration.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,24 @@
5454

5555
EXAMPLES = '''
5656
- name: Ensure global configuration
57-
cs_configuration:
57+
ngine_io.cloudstack.cs_configuration:
5858
name: router.reboot.when.outofband.migrated
5959
value: false
6060
61-
6261
- name: Ensure zone configuration
63-
cs_configuration:
62+
ngine_io.cloudstack.cs_configuration:
6463
name: router.reboot.when.outofband.migrated
6564
zone: ch-gva-01
6665
value: true
6766
68-
6967
- name: Ensure storage configuration
70-
cs_configuration:
68+
ngine_io.cloudstack.cs_configuration:
7169
name: storage.overprovisioning.factor
7270
storage: storage01
7371
value: 2.0
7472
75-
7673
- name: Ensure account configuration
77-
cs_configuration:
74+
ngine_io.cloudstack.cs_configuration:
7875
name: allow.public.user.templates
7976
value: false
8077
account: acme inc

plugins/modules/cs_disk_offering.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,22 @@
104104

105105
EXAMPLES = '''
106106
- name: Create a disk offering with local storage
107-
cs_disk_offering:
107+
ngine_io.cloudstack.cs_disk_offering:
108108
name: small
109109
display_text: Small 10GB
110110
disk_size: 10
111111
storage_type: local
112112
113-
114113
- name: Create or update a disk offering with shared storage
115-
cs_disk_offering:
114+
ngine_io.cloudstack.cs_disk_offering:
116115
name: small
117116
display_text: Small 10GB
118117
disk_size: 10
119118
storage_type: shared
120119
storage_tags: SAN01
121120
122-
123121
- name: Remove a disk offering
124-
cs_disk_offering:
122+
ngine_io.cloudstack.cs_disk_offering:
125123
name: small
126124
state: absent
127125
'''

plugins/modules/cs_domain.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,17 @@
4949

5050
EXAMPLES = '''
5151
- name: Create a domain
52-
cs_domain:
52+
ngine_io.cloudstack.cs_domain:
5353
path: ROOT/customers
5454
network_domain: customers.example.com
5555
56-
5756
- name: Create another subdomain
58-
cs_domain:
57+
ngine_io.cloudstack.cs_domain:
5958
path: ROOT/customers/xy
6059
network_domain: xy.customers.example.com
6160
62-
6361
- name: Remove a domain
64-
cs_domain:
62+
ngine_io.cloudstack.cs_domain:
6563
path: ROOT/customers/xy
6664
state: absent
6765
'''

plugins/modules/cs_facts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
EXAMPLES = '''
4141
# Gather all facts on instances
4242
- name: Gather cloudstack facts
43-
cs_facts:
43+
ngine_io.cloudstack.cs_facts:
4444
4545
# Gather specific fact on instances
4646
- name: Gather cloudstack facts
47-
cs_facts: filter=cloudstack_instance_id
47+
ngine_io.cloudstack.cs_facts: filter=cloudstack_instance_id
4848
4949
# Gather specific fact on instances with a given meta_data_host
5050
- name: Gather cloudstack facts
51-
cs_facts:
51+
ngine_io.cloudstack.cs_facts:
5252
filter: cloudstack_instance_id
5353
meta_data_host: 169.254.169.254
5454
'''

plugins/modules/cs_firewall.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,40 +107,36 @@
107107

108108
EXAMPLES = '''
109109
- name: Allow inbound port 80/tcp from 1.2.3.4 to 4.3.2.1
110-
cs_firewall:
110+
ngine_io.cloudstack.cs_firewall:
111111
ip_address: 4.3.2.1
112112
port: 80
113113
cidr: 1.2.3.4/32
114114
115-
116115
- name: Allow inbound tcp/udp port 53 to 4.3.2.1
117-
cs_firewall:
116+
ngine_io.cloudstack.cs_firewall:
118117
ip_address: 4.3.2.1
119118
port: 53
120119
protocol: '{{ item }}'
121120
with_items:
122121
- tcp
123122
- udp
124123
125-
126124
- name: Ensure firewall rule is removed
127-
cs_firewall:
125+
ngine_io.cloudstack.cs_firewall:
128126
ip_address: 4.3.2.1
129127
start_port: 8000
130128
end_port: 8888
131129
cidr: 17.0.0.0/8
132130
state: absent
133131
134-
135132
- name: Allow all outbound traffic
136-
cs_firewall:
133+
ngine_io.cloudstack.cs_firewall:
137134
network: my_network
138135
type: egress
139136
protocol: all
140137
141-
142138
- name: Allow only HTTP outbound traffic for an IP
143-
cs_firewall:
139+
ngine_io.cloudstack.cs_firewall:
144140
network: my_network
145141
type: egress
146142
port: 80

plugins/modules/cs_host.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
EXAMPLES = '''
8282
- name: Ensure a host is present but disabled
83-
cs_host:
83+
ngine_io.cloudstack.cs_host:
8484
name: pod01.zone01.example.com
8585
cluster: vcenter.example.com/zone01/cluster01
8686
pod: pod01
@@ -91,23 +91,20 @@
9191
- perf
9292
- gpu
9393
94-
9594
- name: Ensure an existing host is disabled
96-
cs_host:
95+
ngine_io.cloudstack.cs_host:
9796
name: pod01.zone01.example.com
9897
zone: zone01
9998
allocation_state: disabled
10099
101-
102100
- name: Ensure an existing host is enabled
103-
cs_host:
101+
ngine_io.cloudstack.cs_host:
104102
name: pod01.zone01.example.com
105103
zone: zone01
106104
allocation_state: enabled
107105
108-
109106
- name: Ensure a host is absent
110-
cs_host:
107+
ngine_io.cloudstack.cs_host:
111108
name: pod01.zone01.example.com
112109
zone: zone01
113110
state: absent

plugins/modules/cs_image_store.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
EXAMPLES = '''
6363
- name: Add a Image Store (NFS)
64-
cs_image_store:
64+
ngine_io.cloudstack.cs_image_store:
6565
zone: zone-01
6666
name: nfs-01
6767
provider: NFS
@@ -70,16 +70,15 @@
7070
7171
# Change the NFS share URL and force a Image Store recreation
7272
- name: Change the NFS url
73-
cs_image_store:
73+
ngine_io.cloudstack.cs_image_store:
7474
zone: zone-01
7575
name: nfs-01
7676
provider: NFS
7777
force_recreate: yes
7878
url: nfs://192.168.21.10/shares/secondary
7979
80-
8180
- name: delete the image store
82-
cs_image_store:
81+
ngine_io.cloudstack.cs_image_store:
8382
name: nfs-01
8483
zone: zone-01
8584
state: absent

0 commit comments

Comments
 (0)