diff --git a/ansible/roles/slat/README.md b/ansible/roles/slat/README.md index 3ef46a3de74fb70f58da8f6751fc5686bcddd847..acbd1db7890842b84adc20fdeadd1937041bb59d 100644 --- a/ansible/roles/slat/README.md +++ b/ansible/roles/slat/README.md @@ -52,6 +52,64 @@ Including an example of how to use your role (for instance, with variables passe roles: - { role: slat, x: 42 } + + +Populate SLAT +------- + +#Insert new SLA + +Once deployed, slat won't contain any sla, so one thing to do is to insert it manually from the GUI. + +1. Log into the sla portal of your paas https://<PAAS_URL>:8443 with your IAM credentials + +2. Select the SLAs tab in the upper menu of the page, and click in the right button (+ NEW SLA) + +3. In order to complete the creation of a new SLA, you have to specify: + + - Service: you can only choose from the services provided from the cmdb (to see which ones are available you can see the "Provider" section in the SLAT upper menu) + + - Customer Group: the IAM group that allow to deploy in the choosen service (you must be part of that group to define a SLA for it). + + - Effective from: starting date of validity. + + - Expiration Date: date of expiration of the sla. + + - Allocated resources: in this subsection you have to establish the maximum number of resources (VM , vCPUs, RAM, Public IPs, Storage) available for the sla, the PaaS will allow deployments until the total sum of the active deployments resources exceded the number agreed in the SLA. + +When you filled all fields click the SEND button below to confirm the creation. + +4. If all goes as expected, a green banner on top of the SLAs Page appears. + + +# Import SLAs from external slat + +1. From the old slat db run the following command: +``` +mysqldump -u root -p***** --single-transaction -quick --no-create-info slat > DB.sql +``` + +2. If the new slat db already contains some entries you should add the keyword IGNORE after every INSERT in the DB.sql file. + +Example: +``` + INSERT INTO `group` VALUES (...) +``` +Become: +``` +INSERT IGNORE  INTO `group` VALUES (...) +``` + +3. Copy the entire file DB.sql in the new slat container and import it with the dual-command: + +``` +mysql -u root -p***** slat < DB.sql +``` + +4. Now you should see all entries in the SLAT gui. + + + License -------