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 in Puppet by Dipti
93 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 by Nandita

Related Questions In Puppet

0 votes
1 answer
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 in Puppet by Ranjan
26 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,380 points
152 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer