Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ARM64 arch in Mailhog role #1432

Merged
merged 1 commit into from
Oct 15, 2022
Merged

Conversation

swalkinshaw
Copy link
Member

geerlingguy.mailhog doesn't support arm64 (Apple Silicon) because the underlying binaries (mailhog and mhsendmail) don't have official arm64 builds.

To support this by default, we need to override the url variables to point to forks that have these builds.

This adds a new "shim loader" mailhog role which simply loads the proper vars and then passes them to the included geerlingguy.mailhog role.

@tangrufus
Copy link
Collaborator

Does geerlingguy/ansible-role-mailhog#29 solves the issue?

@swalkinshaw
Copy link
Member Author

Unfortunately not because that still points to the official repos which don't contain builds for arm64; only 32bit ARM.

Copy link
Member

@retlehs retlehs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently breaks provisioning at this step:

TASK [php : Copy PHP-FPM configuration file] ***********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: {{ mailhog_install_dir }}/mhsendmail: 'mailhog_install_dir' is undefined
fatal: [default]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: {{ mailhog_install_dir }}/mhsendmail: 'mailhog_install_dir' is undefined"}

`geerlingguy.mailhog` doesn't support arm64 (Apple Silicon) because the
underlying binaries (`mailhog` and `mhsendmail`) don't have official
`arm64` builds.

To support this by default, we need to override the url variables to
point to forks that have these builds.

This adds a new "shim loader" `mailhog` role which simply loads the
proper vars and then passes them to the included `geerlingguy.mailhog`
role.
@swalkinshaw swalkinshaw merged commit 11dc0cc into master Oct 15, 2022
@swalkinshaw swalkinshaw deleted the mailhog-role-support-arm64 branch October 15, 2022 18:06
@swalkinshaw swalkinshaw mentioned this pull request Oct 15, 2022
3 tasks
paulbrzeski pushed a commit to paulbrzeski/trellis that referenced this pull request Mar 3, 2023
`geerlingguy.mailhog` doesn't support arm64 (Apple Silicon) because the underlying binaries (`mailhog` and `mhsendmail`) don't have official `arm64` builds.

To support this by default, we need to override the url variables to point to forks that have these builds.

This adds a new "shim loader" `mailhog` role which simply loads the proper vars and then passes them to the included `geerlingguy.mailhog` role.
paulbrzeski pushed a commit to paulbrzeski/trellis that referenced this pull request Mar 3, 2023
`geerlingguy.mailhog` doesn't support arm64 (Apple Silicon) because the underlying binaries (`mailhog` and `mhsendmail`) don't have official `arm64` builds.

To support this by default, we need to override the url variables to point to forks that have these builds.

This adds a new "shim loader" `mailhog` role which simply loads the proper vars and then passes them to the included `geerlingguy.mailhog` role.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants