Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Monachus

By: a guest on Feb 13th, 2010  |  syntax: None  |  size: 0.35 KB  |  hits: 99  |  expires: Never
download  |  raw  |  embed  |  report abuse
This paste has a previous version, view the difference. Copied
  1. File init.pp:
  2. class openldap {
  3.         define database ($require) {
  4.                 service { "openldap":
  5.                         ensure => running,
  6.                         require => $require,
  7.                 }
  8.         }
  9. }
  10.  
  11. File database.pp:
  12.  
  13. class openldap::database inherits openldap {
  14.         #
  15.         file { "/backend/path":
  16.                 # do your setup here
  17.         }
  18.  
  19.         # call the define
  20.         database { $fqdn:
  21.                 require => File["/backend/path"]
  22.         }
  23. }