Skip to content

Instantly share code, notes, and snippets.

@pfigue
Last active September 6, 2016 02:56
Show Gist options
  • Save pfigue/7694021 to your computer and use it in GitHub Desktop.
Save pfigue/7694021 to your computer and use it in GitHub Desktop.
Puppet Manifest to set the timezone in the system.
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