4 ms·
`apt-get install nginx` only installs the package and some default configurations. You still need to manage the actual config files yourself. What will you use
by jtreminio 11y ago
`apt-get install nginx` only installs the package and some default configurations. You still need to manage the actual config files yourself.
What will you use? Bash? Python? Perl? Why not something like Puppet that keeps track of changes it needs to apply and has many useful features on top of it?
What happens if you write your installation scripts to use Ubuntu, but the order comes from high up to move to CentOS/RHEL? Did you write your scripts to be distro-agnostic? Because Puppet's `package` is.
- lisivka 11y agoActual configuration can be installed using `apt-get install ngingx-site-config-prod`.
- sergiosgc 11y agoNow, try adapting that approach to do Blue/Green deployments [1]. Imagine how that is done using configuration managers. Can you see the advantage now? [1] http://martinfowler.com/bliki/BlueGreenDeployment.html http://martinfowler.com/bliki/BlueGreenDeployment.html
- lisivka 11y agoI use it. Blue/Green deployments is one of main reasons to use package managers, because with package manager I can prove that two deployments are identical, including configuration files, which are also deployed using package manager. It was primary reason why we switched from configuration scripts to packages for provisioning and configuration.
- sergiosgc 11y agoExcept that you'll need to reconfigure parts of the stack post-installation. You consider that an upgrade of the configuration "package"? You're reinventing the wheel. Doable, not efficient.
- lisivka 11y agoWhy I need to reconfigure parts of the stack in first place? I am devops, so these things are automated. In general, plan your changes ahead of time, test and automate them at staging servers, prove correctness of changes, and then deploy to production. Never do anything by hands (or by configuration tools) at production servers.
- lisivka 11y agoBTW: So nginx developers are using Puppet to install nginx? Because Puppet package is platform agnostic and we have nginx at every platform. (Joke).
- jtreminio 11y agoI would hope that they have some sort of automation set up to test their code on multiple distros, yes.
- lisivka 11y agoYou are misunderstands relationships between authors, packagers and users. Authors pays by code, packagers pays by maintenance, users pays by testing and with bug reports and patches. Testing of nginx at all distros and in all usage cases is not responsibility of nginx team. If you disagree, then demand your money back.