January 2012
5 posts
2 tags
Automatically set the hostname during Kickstart...
I hate having to manually set the hostname in kickstart file, so when I found a fix, I was very happy. I wish I can take credit, but it was originally made by somebody who was trying to figure out a way to automatically set the hostname for VMWare ESX machines. Unfortunately, I lost that link, so I can’t refer to the other page for credit. So the best I can do is to explain how it is done...
Updated to chef-client on FreeBSD (aka part III)
Found the solution.
Essentially, I just need to add this:
supports :status => true, :restart => true, :reload => true
This means that it will start up the service if isn’t running. Now it works as expected when I add chef-client to the run list.
Here is the updated code:
when "bsd"
case node['platform']
when "freebsd"
directory "/etc/rc.conf.d" do
owner...
3 tags
FreeBSD and chef-client - a part II (of sorts)
Finally changed chef-client with an updated recipe to support FreeBSD.
Under the chef-repo/chef-client directory, I added the following files:
./templates/freebsd/rc.d/chef-client.erb
./templates/freebsd/rc.conf.d/chef.erb
And updated:
./recipes/service.rb
The locations corresponds to the directory location under the default #{conf} directory, (which is apparently /etc) The templates are .erb...
FreeBSD and chef-client - a part I?
As I mentioned before, Chef appears to work well on mostly Debian and Ubuntu. You will have to do a bit more work on the other OSes: In the case of FreeBSD, a lot more.
Here is one example: The recipe chef-client is used to install startup scripts on the nodes (rc scripts for Red Hat, upstart for Ubuntu, etc). it works on most OSes - except for BSD systems. In fact, in the code, when it noticed...
Always Crispy: SSH Tunnels - 2 ways →
verycrispy:
Recently, I have been googling how to make tunnels so I thought I would post what I do. A SSH tunnel allows you to connect to server, A, through server B, from client C.
You generally only want to setup a tunnel when you need to connect to server A but only have access to server B from your…