Skip to content

Typo in init.pp and template bug #1

@StefanSchwiedel

Description

@StefanSchwiedel

There is a type in init.pp at line 81:
notify => Exec ["make_sendmail_config"],
should be
notify => Exec["make_sendmail_config"],

Another problem with generics table template:
<% scope.lookupvar('sendmail::generics_table').sort.each do |user,email| -%>
<%= @user %> <%= @email %>
<% end -%>

This is not working as described in the Readme (generics_table => {'user','mail'} because puppet doesnt expext a comma there. It would work maybe with arrays but not with the hash.

Instead this is working:
<% scope.lookupvar('sendmail::generics_table').keys.sort.each do |user| -%>
<%= user %> <%= generics_table[user] %>
<% end -%>

With this template you can call:
generics_table => {'user1' => 'mail1', 'user2' => 'mail2' }

Next Problem sendmail.mc.erb:
There is no genericstable FEATURE and no generics_table variable as well as generics_domain. These features will never work if they are not defined in sendmail.mc.erb (and they didn`t in my test)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions