Skip to content

Introduce eyeo/sitescripts role

Josip Rodin requested to merge sitescripts into master

This is to support ansible-playbooks.git static-website-1 branch which reimplements eyeo/devops/legacy/infrastructure static web site deployment

sitescripts are an implicit dependency of the build process for at least some eyeo/cms websites, and an explicit dependency of a FastCGI processing URL there

Version control repository for sitescripts itself has been switched from hg to git

Mostly a rewrite of modules/sitescripts/manifests/init.pp, whose original authors included Wladimir Palant, Francisco López, Mathias Henni, Andrey Novikov

sitescripts.ini file content is more parametrized than the former Puppet implementation because only a flatter dict can be parsed with Ansible with_dict and fed into the Ansible ini_file module

Support for the FastCGI multiplexer is done with the following changes:

  • Use systemd instead of spawn-fcgi simply because systemd has all those socket-handling facilities already
  • systemd resources are activated only if sitescripts.ini has a multiplexer section
  • multiplexer socket depends on the multiplexer service so the service file needs to be there prior to socket activation
  • flup dependency added because multiplexer.fcgi uses it; dependency checker from modules/adblockplus/manifests/sitescripts/repository.pp is not transferred because it actually missed it (d'oh)
Edited by Josip Rodin

Merge request reports