The “official” way is here:
For offline installation, you’d want to make all the recursive
packages available in a local yum repo.
You can also dig around in here for some goodies:
My last attempts at 0.9.12 ended up broken for reasons I can’t be
bothered to investigate.
I gave up on 5.x, and and decided to use fedora in anticipation of RHEL6.
Bundlerized Fedora stuff is here:
I’ll be updating for RHEL6 once Centos6 makes it out the door.
On Tue, Jan 4, 2011 at 12:56 PM, SethChisamore firstname.lastname@example.org wrote:
Also be aware of RHEL/CentOS sudoers (env_reset) PATH issues:
The Chef Providers and Ohai plugins relies on the PATH being set correctly
as they do not hardcode paths when running system commands. We do this
because we don’t want to make assumptions about where programs might live
for every single platform.
Seth Chisamore, Technical Evangelist
T: (404) 348-0505 E: email@example.com
Twitter, IRC, Github: schisamo
On Tuesday, January 4, 2011 at 12:46 PM, John E. Vincent (lusis) wrote:
On Tue, Jan 4, 2011 at 12:36 PM, Meppiel, Josh
Are there instructions for the installation of Chef on a RHEL 5.4/5.5 box
without access to the internet? All instructions I see on the OpsCode
website, including those for installation from source, dictate that the host
has direct access to the internet. I would be fine with installation from
source, tarball explode, or RPM’s.
I’ve been in your shoes, not just with Chef.
You have a couple of options
- Package the gems into RPMS yourself and install them (along with
config files that way)
- Create a local gem server to host the gems and point all of your nodes
If you’re planning on using ‘knife bootstrap’, take a look at the
bootstrap templates. That’s where you’re going to get the most
flexibility and you’ll understand exactly what happens when a node is
bootstrapped. Here’s an example:
You can see all of the templates available in
’lib/chef/knife/bootstrap’ where your chef gems were installed
locally. You’ll probably need to create a custom one, copy it to the
.chef directory of your local chef repo and then bootstrap a new node
knife bootstrap FQDN -N nickname -i -x root -d -r “role[base]”
So esssentially, you would want to modify the steps in the first part
of the gist to pull everything from a local repository.
If you want to run your own gem server, see here: