diff options
-rw-r--r-- | manifests/init.pp | 2 | ||||
-rw-r--r-- | manifests/server/config.pp | 24 | ||||
-rw-r--r-- | manifests/server/install.pp | 6 | ||||
-rw-r--r-- | manifests/server/service.pp | 16 |
4 files changed, 23 insertions, 25 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 7498ede..c71ee1d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,3 @@ class samba { - include samba::server + include samba::server }
\ No newline at end of file diff --git a/manifests/server/config.pp b/manifests/server/config.pp index 9699857..d51e432 100644 --- a/manifests/server/config.pp +++ b/manifests/server/config.pp @@ -1,19 +1,19 @@ class samba::server::config { - file { "/etc/samba": - ensure => directory, - owner => "root", - group => "root", - mode => 0755, + file { '/etc/samba': + ensure => directory, + owner => 'root', + group => 'root', + mode => '0755', } - file { "/etc/samba/smb.conf": - ensure => present, - owner => "root", - group => "root", - mode => 0644, - require => [File["/etc/samba"], Class["samba::server::install"]], - notify => Class["samba::server::service"] + file { '/etc/samba/smb.conf': + ensure => present, + owner => 'root', + group => 'root', + mode => '0644', + require => [File['/etc/samba'], Class['samba::server::install']], + notify => Class['samba::server::service'] } } diff --git a/manifests/server/install.pp b/manifests/server/install.pp index 6514626..1454bfe 100644 --- a/manifests/server/install.pp +++ b/manifests/server/install.pp @@ -1,7 +1,5 @@ class samba::server::install { - - package { "samba": - ensure => installed, + package { 'samba': + ensure => installed } - }
\ No newline at end of file diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 8984841..98bd442 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,11 +1,11 @@ class samba::server::service { - - service { "smbd": - ensure => running, - hasstatus => true, - hasrestart => true, - enable => true, - require => Class["samba::server::config"] + + service { 'smbd': + ensure => running, + hasstatus => true, + hasrestart => true, + enable => true, + require => Class['samba::server::config'] } - + }
\ No newline at end of file |