Ask Your Question
0

archive resource module not working

asked 2015-04-24 14:35:19 -0500

Chutki gravatar image

updated 2015-04-24 14:36:11 -0500

Hi,

I am doing some testing in archive files, got below module reference. I downloaded and started testing with my manifests

https://forge.puppetlabs.com/camptocamp/archive

below is my manifests

archive { '/tmp/test.zip':
ensure => present,
source => "file:///modulename/files/test.zip",
extract_path => "/tmp"
}

when i run this, getting error

Invalid parameter source on Archive[/tmp/test.zip] at /etc/puppetlabs/puppet/modules/name/archive_test/manifests/archivetest.pp:5 on node

any one worked on this before.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-24 17:27:19 -0500

GregLarkin gravatar image

I would double-check the module documentation at https://forge.puppetlabs.com/camptocamp/archive and verify if a source parameter is supported or not. From the message you received, it sounds like it is not.

edit flag offensive delete link more

Comments

I referred this url https://github.com/nanliu/puppet-archive for an example. so here they used "source attribute"

Chutki gravatar imageChutki ( 2015-04-25 12:28:57 -0500 )edit

Yes, but you are using a different module according to your original question. Unfortunately, there is a name collision with https://github.com/camptocamp/puppet-archive and the nanliu/puppet-archive module, but they are different modules with different attributes.

GregLarkin gravatar imageGregLarkin ( 2015-04-25 19:45:01 -0500 )edit

Thanks. I changed attribute according to camptocamp modules but I am getting "SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type archive at /etc/puppet/modules/archive_test.pp :5 on node" can someone help me on this

Chutki gravatar imageChutki ( 2015-04-26 12:26:59 -0500 )edit

Is the archive module installed somewhere in your module path?

GregLarkin gravatar imageGregLarkin ( 2015-04-27 11:38:27 -0500 )edit

I downloaded the tar file and moved it to my test server under /module directory, then I addedd my sample manifests and started executing. pls correct me if it is wrong approach

Chutki gravatar imageChutki ( 2015-04-28 11:43:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-04-24 14:35:19 -0500

Seen: 702 times

Last updated: Apr 24 '15