For some of my applications I need to generate a TCP port number, which then I would use in templates for config files. Since there are more than one of this application on a host the port number must be unique, and will need to be permanently stored somewhere.
Has anyone done something like this already? A generate-and-store module maybe?
Something similar could be used for passwords and secrets too I guess.