Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Buytaert committed Apr 21, 2011
1 parent 23176e7 commit 0e631dd
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions manifests/classes/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
ensure => installed,
}

# Needs to be samba on da debian box apparently I modified this to smb "
#case $operatingsystem {
# Debian,Ubuntu: { include apache::debian}
# RedHat,CentOS: { include apache::redhat}
# default: { notice "Unsupported operatingsystem ${operatingsystem}" }
# }

#$lsbdistid ? {
# default => "/etc/httpd/conf.d/foreman.conf",
# "Ubuntu" => "/etc/apache2/conf.d/foreman.conf"
# },

service { "samba":
ensure => running,
Expand All @@ -31,6 +20,8 @@
require => Package[samba],
}



file { "/etc/samba":
ensure => directory,
owner => root,
Expand All @@ -40,12 +31,33 @@
}


file {"/etc/samba/smb.conf":
content => template("samba/smb.conf.erb"),
mode => 0644,
owner => root,
group => root,
require => [ Package[samba] ],
notify => [ Service[samba] ],
}



# file {"/etc/samba/smb.conf":
# content => template("samba/smb.conf.erb"),
# mode => 0644,
# owner => root,
# group => root,
# require => [ Package[samba] ],
# notify => [ Service[samba] ],
# }

include concat::setup
concat{"/etc/samba/smb.conf":
owner => root,
group => root,
mode => 644,
notify => [ Service[samba]]
}


concat::fragment{"default_smb_config":
target => "/etc/samba/smb.conf",
content => template("samba/smb.conf.erb"),
order => 01,
}

}


0 comments on commit 0e631dd

Please sign in to comment.