ruby pastebin

Posted by Anonymous on Tue 20th Oct 10:39 (modification of post by view diff)
download | new post

  1.     class ntp::install {
  2.         package{"ntpd":
  3.             ensure => latest
  4.         }
  5.     }
  6.      
  7.     class ntp::config {
  8.         File{
  9.             require => Class["ntp::install"],
  10.             notify  => Class["ntp::service"],
  11.             owner   => "root",
  12.             group   => "root",
  13.             mode    => 644
  14.         }
  15.      
  16.         file{"/etc/ntp.conf":
  17.                 source => "puppet:///ntp/ntp.conf";
  18.      
  19.              "/etc/ntp/step-tickers":
  20.                 source => "puppet:///ntp/step-tickers";
  21.         }
  22.     }
  23.      
  24.     class ntp::service {
  25.         service{"ntp":
  26.             ensure  => running,
  27.             enable  => true,
  28.             require => Class["ntp::config"],
  29.         }
  30.     }
  31.      
  32.     class ntp {
  33.         include ntp::install, ntp::config, ntp::service
  34.     }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


I'm Human
Remember me



Captcha required for posting