saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.19k stars 5.48k forks source link

Explanation on how to execute interactive installs #598

Closed syphernl closed 12 years ago

syphernl commented 12 years ago

The installation of packages on Debian-like platforms is being done as "noninteractive". However, some packages do have questions (such as mysql-server, zabbix-frontend-php which needs a webserver and mysql db server) but because of this those questions cannot be answered.

While installing zabbix-frontend-php this lead to not being able to configure Zabbix which lead to an unworkable webinterface that requires (a lot of) manual steps to resolve.

thatch45 commented 12 years ago

Do you have a suggestion for how this could be done without having remote executions transparently halt when states are run? If I am not mistaken the answers can be given before the package is installed, but I am not familiar with how to do this.

syphernl commented 12 years ago

I have never needed it before but you can provide answers to the process. if we can have this integrated then that'll probably solve it.

Some details can be found at serverfault: http://serverfault.com/questions/238679/unable-to-force-debian-to-do-unattended-install-libc6-wants-interactive-confi

syphernl commented 12 years ago

One more: http://serverfault.com/questions/19367/scripted-install-of-mysql-on-ubuntu

thatch45 commented 12 years ago

Ahh, so it is debconf-set-selections! We should write a module and state that can be used to preseed the debconf-set-selections!

I will open a modules to write issue and close this one out