Changes

Jump to: navigation, search
/* OpenStack (service) - Projects (tenants) - Examples */
== OpenStack (service) ==
The sub tree <code>ou=openstack,ou=service,dc=stoney-cloud,dc=org</code> contains all the OpenStack based stoney cloud service data. The following LDIF shows the '''iaas''' LDAP entry for the stoney cloud service:
<source lang="ldif">
dn: ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
=== OpenStack (service) - Configuration ===
<source lang="ldif">
dn: ou=configuration,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
==== Configuration OpenStack (resellersservice) - Configuration - Resellers ====
<source lang="ldif">
dn: ou=reseller,ou=configuration,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
=== OpenStack (service) - Domains (resellers) ===
<source lang="ldif">
dn: ou=domains,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
==== OpenStack (service) - Domains (resellers) - Domain (OpenStack Default Domain) example ====
This is a very special domain and is created during the bootstrapping phase of the OpenStack installation. Therefore we '''never''' provision this domain and we '''do not''' add the <code>objectclass: sstProvisioning</code> to this domain.
<source lang="ldif">
</source>
==== OpenStack (service) - Domains (resellers) - Domain (OpenStack Service Provider Domain) example ====
This is also quite a special domain, as it collects the cloud administrators of the OpenStack based stoney cloud. It is added manually just after the bootstrapping phase. Therefore we '''never''' provision this domain and we '''do not''' add the <code>objectclass: sstProvisioning</code> to this domain.
<source lang="ldif">
sstOpenStackId: abcdef2477be64c099500224864999998
sstOpenStackName: Service Provider
description: Service Provider stepping stone GmbHAG
sstIsActive: TRUE
sstIsIaaSDomain: FALSE
</source>
==== OpenStack (service) - Domains (resellers) - Domain (reseller) example ====
The following LDIF example shows a typical OpenStack Domain.
<source lang="ldif">
* '''x<sup>3</sup>''': Set by Terraform after the successful provisioning.
=== OpenStack (service) - Projects (tenants) ===
<source lang="ldif">
dn: ou=projects,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
==== Project OpenStack (tenantservice) examples - Projects (tenants) - Examples ====
Due to the OpenStack project (tenant) organisation, we can have multiple tenants per domain (reseller) and customers. The following LDIF example show the first project of the customer Customer Ltd. with the <code>sstBelongsToCustomerUID: 4000001</code> belonging to the reseller Reseller Ltd. with the <code>sstBelongsToResellerUID: 4000000</code>:
<source lang="ldif">
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| sstBelongsToDomainID
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| sstOpenStackProject
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>MUSTMAY</center>| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>x<sup>5</centersup>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The OpenStack domain id the project belongs to.
* '''x<sup>3</sup>''': Set <code>sstProvisioningMode</code> to either <code>added</code>, <code>modified</code> or <code>deleted</code> if modifying the entry manually.
* '''x<sup>4</sup>''': Use <code>date --utc "+%Y%m%dT%H%M%SZ"</code> to set the attribute <code>sstProvisioningState</code> if modifying the entry manually.
* '''x<sup>5</sup>''': The attribute <code>sstBelongsToDomainID</code> is optional, as it will be set during the provisioning of the OpenStack project via OpenTofu (Terraform).
=== OpenStack (service) - Units (instances) ===
<source lang="ldif">
dn: ou=units,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
==== Unit OpenStack (instanceservice) examples - Units (instances) - Examples ====
<source lang="ldif">
dn: uid=4100002,ou=units,ou=openstack,ou=services,dc=stoney-cloud,dc=org
uid: 4100002
sstOpenStackId: 9ecb5bfdd4564f6ca52bba1e869eeea4
sstDisplayName: sst-int-001: stepping stone GmbHAG: CentOS 7 (Odoo)description: The leaf for the OpenStack server sst-int-001: stepping stone GmbHAG: CentOS 7 (Odoo).
sstOperatingSystem: Linux
sstNetworkHostname: sst-int-001
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>MUST</center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>x</center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The OpenStack project human readable display name as returned from the OpenStack API.
For example: <code>"name" : "sst-int-001: stepping stone GmbH: CentOS 7 (Odoo)description"</code>. This gives us the LDAP entry: <code>sstDisplayName: sst-int-001: stepping stone GmbHAG: CentOS 7 (Odoo)</code>.
|-
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The description is built up as follows: <code>The leaf for the OpenStack server <sstDisplayName>.</code>.
For example: <code>The leaf for the OpenStack server sst-int-001: stepping stone GmbHAG: CentOS 7 (Odoo).</code>.
|-
* '''x<sup>3</sup>''': Use <code>date --utc "+%Y%m%dT%H%M%SZ"</code> to set the attribute <code>sstProvisioningState</code> if modifying the entry manually.
=== OpenStack (service) - Image backups ===
<source lang="ldif">
dn: ou=backups,ou=openstack,ou=services,dc=stoney-cloud,dc=org
</source>
==== OpenStack (service) - Image backup examples backups - Examples ====
<source lang="ldif">
dn: uid=4100004,ou=backups,ou=openstack,ou=services,dc=stoney-cloud,dc=org
* '''x<sup>1</sup>''': Must be set after the provisioning, as OpenStack doesn't allow to set ids.
=== OpenStack (service) - Licences (...) ===
Is a main service, not a sub service of the openstack service.
<source lang="ldif">
</source>
==== OpenStack (service) - Licences (...) examples - Examples ====
...
<source lang="ldif">
</source>
=== OpenStack (infrastructure) - Units (instancescontrol-, compute- and storage-nodes as well as the control virtual machines) ===
<source lang='ldif'>
dn: ou=units,ou=dedicated servers,ou=services,dc=stoney-cloud,dc=org
</source>
==== OpenStack (infrastructure) - Unit (instancecontrol-, compute- and storage-nodes as well as the control virtual machines) - Examples ====
Some concrete naming examples of the OpenStack control-, compute- and storage nodes as well as the control virtual machines (VMs):
* ctrl-vm-021: stepping stone AG: CentOS 7 (Glance), with the Puppet role <code>cloud_openstack_glance</code>
The following LDIF shows a complete example of storage node with the Puppet role <code>storage_ceph</code>.
<source lang='ldif'>
dn: uid=4100002,ou=units,ou=dedicated servers,ou=services,dc=stoney-cloud,dc=org
objectclass: sstConfigurationManagement
uid: 4100002
sstDisplayName: storage-node-001: stepping stone AG: CentOS 7 (Ceph storagemonitor)description: The leaf for the OpenStack infrastructure server storage-node-001: stepping stone AG: CentOS 7 (Ceph storagemonitor).
sstNetworkHostname: storage-node-001
sstNetworkDomainName: ctrl-int.os.stoney-cloud.com
sstRegion: duedingen_production
sstEnvironment: production
sstBelongsToProjectID: 6907bf36283fee21f1396b803d041041
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>MUST</center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>x</center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The OpenStack project human readable display name as returned from the OpenStack API.
For example: <code>"name" : "sst-int-001: stepping stone GmbH: CentOS 7 (Odoo)description"</code>. This gives us the LDAP entry: <code>sstDisplayName: sststorage-intnode-001: stepping stone GmbHAG: CentOS 7 (OdooCeph monitor)</code>.
|-
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The description is built up as follows: <code>The leaf for the OpenStack server <sstDisplayName>.</code>.
For example: <code>The leaf for the OpenStack server sststorage-intnode-001: stepping stone GmbHAG: CentOS 7 (OdooCeph monitor).</code>.
|-
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The domain name of the unit.
For example: <code>ctrl-int.os.stoney-cloud.com</code>.
|-
For example: <code>sstEnvironment: production</code>, <code>sstEnvironment: integration</code>, <code>sstEnvironment: test</code> or individual feature branches.
 
|-
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| sstBelongsToProjectID
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| sstServer
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center>MAY</center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;"| <center></center>
| style="border-top:none;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:0.002cm solid #000000;padding:0.097cm;"| The (virtual) OpenStack project id the project belongs to. The project id used by the configuration management system Puppet via enc.
 
For example: <code>6907bf36283fee21f1396b803d041041</code>.
|-
3,368
edits