Olá pessoal!
Ao provisionar o servidor utilizando o bootstrap (https://cursos.alura.com.br/course/devops-com-vagrant-e-puppet/task/5027) estou recebendo o seguinte erro:
==> web: /tmp/vagrant-shell: 14: /tmp/vagrant-shell: aptitude: not found
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Verifiquei que o servidor provisionado na Amazon não veio com o aptitude por padrão.
Para resolver, executei o seguinte procedimento:
Entre as linhas:
rm /tmp/puppetlabs-release-precise.deb
aptitude update
Adicionei a linha:
apt-get install -y aptitude
Consegui instalar o aptitude mas ocorreu um novo erro na hora de instalar o puppet
The following NEW packages will be installed:
facter{a} fonts-lato{a} hiera{a} javascript-common{a} libjs-jquery{a} libruby{a} libruby2.3{a} puppet puppet-common{ab} rake{a} ruby{a}
ruby-deep-merge{a} ruby-did-you-mean{a} ruby-json{a} ruby-minitest{a} ruby-net-telnet{a} ruby-power-assert{a} ruby-shadow{a} ruby-test-unit{a}
ruby2.3{a} rubygems-integration{a} unzip{a} virt-what{a} zip{a}
0 packages upgraded, 24 newly installed, 0 to remove and 52 not upgraded.
Need to get 8,239 kB of archives. After unpacking 37.3 MB will be used.
The following packages have unmet dependencies:
puppet-common : Depends: libaugeas-ruby which is a virtual package and is not provided by any available package.
or
libaugeas-ruby1.9.1 which is a virtual package and is not provided by any available package.
or
libaugeas-ruby1.8 which is a virtual package and is not provided by any available package.
open: 111; closed: 9; defer: 106; conflict: 106 .The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) puppet [Not Installed]
2) puppet-common [Not Installed]
Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Pensei em resolver essa dependência manualmente mas fiquei na dúvida se estava indo pelo caminho certo.
Alguém tem alguma sugestão ou passou por isso?