[buildout] parts = pbsready pbsready-import pbsready-export template-replicated template-parts instance-frozen template-resilient #---------------- #-- #-- Profiles needed to setup automated backup and recovery. #-- [pbsready] # Common parts for pbsready-import and pbsready-export. # Provides rdiff-backup, notification queue, ssh authentication, # dropbear server, and the bully script. recipe = slapos.recipe.template url = ${:_profile_base_location_}/pbsready.cfg.in output = ${buildout:directory}/pbsready.cfg md5sum = e602f6746cbe5a1da82b90097719c4a1 mode = 0644 [pbsready-import] # An import instance has an importer script, which is called # by the parent PBS instance when the dump content is propagated. recipe = slapos.recipe.template url = ${:_profile_base_location_}/pbsready-import.cfg.in output = ${buildout:directory}/pbsready-import.cfg md5sum = eda0c1574d8991f4f9e08e3707c2b04b mode = 0644 [pbsready-export] # An export instance has an exporter script, and communicates # to parent PBS instances to deliver the exported dump. recipe = slapos.recipe.template url = ${:_profile_base_location_}/pbsready-export.cfg.in output = ${buildout:directory}/pbsready-export.cfg md5sum = dd56f9c74e580475a17a9afb1d220390 mode = 0644 [template-pull-backup] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-pull-backup.cfg.in output = ${buildout:directory}/instance-pull-backup.cfg md5sum = 453d96f5a6c1230c01c878cc7640bae6 mode = 0644 [template-replicated] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-replicated.cfg.in md5sum = 63b5649f3cf1c9a77315382793d9593f mode = 0644 destination = ${buildout:directory}/template-replicated.cfg.in [template-parts] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-parts.cfg.in md5sum = c942f82552fcb42fc74a5f896e0cd5f3 mode = 0644 destination = ${buildout:directory}/template-parts.cfg.in [instance-frozen] # When an instance is detected as broken, its software type is changed to "frozen". # On the next run of slapgrid-cp, the buildout profile is replaced by instance-frozen.cfg, # which will run without removing any content because it raises an error. recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-frozen.cfg.in output = ${buildout:directory}/instance-frozen.cfg [template-resilient] recipe = slapos.recipe.template url = ${:_profile_base_location_}/resilient.cfg.in output = ${buildout:directory}/resilient.cfg md5sum = 59e74d290d623de2c1e147e48f284fba mode = 0644