Eu estou tentando criar uma instância do EC2 com o Vagrant, ela cria a instância com sucesso e eu posso usar o vagrant ssh
para o SSH, mas o Puppet parece não ter nenhum provisionamento.
Ao executar vagrant up --provider=aws --provision
, recebo a seguinte saída
Bringing machine 'default' up with 'aws' provider...
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
[default] Warning! The AWS provider doesn't support any of the Vagrant
high-level network configurations ('config.vm.network'). They
will be silently ignored.
[default] Launching an instance with the following settings...
[default] -- Type: m1.small
[default] -- AMI: ami-a73264ce
[default] -- Region: us-east-1
[default] -- Keypair: banderton
[default] -- Block Device Mapping: []
[default] -- Terminate On Shutdown: false
[default] Waiting for SSH to become available...
[default] Machine is booted and ready for use!
[default] Rsyncing folder: /Users/benanderton/development/projects/my-project/aws/ => /vagrant
[default] Rsyncing folder: /Users/benanderton/development/projects/my-project/aws/manifests/ => /tmp/vagrant-puppet/manifests
[default] Rsyncing folder: /Users/benanderton/development/projects/my-project/aws/modules/ => /tmp/vagrant-puppet/modules-0
[default] Running provisioner: puppet...
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.
An error occurred while executing the action on the 'default'
machine. Please handle this error then try again:
No error message
Posso, então, usar o SSH na instância usando vagrant ssh
, mas nenhum dos meus provisionamentos ocorreu, por isso suponho que ocorreram erros, mas não estou recebendo nenhuma informação útil relacionada a eles.
Meu Vagrantfile é como seguindo;
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_aws"
config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "REDACTED"
aws.secret_access_key = "REDACTED"
aws.keypair_name = "banderton"
override.ssh.private_key_path = "~/.ssh/banderton.pem"
override.ssh.username = "ubuntu"
aws.ami = "ami-a73264ce"
end
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.options = ['--verbose']
end
end
O manifesto My Puppet é o seguinte:
package { [
'build-essential',
'vim',
'curl',
'git-core',
'nano',
'freetds-bin'
]:
ensure => 'installed',
}
Nenhum dos pacotes está instalado.