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
1,521 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",
}

If you need to know more about MSSQL, it is recommended to go for the SQL Course today.

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
• 59,230 points
2,753 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 15, 2019 in Puppet by Ranjan
464 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,503 views
+2 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
551 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP