Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/postfix/manifests/init.pp

Issue 9343001: Add Postfix configuration to the repository, make Postfix listen onlocal interfaces only (Closed)
Patch Set: Created Feb. 6, 2013, 9:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/postfix/files/main.cf ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/postfix/manifests/init.pp
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/postfix/manifests/init.pp
@@ -0,0 +1,20 @@
+class postfix {
+ package {'postfix': ensure => present}
+
+ file {'/etc/postfix/main.cf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => 'puppet:///modules/postfix/main.cf',
+ require => Package['postfix'],
+ notify => Service['postfix']
+ }
+
+ service {'postfix':
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true
+ }
+}
« no previous file with comments | « modules/postfix/files/main.cf ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld