aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ntp/manifests/init.pp
blob: 96f9d03a8f91b25f6e9ef90af395c17649a43469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class ntp {

    package { ntp: 
        ensure => installed
    }

    service { ntp:
        ensure => running,
        path => "/etc/init.d/ntpd",
        subscribe => [ Package["ntp"], File["ntp.conf"] ]
    }
    
    file { "ntp.conf":
        path => "/etc/ntp.conf",
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        require => Package["ntp"],
        content => template("ntp/ntp.conf")
    }
}