#4219 migrate smtp-mm hosts from puppet to ansible
Closed: Fixed None Opened 10 years ago by kevin.

Take the smtp-mm01 to 03 nodes in puppet and migrate them over to ansible.

This may take adjusting the postfix setup in ansible to handle their needs.

Look at ticket #4198 for a similar example migrating the unbound instances.


I added new role postfix. I will add configuration files at the end. Comments? Suggestions?

What is the role of postfix::logreport? Is it used at all?

Replying to [comment:3 janeznemanic]:

What is the role of postfix::logreport? Is it used at all?

Yes, it's used on log02. Basically it installs some optional postfix scripts and runs a daily report... how many mails sent, etc.

So, we have some postfix config already in the 'base' role.
Perhaps we could pull that out of base and into your postfix role here and then make base require postfix role. We would also need to make sure existing machines still work with the new postfix role. Hum, except that won't work because we need to run base before postfix. So, perhaps you could merge your postfix role into base (which would also run on these smtp-mm machines).

The only other thing I see missing is the inventory/host_vars for each of the existing 3 smtp_mm machines. ;)

Can you see about merging your postfix role into base and add host_vars and then I think we will be done. ;)

I merged most of the former postfix role into base. I left logreport as a role, can be dropped if needed.

I can't find data for host_vars. OK I found IP addresses in DNS git, but I don't know where to find the rest. So help needed for host_vars.

You should have access to the 3 instances... just ssh in and gather the needed info... 'smtp-mm01' 'smtp-mm02' 'smtp-mm03'

When moving them to ansible we should also change their names to 'smtp-datacenter' as we have with other services... ie, 'smtp-telia01' etc.

I hope this is OK. Are volgroup variables OK. Otherwise this are three separated files.

One more question. How do you know which datacenter is a certain machine in? Is there a central place where you can find information about datacenters (network address, netmask, etc.)?

Yep. Those look ok to me...

There's not really any central place for datacenter information sadly.
We could look at moving all that into global vars and just set all that based on {{ datacenter }} perhaps.

Can you do a patch with everything against current git for me to apply ?

Thanks.

I sent you email with patch. Did you get it? Unfortunately the patch is too big to be uploaded here.

Yes. I simply have been busy putting out fires this week and haven't gotten to it yet. ;)

This is now complete. ;)

Thanks!

Login to comment on this ticket.

Metadata