Ask Your Question

how to add multiple source in one class

asked 2015-03-10 06:24:43 -0600

akshay gravatar image

class practiceoracle { $filesinst = [ "/tmp/packages/compat-libstdc++-33-3.2.3-47.3.x8664.rpm", "/tmp/packages/elfutils-libelf-0.125-3.ML5.x8664.rpm", "/tmp/packages/elfutils-libelf-devel-0.125-3.ML5.x8664.rpm", "/tmp/packages/gcc-4.6.3-2.fu2012.x8664.rpm", "/tmp/packages/gcc-c++-4.6.3-2.fu2012.x8664.rpm", "/tmp/packages/glib2-2.28.8-1.fc15.x8664.rpm", "/tmp/packages/glibc-common-2.9-3.x8664.rpm", "/tmp/packages/glibc-devel-2.5-81.el58.2.x8664.rpm", "/tmp/packages/libaio-0.3.99-2.x8664.rpm", "/tmp/packages/libaio-devel-0.3.106-5.x8664.rpm", "/tmp/packages/libgcc-3.4.3-9.EL4.x8664.rpm", "/tmp/packages/libstdc++-3.3.2-6.x8664.rpm", "/tmp/packages/libstdc++-4.7.2-8.fc18.x8664.rpm", "/tmp/packages/libstdc++-devel-4.8.0-0.7.fc19.x8664.rpm", "/tmp/packages/sysstat-5.0.5-1.x8664.rpm", "/tmp/packages/unixODBC-2.2.12-2.fc7.x8664.rpm", "/tmp/packages/unixODBC-devel-2.3.1-2.fc18.x8664.rpm", ] file { $filesinst: ensure => present, owner => root, group => root, mode => 0755, source =>[ "puppet:///modules/practiceoracle/compat-libstdc++-33-3.2.3-47.3.x8664.rpm", "puppet:///modules/practiceoracle/elfutils-libelf-0.125-3.ML5.x8664.rpm", "puppet:///modules/practiceoracle/elfutils-libelf-devel-0.125-3.ML5.x8664.rpm", "puppet:///modules/practiceoracle/gcc-4.6.3-2.fu2012.x8664.rpm", "puppet:///modules/practiceoracle/gcc-c++-4.6.3-2.fu2012.x8664.rpm", "puppet:///modules/practiceoracle/glib2-2.28.8-1.fc15.x8664.rpm", "puppet:///modules/practiceoracle/glibc-common-2.9-3.x8664.rpm", "puppet:///modules/practiceoracleglibc-devel-2.5-81.el58.2.x8664.rpm", "puppet:///modules/practiceoracle/libaio-0.3.99-2.x8664.rpm", "puppet:///modules/practiceoracle/libaio-devel-0.3.106-5.x8664.rpm",], } } In this code, when I run the class on agent machine then there is a big problem. This declared file was present in that agent machine but whichever declared first in source, that source file size has same for all other files so how to overcome this problem. Please help me.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-10 08:51:57 -0600

ankur0101 gravatar image

So what is the problem ? What do you want to do ?

edit flag offensive delete link more


My problem is when this script run on agent machine then it keeps all the files but the size of all file is same as first file whichever is in the present at present

akshay gravatar imageakshay ( 2015-03-11 01:40:02 -0600 )edit

Suppose the first file size is 22987 then all the file size is same as 22987 So why this problem occurs? Any error in this code or any change in that code? Please help me.

akshay gravatar imageakshay ( 2015-03-11 01:42:00 -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

1 follower


Asked: 2015-03-10 06:24:43 -0600

Seen: 93 times

Last updated: Mar 10 '15