FAQ
*Hi all this is the manifest i have written for installing oracle:*

$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 unzip
/db/linux.x64_11gR2_database_1of2.zip",
cwd => "$Server",
}

Exec['download_url'] -> Exec['copy_unzip']

but when am applying it am getting the following error:
*warning: Could not retrieve fact fqdn
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 unzip
/db/linux.x64_11gR2_database_1of2.zip returned 9 instead of one of [0] at
/root/learning-manifests/installzip1.pp:13
notice: Finished catalog run in 11.89 seconds*

Please 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.

Search Discussions

  • Matthew Burgess at Feb 12, 2013 at 12:42 pm

    On Tue, Feb 12, 2013 at 6:30 AM, yarlagadda ramya wrote:

    err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 failed:
    /usr/bin/unzip -C /db/oracle unzip /db/linux.x64_11gR2_database_1of2.zip
    returned 9 instead of one of [0] at
    /root/learning-manifests/installzip1.pp:13
    notice: Finished catalog run in 11.89 seconds
    The way to read that error is that puppet tried to execute the command:

    /usr/bin/unzip -C /db/oracle unzip /db/linux.x64_11gR2_database_1of2.zip

    That command failed, returning an error code of 9.

    The unzip man page (see DIAGNOSTICS) says that an error code of 9
    means that 'the specified zipfiles were not found'.

    The command itself looks wrong. I think it should just be '
    /usr/bin/unzip /db/linux.x64_11gR2_database_1of2.zip' (you shouldn't
    need the -C parameter, and the 'unzip' word in the middle of the
    command looks spurious).

    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 12, '13 at 7:56a
activeFeb 12, '13 at 12:42p
posts2
users2
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase