test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-08 10:41:51 +02:00
parent 4379438163
commit 9167b1e0d5
3 changed files with 24 additions and 20 deletions

View file

@ -5,6 +5,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
### Changed
- test: use personal docker registry
## v2.0.0 - 2021-08-20
### Breaked

View file

@ -1,20 +1,20 @@
# Ansible role: Postfix MTA
[![Version](https://img.shields.io/badge/latest_version-2.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-postfix_mta/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-postfix_mta/src/branch/master/LICENSE)
[![Version](https://img.shields.io/badge/latest_version-2.0.0-green.svg)](https://code.waks.be/nishiki/ansible-role-postfix_mta/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-postfix_mta/src/branch/main/LICENSE)
Install and configure an simple mta with postfix
## Requirements
* Ansible >= 2.9
* Debian
* Bullseye
* Bookworm
- Ansible >= 2.9
- Debian
- Bullseye
- Bookworm
## Role variables
* `postfix_config` - hash with config
- `postfix_config` - hash with config
```
smtpd_banner: $myhostname ESMTP $mail_name (Debian/GNU)
@ -33,13 +33,13 @@ Install and configure an simple mta with postfix
inet_protocols: all
```
* `postfix_transports` - hash with the transport configuration
- `postfix_transports` - hash with the transport configuration
```
google.com: smtp:127.0.0.1
```
* `postfix_aliases` - hash with the aliases
- `postfix_aliases` - hash with the aliases
```
root:
@ -60,18 +60,18 @@ Install and configure an simple mta with postfix
### Test with molecule and docker
* install [docker](https://docs.docker.com/engine/installation/)
* install `python3` and `python3-pip`
* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
* run `molecule test`
- install [docker](https://docs.docker.com/engine/installation/)
- install `python3` and `python3-pip`
- install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
- run `molecule test`
### Tests with docker
* install [docker](https://docs.docker.com/engine/installation/)
* install ruby
* install bundler `gem install bundler`
* install dependencies `bundle install`
* run the tests `kitchen test`
- install [docker](https://docs.docker.com/engine/installation/)
- install ruby
- install bundler `gem install bundler`
- install dependencies `bundle install`
- run the tests `kitchen test`
## License

View file

@ -3,7 +3,7 @@ driver:
name: docker
platforms:
- name: debian12
image: nishiki/debian12:molecule
image: code.waks.be/nishiki/molecule:debian12
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
@ -12,7 +12,7 @@ platforms:
capabilities:
- SYS_ADMIN
- name: debian11
image: nishiki/debian11:molecule
image: code.waks.be/nishiki/molecule:debian11
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw