Link to home
Start Free TrialLog in
Avatar of gksinghiet
gksinghiet

asked on

How can I run an installer with script (packer)

I want to run an installer with a GUI which takes bunch of parameter during installation. This is for my github project https://github.com/CodersKarma/OracleCommerceCRS-vagrantbox
where I am using packer to automate installation of Oracle Commerce.

I am a developer with little knowledge in the field of System administration. I know that puppet and/or chef can be used, I have no idea how to write puppet or chef scripts/recipe.
Avatar of Phil Davidson
Phil Davidson
Flag of United States of America image

Puppet and Chef normally need dependencies to be met before they are installed on client servers.  Central servers (Puppet Master or Chef Server) push down code and configuration to the client servers (e.g., Puppet Agent, Chef Client).  For installers, I would use an RPM spec file or some other .bat script.  Installing a specific application may not be easier with Puppet or Chef.  They are ideal for making changes to many different servers from one central server.  Puppet manifests can be applied to many servers just like Chef recipes.  If the servers are in the same network, and it isn't too much work to install Puppet Agent (and its dependencies) or Chef Client (and its dependencies) on every serer you want to install Oracle Commerce, then maybe it would be a good way.  But installing Puppet Master or Chef Server require other applications and dependencies before you can get started.
Avatar of gksinghiet
gksinghiet

ASKER

Thanks for your comment. Can you explain what you mean by "I would use an RPM spec file or some other .bat script.". Any good resource that I can refer?
Avatar of A Q Choudary
You can use ansible,it require no dependencies,you can write your task on play book and just run ansible
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.