Managing NFS and NIS


#1

I’ve been working on setting up a few things in chef, and one one
thing I haven’t found a good resource on is how I might want to
configure a recipe to manage NFS mounts across systems. We have a set
of NFS mounts we want on all our systems, but /etc/fstab can differ
from host to host. Is this the sort of thing I’d need to do in a data
bag?

Are there any pointers to resources on how to generateNmfiles
like /etc/fstab (or another one I’m looking to manage via chef,
/etc/sysconfig/network, where I want to make sure that NISDOMAIN is
set, but otherwise have a lot of host-specific stuff in there,
including a mix of DHCP and static network information)?


#2

On Oct 11, 2011, at 1:40 PM, steeves@raingods.net wrote:

I’ve been working on setting up a few things in chef, and one one
thing I haven’t found a good resource on is how I might want to
configure a recipe to manage NFS mounts across systems. We have a set
of NFS mounts we want on all our systems, but /etc/fstab can differ
from host to host. Is this the sort of thing I’d need to do in a data
bag?

Are there any pointers to resources on how to generateNmfiles
like /etc/fstab (or another one I’m looking to manage via chef,
/etc/sysconfig/network, where I want to make sure that NISDOMAIN is
set, but otherwise have a lot of host-specific stuff in there,
including a mix of DHCP and static network information)?

For mounts, look at http://wiki.opscode.com/display/chef/Resources#Resources-Mount. For the yp domain I would throw that in another file and read it in.

–Noah