Native YAML (#3593)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent 34a504ea10
commit dfb6861a94

@ -81,10 +81,12 @@ options:
EXAMPLES = '''
# Create a DNS record on a UCS
- udm_dns_zone: name=www
zone=example.com
type=host_record
data=['a': '192.168.1.1']
- udm_dns_zone:
name: www
zone: example.com
type: host_record
data:
- a: 192.0.2.1
'''

@ -103,10 +103,13 @@ options:
EXAMPLES = '''
# Create a DNS zone on a UCS
- udm_dns_zone: zone=example.com
type=forward_zone
nameserver=['ucs.example.com']
interfaces=['192.168.1.1']
- udm_dns_zone:
zone: example.com
type: forward_zone
nameserver:
- ucs.example.com
interfaces:
- 192.0.2.1
'''

@ -74,16 +74,19 @@ options:
EXAMPLES = '''
# Create a POSIX group
- udm_group: name=g123m-1A
- udm_group:
name: g123m-1A
# Create a POSIX group with the exact DN
# C(cn=g123m-1A,cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com)
- udm_group: name=g123m-1A
subpath='cn=classes,cn=students,cn=groups'
ou=school
- udm_group:
name: g123m-1A
subpath: 'cn=classes,cn=students,cn=groups'
ou: school
# or
- udm_group: name=g123m-1A
position='cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com'
- udm_group:
name: g123m-1A
position: 'cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com'
'''

@ -375,10 +375,11 @@ options:
EXAMPLES = '''
# Create a share named home on the server ucs.example.com with the path /home.
- udm_share: name=home
path=/home
host=ucs.example.com
sambaName=Home
- udm_share:
name: home
path: /home
host: ucs.example.com
sambaName: Home
'''

@ -318,25 +318,28 @@ options:
EXAMPLES = '''
# Create a user on a UCS
- udm_user: name=FooBar
password=secure_password
firstname=Foo
lastname=Bar
- udm_user:
name: FooBar
password: secure_password
firstname: Foo
lastname: Bar
# Create a user with the DN
# C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com)
- udm_user: name=foo
password=secure_password
firstname=Foo
lastname=Bar
ou=school
subpath='cn=teachers,cn=users'
- udm_user:
name: foo
password: secure_password
firstname: Foo
lastname: Bar
ou: school
subpath: 'cn=teachers,cn=users'
# or define the position
- udm_user: name=foo
password=secure_password
firstname=Foo
lastname=Bar
position='cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com'
- udm_user:
name: foo
password: secure_password
firstname: Foo
lastname: Bar
position: 'cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com'
'''

Loading…
Cancel
Save