aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
blob: ce6f10c9ce39164b1ba865e451dfc14ab0222a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class samba::server($workgroup = PCCH) {
	include samba::server::install
	include samba::server::config
	include samba::server::service

  $target = "target[. = 'global']"

  augeas { global:
    context => "/files/etc/samba/smb.conf",
    changes => [
      "set ${target} global",
      "set ${target}/workgroup $workgroup"
    ],
    require => Class["samba::server::config"]
  }
}