Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 8d6c1b87 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

ntp: cleanup

parent d3497a46
No related branches found
No related tags found
No related merge requests found
#Hiera configuration:
#ubuntu_server::ntp::gwdg_ntp_servers:
# - gr-gwdg1.gwdg.de
# - gr-fmz1.gwdg.de
#Parameters configuration
#class { 'ubuntu_server::ntp':
# gwdg_ntp_servers => ["Kaesekuchen"]
#}
class ubuntu_server::ntp($gwdg_ntp_servers = ["ntps1.gwdg.de","ntps2.gwdg.de","ntps3.gwdg.de"]) {
package{"ntp":
......@@ -18,16 +5,16 @@ class ubuntu_server::ntp($gwdg_ntp_servers = ["ntps1.gwdg.de","ntps2.gwdg.de","n
}
file{"/etc/ntp.conf":
ensure => present,
content => template("ubuntu_server/etc/ntp.conf"),
mode => 750,
owner => "root",
group => "root",
require => Package["ntp"]
ensure => present,
content => template("ubuntu_server/etc/ntp.conf"),
mode => 750,
owner => "root",
group => "root",
require => Package["ntp"]
}~> Service['ntp']
service{'ntp':
ensure => running,
require => Package["ntp"]
require => Package["ntp"]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment