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
51 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

Error while using newrelic class - Puppet

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

answered Feb 14 in Puppet by Ranjan
18 views
+5 votes
2 answers

How To Deploy Windows Server Using Puppet?

Deploying windows server through Puppet is similar ...READ MORE

answered Mar 26, 2018 in Puppet by shubham
• 6,870 points
198 views
0 votes
1 answer

Errors and warnings while installing graphite server using puppet.

Hey @Harish, If you puppet modules is /etc/puppet/modules, ...READ MORE

answered Feb 14 in Puppet by Varshi
13 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer