You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 7.26.0
Ruby: 2.7.0
Distribution: AlmaLinux release 8.8
Module version: 4.3.0
How to reproduce (e.g Puppet code you use)
Simply try to use in your manifest
class { 'postfix':
mynetworks => '127.0.0.1, 172.18.104.1, 172.17.0.1, 172.18.104.0/24',
}
What are you seeing
The mynetworks value is not set in /etc/postfix/main.cf
What behaviour did you expect instead
That the mynetworks value would be set in /etc/postfix/main.cf
I achieved the result via file_lineas follows:
file_line { 'postfix main.cf mynetworks since augeas in the postfix class does not work':
ensure => 'present',
path => '/etc/postfix/main.cf',
after => '#mynetworks = hash:/etc/postfix/network_table',
line => "mynetworks = 127.0.0.1, 172.18.104.1, 172.17.0.1, 172.18.104.0/24",
}
Output log
Any additional information you'd like to impart
Maybe mynetworks shouldn't be set via init.pp, but then why is the attribute there? How can I set the networks?
The text was updated successfully, but these errors were encountered:
Did you enable either mta or satellite in class { 'postfix': ?
One of these must be set to true (both are false by default) for any actual setup to take place.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Simply try to use in your manifest
What are you seeing
The
mynetworks
value is not set in/etc/postfix/main.cf
What behaviour did you expect instead
That the
mynetworks
value would be set in/etc/postfix/main.cf
I achieved the result via
file_line
as follows:Output log
Any additional information you'd like to impart
Maybe
mynetworks
shouldn't be set viainit.pp
, but then why is the attribute there? How can I set the networks?The text was updated successfully, but these errors were encountered: