To install msodbcsql that comes with mssql-tools that are needed to use the PHP Microsoft SQL Driver for Linux the following command is needed
sudo ACCEPT_EULA=Y apt-get install mssql-tools
However when installing this with Puppet, this fails, the puppet code currently used
package { 'mssql-tools' : ensure => latest, }
But this returns an error:
ERROR: The EULA was not accepted. Installation aborted.
What would be needed so Puppet can successfully install this package. I already tried setting a environment variable before calling the package command.
Exec { environment => [ "ACCEPT_EULA=Y" ] }
Microsoft's installation instructions are here:
https://blogs.msdn.microsoft.com/sqlnativeclient/2017/02/04/odbc-driver-13-1-for-linux-released/
And this is the driverpage:
https://www.microsoft.com/en-us/sql-server/developer-get-started/php/ubuntu/