Hi,

I'm a complete newbie on the puppet topic. I'm trying to install a software 
that is a bin file on a centOS machine using puppet. 
I have tried with a direct source path to my local disk but also without 
success.
What am I doing wrong? 
Here is the code so far:

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

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

Best

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/61a02756-1bf6-49d7-85ed-4e5f7f0d895f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to