dimanche 24 mai 2015

Error:Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31:

Does anyone have experience with getting the puppetlabs-aws module to work? I am running:

Puppet 3.7.5 Centos 6.5 Ruby 1.9.3p551

Following the readme on the forge:

http://ift.tt/1Q4LHkQ

I should be able to run commands like

puppet apply tests/create.pp --test puppet apply tests/test.pp --test

But i keep getting the error:

*Error: Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31: syntax error, unexpected ':', expecting ')' newparam(:name, namevar: true) do ^ /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:227: syntax error, unexpected kEND, expecting $end Error: Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31: syntax error, unexpected ':', expecting ')' newparam(:name, namevar: true) do ^ /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:227: syntax error, unexpected kEND, expecting $end on node ******************** Error: Could not autoload puppet/type/ec2_instance: /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:31: syntax error, unexpected ':', expecting ')' newparam(:name, namevar: true) do ^ /etc/puppet/modules/aws/lib/puppet/type/ec2_instance.rb:227: syntax error, unexpected kEND, expecting $end on node ***************

In addition from the readme, I should be able to run commands like

puppet node_aws list. But i keep getting that the subcommand node_aws is unknown.

What am I missing?




Aucun commentaire:

Enregistrer un commentaire