I have RHEL environment and due to network security in place, our Redhat server can not communicate with internet.
when i try bootstraping node from workstation, it tries to download the chefclient package node from internet which is not allowed in our network.
Is there any way to download the client package on clients from any reporitory on LAN during bootstraping porcess, rather than the client trying to download it from internet.
add the validation PEM and some basic configuration
run the chef client for the first time.
You can write a shell script that does the same thing, and invoke it with ssh.
Or if you are using kickstart, you can simply add all of these steps to your kickstart file.
In my own scenario, I have a ruby script that generates the kickstart file. In the %post section, I have this (obviously, my code still pulls chef from the Internet - you would have to change that part!):