[OpenLdap] Fields made required

These fields are required to use OpenLdap

Change-Id: Ic5f020f3620238804bf267bd4ddf9154c6da3591
This commit is contained in:
Alexey Khivin 2016-03-22 19:03:17 +03:00
parent b0d638c458
commit d923d422a4
2 changed files with 5 additions and 11 deletions

View File

@ -16,11 +16,11 @@ Properties:
name:
Contract: $.string().notNull()
domain:
Contract: $.string()
Contract: $.string().notNull()
ldapUser:
Contract: $.string()
Contract: $.string().notNull()
ldapPass:
Contract: $.string()
Contract: $.string().notNull()
Methods:
initialize:
@ -56,11 +56,8 @@ Methods:
- $.instance.agent.call($template, $resources)
- $._environment.reporter.report($this, format('OpenLDAP is available at {0}', $.instance.floatingIpAddress))
- If: $.domain != '' and $.domain != null
Then:
- If: $.ldapUser != '' and $.ldapUser != null
Then:
- $.configureOpenLDAPUser($.domain, $.ldapUser, $.ldapPass)
- $.configureOpenLDAPUser($.domain, $.ldapUser, $.ldapPass)
- $.setAttr(deployed, true)
- $._environment.reporter.report($this, 'OpenLDAP is deployed!')

View File

@ -31,21 +31,18 @@ Forms:
type: string
label: Domain
initial: domain.tld
required: false
descriptionTitle: Domain
description: >-
Please, provide domain for the OpenLDAP instance
- name: ldapUser
type: string
label: Username
required: false
descriptionTitle: LDAP User
description: >-
Please, provide username
- name: ldapPass
type: password
label: Password
required: false
descriptionTitle: LDAP Password
description: >-
Please, provide password