[buildout] extends = ../../component/apache/buildout.cfg ../../component/bash/buildout.cfg ../../component/dropbear/buildout.cfg ../../component/gzip/buildout.cfg ../../component/rdiff-backup/buildout.cfg ../../component/rsync/buildout.cfg parts = collective.recipe.template-egg pbsready pbsready-import pbsready-export template-replicated template-parts instance-frozen # needed tools for resiliency gzip rdiff-backup dash [collective.recipe.template-egg] recipe = zc.recipe.egg eggs = collective.recipe.template #---------------- #-- #-- 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 = fcb6d12fc34e7b34bb97786ef4f85f01 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 = cb562bd954b9e809c8748d0f96de4116 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 = 8fb619622a08aff2321497895e04df16 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 = c49e5911b94078d87b94507fb4efc93b mode = 0644 [template-replicated] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-replicated.cfg.in #md5sum = d2926c3dd292cb1d4fd99dd0e2211666 mode = 0644 destination = ${buildout:directory}/template-replicated.cfg.in [template-parts] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-parts.cfg.in md5sum = a3f55a20881c3f1ec4416662146c06f7 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 md5sum = d21472f0e58f928fb827f2cbf22c4d4a output = ${buildout:directory}/instance-frozen.cfg [resilient-web-takeover-cgi-script-download] recipe = slapos.recipe.download url = ${:_profile_base_location_}/resilient-web-takeover-cgi-script.py.in #md5sum = mode = 0644 destination = ${buildout:directory}/resilient-web-takeover-cgi-script.py.in [versions] # Pin Jinja2 to 2.6, as 2.7 breaks current code Jinja2 = 2.6 # ... And newer s.r.template requires Jinja2 >= 2.7 slapos.recipe.template = 2.4.2