Install error

39 views
Skip to first unread message

Adriano Ferreira

unread,
Oct 10, 2014, 1:24:50 PM10/10/14
to puppet...@googlegroups.com
Hi,
I'm a complete newbie on puppet software.
I'm trying to intall software toa cenOS machine using puppet but without success.
I also tried to add a full source (c:/users/...) path but without success.

exec {"test_install":
    cwd     => "/opt/soft/test.bin",
    command =>  "chmod +x test.bin",
    path      => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
    require =>  [File["/opt/soft/test.bin"]],
   
}   
exec {"test_install2":
    cwd     => "/opt/soft",
    command =>  " sudo ./test.bin",
    require =>  [File["/opt/soft/test.bin"], Exec["test_install"]],
    path      => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
}

file {"/opt/soft/test.bin":
    ensure => present,
    source=>"puppet:///modules/test.bin";
}

Thanks for the help

Felix Frank

unread,
Oct 10, 2014, 7:08:39 PM10/10/14
to puppet...@googlegroups.com
On 10/10/2014 07:24 PM, Adriano Ferreira wrote:
> file {"/opt/soft/test.bin":
> ensure => present,
> source=>"puppet:///modules/test.bin";
> }

This URL lacks the module name. Assuming that the module is named test,
and the file is in modules/test/files/test.bin, this is its URL:

puppet:///modules/test/test.bin

If this is not your issue, please note that your mail lacks sufficient
information. Please consider putting the agent output onto a paste
service so that we can see it.
Message has been deleted
Message has been deleted

Adriano Ferreira

unread,
Oct 11, 2014, 6:43:51 AM10/11/14
to puppet...@googlegroups.com

I have chabged the location file ãnd now I get the error on the picture.


  
exec {"ilog_install":
    cwd     => "/opt/planner",
    command =>  "chmod +x cplex_studio126.linux-x86-64.bin \
                    && sudo ./cplex_studio126.linux-x86-64.bin",

    path      => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
    require =>  [File["/opt/planner/cplex_studio126"]],
  
}  
#exec {"ilog_install2":
#    cwd     => "/opt/planner",
#    command =>  " sudo ./cplex_studio126.linux-x86-64.bin",
#    require =>  [File["/opt/planner/cplex_studio126"], Exec["ilog_install"]],
#    path      => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
#}

file {"/opt/planner/cplex_studio126":
    ensure => present,
    source=> "${folder_repo}/cplex_studio126.linux-x86-64.bin";
}

Thanks for the help.
Regards,
Adriano

Felix Frank

unread,
Oct 12, 2014, 5:21:10 PM10/12/14
to puppet...@googlegroups.com
On 10/11/2014 12:43 PM, Adriano Ferreira wrote:
>
>
> I have chabged the location file ãnd now I get the error on the picture.

Please be more careful. Somehow your mails end up three times on the list.

The error "cannot generate tempfile" usually means that the target
directory does not exist.
Reply all
Reply to author
Forward
0 new messages