On 1/7/13 1:40 AM, lalit jangra wrote:
> Hi,
> 
> I have alfresco .bin installer file for linux distribution which i want
> to automate using puppet. While installing alfresco on linux ,usually i
> need to provide a number of parameters such as java_home, db home,
> alfresco home or tomcat port etc.
> 
> Now i want to install same .bin installer using puppet but not getting
> how can i provide same runtime argument in puppet installation. Can
> anybody help?
> 
> Regards.
> 

Check out the type reference for the exec resource[1]. Does this example
help?

exec { 'alfresco_installer':
  command     => "/tmp/alfresco_installer.bin $alfresco_args",
  environment => ['JAVA_HOME=/opt/java','TOMCAT_PORT=8080'],
  creates     => '/usr/bin/alfresco',
}

These type of installers are no fun. You might want to side step this
issue by turning alfresco into a package with FPM[2] and then use the
package{} resource.

[1] - http://docs.puppetlabs.com/references/stable/type.html#exec
[2] - https://github.com/jordansissel/fpm/

Cheers,
-g

-- 
Garrett Honeycutt

206.414.8658
http://puppetlabs.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to