Parent Directory | Revision Log
- fix subscribe
1 | class ntp { |
2 | |
3 | package { ntp: |
4 | ensure => installed |
5 | } |
6 | |
7 | service { ntp: |
8 | ensure => running, |
9 | path => "/etc/init.d/ntpd", |
10 | subscribe => [ Package["ntp"], File["ntp.conf"] ] |
11 | } |
12 | |
13 | file { "ntp.conf": |
14 | path => "/etc/ntp.conf", |
15 | ensure => present, |
16 | owner => root, |
17 | group => root, |
18 | mode => 644, |
19 | require => Package["ntp"], |
20 | content => template("ntp/ntp.conf") |
21 | } |
22 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |