summaryrefslogtreecommitdiff
path: root/.trash
diff options
context:
space:
mode:
Diffstat (limited to '.trash')
-rw-r--r--.trash/Acronis Managed Backup provisioning flow.md74
-rw-r--r--.trash/Ceph.md0
2 files changed, 74 insertions, 0 deletions
diff --git a/.trash/Acronis Managed Backup provisioning flow.md b/.trash/Acronis Managed Backup provisioning flow.md
new file mode 100644
index 0000000..7f2b4f6
--- /dev/null
+++ b/.trash/Acronis Managed Backup provisioning flow.md
@@ -0,0 +1,74 @@
+---
+tags:
+ - work
+ - provisioning
+---
+Sections marked with '!' are not found in Tevins confluence doc
+## Create the tenant (customer)
+CustomerManager::create($username);
+
+**Create tenant**:
+- parent_id : parent tenant (find with api client id) (ParentFinder)
+- kind : customer
+- name: username
+
+**Bind application**:
+- Tenant uuid
+- BACKUP_UUID = '6e6d758d-8e74-3ae3-ac84-50eb0dff12eb'
+
+**Enable services** !
+- Sets "offering items" (OfferingItemName)
+
+**Activate customer**:
+- Get pricing
+- Update pricing mode to 'production'
+
+## Create the user (credentials)
+CustomerManager::createUser(tenant, email, first_name, last_name)
+
+**Create user**:
+- tenant id
+- login : tenant username
+- contact info
+
+**Update user policies**:
+ - tenant id
+ - trustee type: 'user'
+ - trustee id: user_id
+ - role id: 'backup_user'
+
+## Activate user
+
+**Set password**:
+- user id
+- password
+
+**Accept ToS** !
+- tenant uuid
+
+**Add backup plans** !
+- backup plan (AddPlans.php#53, see models/Backup.php) (see template)
+ - interval : 24 hrs (1 per day)
+ - post data command `{"command": "\/usr\/lib\/Acronis\/BackupAndRecovery\/webcppostcapture", "commandArguments": "{RESOURCE_ID}", "continueOnCommandError": false, "waitCommandComplete": true, "workingDirectory": ""}`
+ - pre data command `{"command": "\/usr\/lib\/Acronis\/BackupAndRecovery\/webcpprecapture", "commandArguments": "{RESOURCE_ID}", "continueOnCommandError": false, "waitCommandComplete": true, "workingDirectory": ""}`
+
+Make sure to store the ID!
+
+## Schedule backups
+This can only finish successfully after Puppet has installed the Acronis Agent and that agent registered itself with Acronis.
+
+**Poll for a machine id** (that way we know the agent is registered) (CustomerManager.php#375)
+- BackupConsole::getResources
+- Filter on type == 'machine'
+- getId
+
+We want 1 (our) backup plan active so therefore we:
+**Revoke all plans** (CustomerManager.php#354)
+- BackupConsole::getBackupPlans
+- foreach BackupConsole::revokeBackupPlan
+
+**Add resources to plan** (CustomerManager.php#289)
+- impersonate/authenticate
+- apply backup plan:
+ - plan id
+ - machine id
diff --git a/.trash/Ceph.md b/.trash/Ceph.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.trash/Ceph.md