2 ms·
The platforms may differ, but a known version should be able to use the same config on the different platforms.
by dalore 13y ago
The platforms may differ, but a known version should be able to use the same config on the different platforms.
- hbbio 13y agoJust looked up a real "sed" example in linux vs linux. DigitalOcean ships VM that don't have an admin group. So when I tried DO, I added: grep -q 'admin' /etc/group || groupadd admin Or, for changing the sshd port: sed -i -r 's/^#?Port [0-9]*/Port '"$PORT"'/' /etc/ssh/sshd_config Works great on all platforms... regardless of the default sshd_config.
- dalore 13y agoYou realise that the tools like ansible are made for making sure the groups and users you specify in your config are going to be on the server? That's the point of them. Don't rely on a presetup environment, you'r ansible scripts should setup the environment for everything you need.
- txutxu 13y agoIf the compile options in both platform matches. And nginx is full of compile options and modules to enable and disable, so maybe "the same config in the same version" does not work on different platforms.
- dalore 13y agoThen that's not a same known version is. Nginx doesn't support different loadable modules so compiling it differently make them different versions. If you're reliant on modules being in there you compile it yourself with a source deb/rpm/etc from nginx. If you don't need a module then don't compile it in.