Error while trying to instal mssql tools using puppet

0 votes

I'm trying to install mssql-tools. The command to install that is:

sudo ACCEPT_EULA=Y apt-get install mssql-tools

But I'm trying to achieve the same using Puppet

package { 'mssql-tools'      : ensure => latest, }

But I end up with the following error:

ERROR: The EULA was not accepted. Installation aborted.

What do I do?

Feb 25, 2019 in Puppet by Dipti
183 views

1 answer to this question.

0 votes

When you use puppet, you don't use the package, you execute the package. Something like this:

exec { "/usr/bin/apt-get -yq install msodbcsql":
  environment => "ACCEPT_EULA=Y",
  unless => "/usr/bin/dpkg -l msodbcsql | tail -1 | grep ^ii",
}
answered Feb 25, 2019 by Nandita

Related Questions In Puppet

0 votes
1 answer

Puppet: Error while trying to execute shell commands in Exec resource type

The default exec provider on *nix OSes ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 45,170 points
261 views
0 votes
1 answer
0 votes
1 answer

Error while using newrelic class - Puppet

Hey @Harjot, The catalog compiler will look ...READ MORE

answered Feb 14, 2019 in Puppet by Ranjan
44 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
298 views
0 votes
1 answer
0 votes
1 answer

Error while enabling the official puppet lab collection repository

Hey @Alia, try executing these commands and ...READ MORE

answered Feb 25, 2019 in Puppet by Nandita
35 views
0 votes
1 answer