Last active
April 10, 2025 21:18
-
-
Save pfigue/7694021 to your computer and use it in GitHub Desktop.
Puppet Manifest to set the timezone in the system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file { '/etc/timezone': | |
ensure => present, | |
content => "Europe/Berlin\n", | |
} | |
exec { 'reconfigure-tzdata': | |
user => root, | |
group => root, | |
command => '/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata', | |
} | |
notify { 'timezone-changed': | |
message => 'Timezone was updated to Europe/Berlin', | |
} | |
File['/etc/timezone'] -> Exec['reconfigure-tzdata'] -> Notify['timezone-changed'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment