I am trying to run chef-client (without internet access) so it fetches for ruby gem which i kept in artifactory .
I have run the below manual steps to add the repository path to ruby gem:
The bootstrap of the Windows node through Jenkins is successful when I do not mention any run list.
But, when I mention run list, it starts executing chef-client, which in turn tries to fetch few required gems from https://rubygems.org . As the node does not have internet access, it fails.
execute “gem sources –a /path/to/artifactory’s/gems/repository”
execute “gem sources –r https://rubygems.org”
The above two steps help us in fetching the gems from artifactory instead of the official gems repository.
3. Execute chef-client
The same command I am unable to run using the jenkins .I tried with winrm option but no success.
Can anyone help me out in this.
Thanks in advance