Ask Your Question

archive resource module not working

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

Chutki gravatar image

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


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

below is my manifests

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

when i run this, getting error

Invalid parameter source on Archive[/tmp/] 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

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

GregLarkin gravatar image

I would double-check the module documentation at 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


I referred this url for an example. so here they used "source attribute"

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

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

GregLarkin gravatar imageGregLarkin ( 2015-04-25 19:45:01 -0600 )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 -0600 )edit

Is the archive module installed somewhere in your module path?

GregLarkin gravatar imageGregLarkin ( 2015-04-27 11:38:27 -0600 )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 -0600 )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


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

Seen: 1,245 times

Last updated: Apr 24 '15