I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata
. But I can only seem to change it if I use the dialog. Is there some way to automate this from the shell so I can just write an Exec to make this easy?
If not, I think the next best way would probably be to have puppet distribute /etc/timezone
and /etc/localtime
with the correct data across the cluster.
Any input appreciated!