Native YAML (#3593)

This commit is contained in:
Fabio Alessandro Locati 2016-12-01 10:50:56 +00:00 committed by Matt Clay
commit dfb6861a94
5 changed files with 45 additions and 33 deletions

View file

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

View file

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

View file

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

View file

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

View file

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