aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
blob: 33bdf29ad077d3a5266113ac643d268fc46a72bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# = Class nfs::config
#
class nfs::config {
  File {
    ensure  => present,
    require => Class['::nfs::install'],
    notify  => Service[$::nfs::service_name],
    owner   => $::nfs::config_user,
    group   => $::nfs::config_group,
  }

  if $::nfs::server {
    concat { $::nfs::config_file:
      group  => $::nfs::config_group,
      mode   => $::nfs::config_mode,
      owner  => $::nfs::config_user,
      notify => Service[$::nfs::service_name],
    }

    concat::fragment { 'export_header':
      target  => $::nfs::config_file,
      content => "# Managed by Puppet\n\n",
      order   => 01,
    }
  }
}