Afaik we don’t support chef on windows yet.
How do I use the chefpackager.nsh script for creating platform specific chef-solo bundles? Suppose I want to do for ubuntu 14.04 target servers.
Currently the folders in Depot->Chef->Chef Administration->Chef Content->Chef Accessories are all empty in my BSA console. So is the jobs section for chef.
Yes. I tried to import chef agent from actions tab in the console. It threw an error "Job not found. Could not execute NSH Script job".
I tried to run this below command in nsh prompt of my app server for creating the bundle. Didn't work too. I don't know how to proceed.
CLM41BSAQA% "E:\BMC Software\BladeLogic\8.1\NSH\br\autoimportcontent\chefscripts\chefpackager.nsh" -n ubuntu -v 14.04 -a x86_64 -r "E:\Applications\ruby1.9.3_18.104.22.168-8.1+deb7u5_all.deb"
i'm not sure if you can use a windows path there to the chefpackager script.
This command has to be run in Application server, isn't it? Then where should the script and the ruby installer be kept to take as input?
1 of 1 people found this helpful
yes but your prompt indicates you are in nsh, not cmd.
CLM41BSAQA% "/E/BMC Software/BladeLogic/8.1/NSH/br/autoimportcontent/chefscripts/chefpackager.nsh" -n ubuntu -v 14.04 -a x86_64 -r "/E/Applications/ruby1.9.3_22.214.171.124-8.1+deb7u5_all.deb"
it says it can't find a job, i'm not sure what specifically it's looking for - i believe there are some jobs present in the workspace for chef. are those there?
I have one more doubt, could you please help me with that? After successfully creating the chef solo bundles the next step tells to import the databag.json, environment.json and roles.json files in the ChefAccessories folder in the depot. How do I get these files? Chef documentation isn't giving me much help. I am looking to run a very basic cookbook like installing Java in a Ubuntu server.
I don't have any idea of Chef. Your guidance would be very helpful.
the databag and other files are all chef bits. does your cookbook have them ?
I download java cookbook from the Chef supermaket. There are none json files in the extracted folder except metadata.json, and most of the files are ruby files.