Changes

Jump to: navigation, search
/* Load Balancer as a Service (LBaaS) - Account example */
=== Load Balancer as a Service (LBaaS) - Account example ===
The following example shows the OpenLDAP directory entry for the stoney wiki Load Balancer as a Service (LBaaS) account with the uid number 3730083:
<source lang="ldif">
shadowWarning: 7
sstIsActive: TRUE
sstLBaaSFrontendURI: https://www.example.com/ # Uniform Resource Identifier with optional label.sstLBaaSFrontendURI: https://example.com/ # Uniform Resource Identifier with optional label.sstLBaaSFrontendURI: https://api.example.com/ # Uniform Resource Identifier with optional label.
sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/ # Uniform Resource Identifier with optional label.
sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/ # Uniform Resource Identifier with optional label.
sstLBaaSHost: haproxy-001.os.stoney-cloud.com # Fully qualified domain name (FQDN).sstLBaaSHost: haproxy-002.os.stoney-cloud.com # Fully qualified domain name (FQDN).
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
</source>
This will result in The LDIF above can be queried via the following cli command <code>getent passwd</code> entry:<syntaxhighlight lang='bash'>getent passwd 3730083</syntaxhighlight> This will result in the following output:
<syntaxhighlight lang='text'>
# .------------------------------------------------------------------------------- login name# | .----------------------------------------------------------------------- encrypted password indicator# | | .--------------------------------------------------------------------- numerical user ID# | | | .------------------------------------------------------------- numerical group ID# | | | | .----------------------------------------------------- gecos field (the typical format is a comma-delimited list)# | | | | | .---------------------- user home directory# | | | | | | .-------- user command interpreter# | | | | | | |# | | | | | | |
3730083:x:3730083:3730083:Example Ltd. (www.example.com):/home/3730083:/bin/false
</syntaxhighlight>
<code>iconv("UTF-8", "ASCII//TRANSLIT", "Tüpfelhyänenöhrchen")</code><br />
Please be aware, that some characters don't get converted properly ... For example: Ø and £. The characters $ and € work.
 
This appears in the 'getent passwd' output. Company name and the main fully qualified domain name (FQDN). For example: <code>Example Ltd. (www.example.com)</code>.
|-
| <center>MUST</center>
| <center>x</center>
| This multi-valued attribute stores one or more Load Balancer as a Service (LBaaS) frontend servers in the form of a Uniform Resource Identifier with optional label. Some examples:* <code>https://www.example.com/</code>* <code>https://example.com/</code>* <code>https://api.example.com/</code>
|-
| <center>MUST</center>
| <center>x</center>
| This multi-valued attribute stores one or more Load Balancer as a Service (LBaaS) backend servers in the form of a Uniform Resource Identifier with optional label. Some examples:* <code>https://sst-int-001.os.stoney-cloud.com/</code>* <code>https://sst-int-002.os.stoney-cloud.com/</code>
|-
| <center>MUST</center>
| <center>x</center>
| This multi-valued attribute stores one or more Load Balancer as a Service (LBaaS) servers in the form of a fully qualified domain name. Some examples:* <code>haproxy-001.os.stoney-cloud.com</code>* <code>haproxy-002.os.stoney-cloud.com</code>
|-
Legend:
* '''x''': Mandatory in all cases.
 
=== Load Balancer as a Service (LBaaS) - Group example ===
The following example shows the OpenLDAP directory entry for the Load Balancer as a Service (LBaaS) group with the uid number 3730083:
 
<source lang="ldif">
dn: cn=3730083,ou=groups,ou=lbaas,ou=services,dc=stoney-cloud,dc=org
cn: 3730083
gidNumber: 3730083
sstIsActive: TRUE
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
| <center>x</center>
| The numerical group ID of the Load Balancer as a Service (LBaaS) group.
 
|-
| sstIsActive
| sstRelationship
| <center>MAY</center>
| <center>x</center>
| Is the Load Balancer as a Service (LBaaS) group active? Either <code>TRUE</code> (yes) or <code>FALSE</code> (no). Default is <code>TRUE</code> (yes).
|-
3,368
edits