Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 0b61f1c

Browse files
authored
Merge pull request #49 from zivtech/fix/lliss/network-issue-reboot
Prevent error or vagrant reload.
2 parents c486edc + 47f422f commit 0b61f1c

File tree

1 file changed

+11
-3
lines changed
  • custom-modules/mailhog/manifests

1 file changed

+11
-3
lines changed

custom-modules/mailhog/manifests/init.pp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
class mailhog {
22

33
package { 'postfix':
4+
ensure => 'absent',
5+
}->
6+
7+
file { '/etc/network/if-up.d/postfix':
48
ensure => 'present',
9+
mode => '0755',
10+
content => "#! /bin/bash\nexit 0",
511
}->
612

7-
service { 'postfix':
8-
ensure => 'running',
9-
}
13+
file { '/etc/network/if-down.d/postfix':
14+
ensure => 'present',
15+
mode => '0755',
16+
content => "#! /bin/bash\nexit 0",
17+
}->
1018

1119
wget::fetch { 'download mailhog':
1220
source => 'https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64',

0 commit comments

Comments
 (0)