OC: configure cassandra backup/restore schedule
Backup schedule enabled for both models, with contrail
3.x and 4.0.
Configuration was taken from official MCP guide [1]
[1] https://docs.mirantis.com/mcp/q2-18/mcp-operations-guide
PROD-22844
Change-Id: I1ba9537dd356f6e6d0b0e1e7e06ec175cd8ba026
diff --git a/classes/cluster/os-ha-contrail-40/opencontrail/control_init.yml b/classes/cluster/os-ha-contrail-40/opencontrail/control_init.yml
new file mode 100644
index 0000000..229ee2d
--- /dev/null
+++ b/classes/cluster/os-ha-contrail-40/opencontrail/control_init.yml
@@ -0,0 +1,41 @@
+classes:
+- system.cassandra.backup.client.single
+parameters:
+ cassandra:
+ backup:
+ client:
+ enabled: true
+ restore_latest: 1
+ restore_from: remote
+ containers:
+ - opencontrail_controller_1
+ _param:
+ cassandra_remote_backup_server: cfg01
+ root_private_key: |
+ -----BEGIN RSA PRIVATE KEY-----
+ MIIEpAIBAAKCAQEA+TpWIR6LaLlmx0T7t+aWRvrAg6Zc9PioYNzWKWxX9+MYumw+
+ 5xW8yAnLSQ59cTT8ZAN3+5BbKmleNdJ9loXf5uYG6hsiNr5pHqrk0DqqeuJaMb95
+ uARJaAdZ6BmF36c+UFR198oRL9Cn6GlFhhWi+XIg6ZJS9hh2n2gi55hFRNDrnz/D
+ /KfD+trcivwp9kcgHwrWoym3Vh4xYHx9b1wCK8XoCXiQRbh6bcoj9xNCETkqI4O5
+ 2gQDwgssAc5fbl6gfoL5l5U2ALbDvJnjTZc8/La3RZRFZzKXu4nClozlOtZtqbDG
+ XlffykixGt0nTiluO+bnV6YV4HYudR1gmQxXSwIDAQABAoIBAQDcoGfeqct/yaDS
+ hp7PDbG64//Ii11+/yEPnm93/BFjwAYEAg8tQnD8JK9w3QLvVJiZcPimGgSaZuyf
+ eNb0iU7MeJVmaN7A1473NxGXxFdmsTpnD7oQzLqu/NL6RJ3ef48KTbqgwKC2U2BQ
+ veBt8nlzmTTJkF8gvEdGlklP+9xWLV0xA3U4Zu3kFyrz0nUGRX59IoBt1eM0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