I am trying to automate application deployment using chef.
I had prepared cookbook which is generic(works based on input attribute values) to deploy APIs. I've kept all the attributes in my attribute folder.
Here the problem am facing is I am able to successfully deploy the package if I keep package version number in attribute file. where as in reality package number gets changed every time that CD pipeline gets triggered. And am thinking to use chef-client CLI feature to pass parameters as JSON file with -j option.
Problem is I don't want to touch my cookbook to update package version every time when CD pipeline is triggered, because if i update anything in my cookbook I've to again run CI for cookbook validation and at the same time I can't keep a file in every node(ranges from 50 - 500 servers) and update version remotely before chef-client gets triggered.
Please help me in finding a way to pass parameter remotely to knife ssh. Or any other solutions that solves this problem. Thank you very much in advance.