[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 ../monitor/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 takeover script. recipe = slapos.recipe.template url = ${:_profile_base_location_}/pbsready.cfg.in output = ${buildout:directory}/pbsready.cfg md5sum = 7d7cb70cb76a41f853e74cc34a9ef428 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 = dd13497575d13b92c3abb0a633777e2c 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 = bfd71e454140cf13179d408e10f95bf8 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 = 0e6a95e7a9b38d402f94c11b7d10397e mode = 0644 [template-replicated] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-replicated.cfg.in md5sum = 0641a65142fe0f624bf7c112081c2527 mode = 0644 destination = ${buildout:directory}/template-replicated.cfg.in [template-parts] recipe = slapos.recipe.download url = ${:_profile_base_location_}/template-parts.cfg.in md5sum = 071b1034ee8f5cc14f79b16fdeba2813 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 = 3aa7624af1196062d7d01946d4de9f0e mode = 0644 destination = ${buildout:directory}/resilient-web-takeover-cgi-script.py.in # Provide an empty wrapper [template-wrapper] recipe = slapos.recipe.template url = ${:_profile_base_location_}/templates/wrapper.in output = ${buildout:directory}/template-wrapper.cfg mode = 0644 md5sum = 8cde04bfd0c0e9bd56744b988275cfd8 ################## # Monitor element # [template-monitor-check-resilient-feed] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/templates/monitor-check-resilient-feed.in download-only = true md5sum = 19ee9055de961acf402e2dfe5b9581d2 filename = monitor-check-resilient-feed.in mode = 0644 [rdiff-backup-build] # use our own version find-links = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd2.tar.gz [versions] rdiff-backup = 1.3.4nxd2