*Hi all, I wrote a manifest for downloading linux.x64_11gR2_database_1of2.zip and copying that to another directory and unzipping there..its getting downloaded but copying and unzipping is not happening..am getting this error.. * notice: /Stage[main]//Exec[download_url]/returns: executed successfully err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 failed: /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of one of [0] at /root/learning-manifests/combozip.pp:13 notice: Finished catalog run in 0.19 seconds the manifest that i wrote is: $URL = "http://192.168.24.171:8080/softwares/linux.x64_11gR2_database_1of2.zip" $Software = "/db" $Server = "/db/oracle" exec { "download_url": command => "/usr/bin/wget $URL", cwd => "$Software", } exec {"copy_unzip": command => "/usr/bin/unzip -C /db/oracle /db/linux.x64_11gR2_database_1of2.zip", cwd => "$Server", } Exec[''download_url''] -> Exec[''copy_unzip''] Please do help me with this. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
> err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 > failed: /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of > one of [0] at /root/learning-manifests/combozip.pp:13 >You seem to have a liking for spacebar ^ -- *Krish* I lives in a cave nd writes me games - "Tank ''em Up<http://blog.toonheart.com>" is coming soon! I haz facebook.com/toonheart -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Sorry krish...i dint get you.. On Wednesday, 13 February 2013 11:24:16 UTC+5:30, krish wrote:> > > err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 >> failed: /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of >> one of [0] at /root/learning-manifests/combozip.pp:13 >> > > > You seem to have a liking for spacebar ^ > > > -- > *Krish* > I lives in a cave nd writes me games - "Tank ''em Up<http://blog.toonheart.com>" > is coming soon! > I haz facebook.com/toonheart-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Feb 13, 2013 at 5:46 AM, yarlagadda ramya <rams.15891@gmail.com> wrote:> Hi all, > > I wrote a manifest for downloading linux.x64_11gR2_database_1of2.zip and > copying that to another directory and unzipping there..its getting > downloaded but copying and unzipping is not happening..am getting this > error.. > > notice: /Stage[main]//Exec[download_url]/returns: executed successfully > err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 failed: > /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of one of [0] > at /root/learning-manifests/combozip.pp:13 > notice: Finished catalog run in 0.19 seconds > > the manifest that i wrote is: > $URL > "http://192.168.24.171:8080/softwares/linux.x64_11gR2_database_1of2.zip" > $Software = "/db" > $Server = "/db/oracle" > > exec { "download_url": > command => "/usr/bin/wget $URL", > cwd => "$Software", > } > > exec {"copy_unzip": > command => "/usr/bin/unzip -C /db/oracle > /db/linux.x64_11gR2_database_1of2.zip", > cwd => "$Server", > } > > Exec[''download_url''] -> Exec[''copy_unzip''] > > Please do help me with this.I answered this yesterday. Anyway, what happens if you run: cd /db/oracle /usr/bin/unzip -C /db/oracle /db/linux.x64_11gR2_database_1of2.zip from a command line? I *still* don''t think that you need the ''-C /db/oracle'' portion of that command, so it should just be: /usr/bin/unzip /db/linux.x64_11gR2_database_1of2.zip But running the full command from the command line should provide you with some output that might help figure out what''s going on. Regards, Matt. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Thanks i got the solution mathew On Wednesday, 13 February 2013 11:16:13 UTC+5:30, yarlagadda ramya wrote:> > *Hi all, > > I wrote a manifest for downloading linux.x64_11gR2_database_1of2.zip and > copying that to another directory and unzipping there..its getting > downloaded but copying and unzipping is not happening..am getting this > error.. > * > notice: /Stage[main]//Exec[download_url]/returns: executed successfully > err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 > failed: /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of > one of [0] at /root/learning-manifests/combozip.pp:13 > notice: Finished catalog run in 0.19 seconds > > the manifest that i wrote is: > $URL = " > http://192.168.24.171:8080/softwares/linux.x64_11gR2_database_1of2.zip" > $Software = "/db" > $Server = "/db/oracle" > > exec { "download_url": > command => "/usr/bin/wget $URL", > cwd => "$Software", > } > > exec {"copy_unzip": > command => "/usr/bin/unzip -C /db/oracle > /db/linux.x64_11gR2_database_1of2.zip", > cwd => "$Server", > } > > Exec[''download_url''] -> Exec[''copy_unzip''] > > Please do help me with this. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
whats the solution? I have the same problem... no unzip commands work. Ubuntu10.4.1 #Init.pp 2.6.4 (Puppet Enterprise 1.0) class apache-maven-v3 { # prepare local filesystem file { ''java_path'': path => "/usr/local/java", ensure => directory, } # copy file from puppet master to local system file { ''copy_maven_v3'': path => "/usr/local/java/apache-maven-3.0.3-bin.tar.gz", source => "puppet:///modules/apache-maven-v3/apache-maven-3.0.3-bin.tar.gz", } # extract local file exec { ''install_maven_v3'': command => "/bin/tar zxf /usr/local/java/apache-maven-3.0.3-bin.tar.gz", cwd => "/usr/local/java", creates => "/usr/local/java/apache-maven-3.0.3", } # make sure the order is set properly File[''java_path''] -> File[''copy_maven_v3''] -> Exec[''install_maven_v3''] } err: /Stage[main]/Apache-maven-v3/Exec[install_maven_v3]/returns: change from notrun to 0 failed: /bin/tar zxf /usr/local/java/apache-maven-3.0.3-bin.tar.gz returned 2 instead of one of [0] at /etc/puppetlabs/puppet/modules/apache-maven-v3/manifests/init.pp:18 On Wednesday, February 13, 2013 1:04:33 AM UTC-8, yarlagadda ramya wrote:> > Thanks i got the solution mathew > > On Wednesday, 13 February 2013 11:16:13 UTC+5:30, yarlagadda ramya wrote: >> >> *Hi all, >> >> I wrote a manifest for downloading linux.x64_11gR2_database_1of2.zip and >> copying that to another directory and unzipping there..its getting >> downloaded but copying and unzipping is not happening..am getting this >> error.. >> * >> notice: /Stage[main]//Exec[download_url]/returns: executed successfully >> err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 >> failed: /usr/bin/unzip -C /db/oracle /db/combo.zip returned 9 instead of >> one of [0] at /root/learning-manifests/combozip.pp:13 >> notice: Finished catalog run in 0.19 seconds >> >> the manifest that i wrote is: >> $URL = " >> http://192.168.24.171:8080/softwares/linux.x64_11gR2_database_1of2.zip" >> $Software = "/db" >> $Server = "/db/oracle" >> >> exec { "download_url": >> command => "/usr/bin/wget $URL", >> cwd => "$Software", >> } >> >> exec {"copy_unzip": >> command => "/usr/bin/unzip -C /db/oracle >> /db/linux.x64_11gR2_database_1of2.zip", >> cwd => "$Server", >> } >> >> Exec[''download_url''] -> Exec[''copy_unzip''] >> >> Please do help me with this. >> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.