System templates for common services.
-- File: example.com.lua
-- Zone: example.com
-- Load system templates.
local templates = require("templates")
-- Add Google Workspace records.
templates:google_workspace()
-- Host example.com on GitHub Pages (myuser.github.io).
templates:github_pages("myuser")
The templates are organized as Lua packages in the services directory.
- templates.lua - contains a wrapper function with service_name for each service
- services/service_name.lua - a package containing metadata and two functions
fields
andrecords
- spec/services/service_name_spec.lua - unit tests for the package
Example:
- templates.lua - see github_pages function
- services/github_pages.lua
- spec_services/github_pages_spec.lua
To add a new template fork the repository and create a pull request.