Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is /sbin/zonename ? Where do I get it for CentOS?

I am trying to use puppet (system administration), and it can't find this command.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can use:

yum whatprovides '*bin/zonename'

but our Puppet installs run just fine without it. Are you using the puppet package from EPEL? You'll also want facter from EPEL.

Assuming CentOS 5.x (cat /etc/redhat-release) and an x86_64 architecture (uname -a), after deleting any version of Puppet you installed outside of RPM, just do:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
yum install puppet facter

And that should sort you out nicely. If it doesn't, can you give us the exact error message you're getting, and where and when you're seeing it?

share|improve this answer
    
I got it worked out. I was originally building everything from source. EPEL was definitely much easier :) –  Joshua Enfield Jun 26 '10 at 4:19

If I'm not mistaken, zonename is used on Solaris to identify the current local zone.

I don't believe that there is a CentOs equivalent, because CentOS does not use Solaris zones.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.