Guest User

Untitled

a guest
Dec 23rd, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.87 KB | None | 0 0
  1. # Your code using an array of resources for the require attribute.
  2. file { "/etc/pki/tls/private/${::hostname}.example.com.key":
  3.   source  => "puppet:///modules/bacula/${::hostname}/${::hostname}.example.com.key",
  4.   owner   => 'bacula',
  5.   group   => 'bacula',
  6.   mode    => '0400',
  7.   require => [
  8.     Package['bacula-client','bacula-common'],
  9.     File['/etc/pki/tls/private'],
  10.     File['/etc/pki/tls/certs'],
  11.   ],
  12.   notify  => Service['bacula-fd'],
  13. }
  14.  
  15. # Same resource without the already implicit resource requirement
  16. file { "/etc/pki/tls/private/${::hostname}.example.com.key":
  17.   source  => "puppet:///modules/bacula/${::hostname}/${::hostname}.example.com.key",
  18.   owner   => 'bacula',
  19.   group   => 'bacula',
  20.   mode    => '0400',
  21.   require => [
  22.     Package['bacula-client','bacula-common'],
  23.     File['/etc/pki/tls/certs'],
  24.   ],
  25.   notify  => Service['bacula-fd'],
  26. }
Advertisement
Add Comment
Please, Sign In to add comment