I am trying to simplify and streamline cert deployment by automating as many tasks as possible
I am using Nginx on Ubuntu 18.04 LTS and I would like to understand how to install certbot without it prompting me for Continent and Country? This is currently preventing the automation from running
I’ve looked around as I was thinking there would be some kind of flag or config file I could specify but I’m not having much luck - presumably I am looking for the wrong terms
In addition to that, what is the best way to bootstrap configs such that I can install the cert in nginx automatically? I am using Terraform to spin up the cloud environment so presumably I can pass in some variables to run the certbot command
And after going through a few of the usual operations it halts here:
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.
1. Africa 2. America 3. Antarctica 4. Australia 5. Arctic 6. Asia 7. Atlantic 8. Europe 9. Indian 10. Pacific 11. SystemV 12. US 13. Etc
Geographic area:
So yes, it does indeed seem to be related to tzdata, so I will try a few more things.
So the issue was the tzdata, using the minimal Ubuntu image seems to miss some packages, as after quite a bit of playing with the above suggestions and having no luck, I tried the full image and that worked
Another useful command should anyone else come across this is:
timedatectl
timedatectl list-timezones
and
timedatectl set-timezone <your timezone>
What I noticed from the tests was that on the minimal image, there are no timezones other than UTC. Let’s Encrypt installer does not prompt on the full image when setting the correct timezone with startup script.
All that’s left to do now is figure the correct syntax to issue a cert non-interactively, which doesn’t look too hard.