aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ntp/manifests/init.pp
blob: 9179b2f5aa310cd393a5e6a45fe733ae11223dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class ntp {
    package { ntp: }

    service { ntpd:
        ensure => running,
        path => "/etc/init.d/ntpd",
        subscribe => [Package["ntp"], File["/etc/ntp.conf"]],
    }

    file { "/etc/ntp.conf":
        require => Package["ntp"],
        content => template("ntp/ntp.conf"),
    }
}