The role was previously referencing an FQDN-based keypair in the Prosody config template that wasn't automatically generated by the role. Fortunately the maintainers ship prosodyctl which has a subcommand for generating certs appropriately—let's use that, skipping if the cert already exists.
Separately, fixes a whitespace error that caused the admins dict in the Prosody config to be uninitialized (see b7c4a8b). Also cleans up the default "localhost" nginx site symlink, if installing with prod certs for Nginx.
The role was previously referencing an FQDN-based keypair in the Prosody config template that wasn't automatically generated by the role. Fortunately the maintainers ship
prosodyctl
which has a subcommand for generating certs appropriately—let's use that, skipping if the cert already exists.Separately, fixes a whitespace error that caused the
admins
dict in the Prosody config to be uninitialized (see b7c4a8b). Also cleans up the default "localhost" nginx site symlink, if installing with prod certs for Nginx.Closes #11.