J'essaie de créer et de provisionner une instance EC2 avec Vagrant. L'instance est créée avec succès et je peux alors utiliser vagrant ssh
pour SSH dans l'it mais Puppet ne semble pas effectuer de provisionnement.
Lors de l'exécution vagrant up --provider=aws --provision
J'obtiens le résultat suivant
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
Je peux alors me connecter en SSH à l'instance en utilisant vagrant ssh
Je suppose donc que des erreurs se sont produites, mais je ne reçois aucune information utile à leur sujet.
Mon fichier Vagrant est le suivant ;
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
Mon manifeste Puppet est le suivant ;
package { [
'build-essential',
'vim',
'curl',
'git-core',
'nano',
'freetds-bin'
]:
ensure => 'installed',
}
Aucun des paquets n'est installé.