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

Allow examples to run on multiple distributions #223

Open
m8ram opened this issue Apr 5, 2018 · 2 comments
Open

Allow examples to run on multiple distributions #223

m8ram opened this issue Apr 5, 2018 · 2 comments

Comments

@m8ram
Copy link

m8ram commented Apr 5, 2018

Thanks for providing these examples.
Could these examples be updated to show the best practices for dealing with multiple distributions?

The problem I run into now is that package names differ between distributions and the examples here only work on one of them.
The LAMP examples should be a great place to add this because it is a typical example: apache2 versus httpd etc.

Thanks in advance.

@scheerchrs
Copy link

Precurse your code with a "define is" type of statement. Think "if then else". If you can define the 'package names' in a separate block, then you can include that block definition within your code. Then the distribution/updates/system/node mods should work.

@m8ram
Copy link
Author

m8ram commented Apr 8, 2018

It would be great to see this in the examples.
Some of the modules I've seen on galaxy/github do something like this in defaults, others in vars.
And mostly I've seen this for e.g. Debian/Rhel but not for major versions of those distributions.

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

No branches or pull requests

2 participants