This repository has a few scripts used in UI Rig that you can adapt to your needs. Some of them have companion blog posts — look for them in the initial comments of each script.
These scripts use example.com
domain names
and 192.0.2/24
IP addresses as placeholders.
All the scripts are ISC licensed.