For config mgmt, we first moved from Shell scripting to Python scripting, for the purpose of smooth transition in supporting any new platform(OS), with minimum code changes. Python code uses popen()
to execute commands based on OS.
As we use python for installation & configuration of applications, but python does not provide platform independent approach for install/config.
For platform independence, we want to go for Chef
There are twenty nodes(10 windows & 10 Linux), to install pdf reader.
Can a Chef cookbook recipe be platform independent to install pdf reader on any OS?
or
Do we need to write recipe per platform?