Postings by Mark Haney

Perl fun part 2

I figured this needed it's own thread, so apologies for spamming the list.

Along with the /usr/share/perl5 issues (which I did kinda fix with a
manual copy of the directory from another box), we're having an issue
with SystemD (go figure) stopping the radiator service, but failing to
unbind the ports (1645/1646). It's complaining about 'killproc' not

Is there a package that's in? Or how do I get this to work with SystemD
properly? We can't have this thing jacked up like this.

Any ideas?

Missing /usr/share/perl5 in C7

I'm under a bit of a crunch here, so any immediate help would be
appreciated. We kickstart our customer boxes and have started migrating
to CentOS 7. We're running Radiator 4.6 1 (I know, but bear with me)
and we just deployed our first radius box to a customer to be turned up
today. (I know, I know. I had no idea it wasn't being tested sooner than

I was brought in because the perl module was missing and
causing compilation errors. It turns out nearly the entire
/usr/share/perl5/ directory was pretty much empty.

run bash <filename> from cron

This might be a bit OT, but I've never had to do this before and what
I've googled doesn't seem to be working.

I have an ansible playbook that I'm working on that I want to run as a
cronjob.  One task I'm having trouble with is where I have a text file
with lines like: "blah blah" "blah blah blah"

This text file has to be 'executed' using 'bash filename.txt'.

Possibly [OT] ansible vmware inventory plugin

This might be OT, but it is CentOS related.  I've been running Ansible
on C7 for a handful of months now, and updated to 2.4 as soon as it was
available. I've been building inventories by hand in that time (mostly
due to the fact we had no actual documentation on the managed external
customer servers).

Kickstart ksdevice question

This should be easy to answer (I hope).  We routinely kickstart boxes to
use for managing our customers RADIUS/DHCP configurations (along with
other things).  We've had a C7 kickstart in place since I built one in
May and are finally starting to roll it out for new installations.  But,
I'm curious as to what ksdevice= actually does.

With the C6 we routinely used ksdevice=eth0 since we ship boxes with two
NICs and knew interface 1 was always eth0.  With C7 comes the interface
naming convention changes and that's where questions have arisen about
that option.  It's been set as ksdevice=e

Bash help

I know this is for CentOS stuff, but I'm at a loss on how to build a
script that does what I need it to do.  It's probably really logically
simple, I'm just not seeing it.  Hopefully someone will take pity on me
and at least give me a big hint.

I have a file with two columns 'email' and 'total' like this:

<a href="mailto: ... at example dot com"> ... at example dot com</a> 20
<a href="mailto: ... at example dot com"> ... at example dot com</a> 40
<a href="mailto: ... at domain dot com"> ... at domain dot com</a> 100
<a href="mailto: ... at domain dot com"> ... at domain dot com</a> 30

I need to get the total number of messages for each email address.  This
type of code has always been the hardest for me for whatever reason, and
honestly, I don't write many scripts these days.

CentOS 6.4 apparent rpm problem

Well, after three days of beating my head against my desk, I'm waving
the white flag.  I've got a CentOS 6.4 box (yeah, I know) that I blew
away the OpenLDAP client and installed the freeipa-client as we're
transitioning off this terrible OpenLDAP implementation here. 
Everything installed fine, and while I'm still tweaking the ansible
playbook for completely flushing PAM and OpenLDAP stuff off the box (we
have more than 100 other C6 boxes to migrate), everything works fine
with logging in using our IPA credentials.

The only thing that /doesn't/ work is sudo.


I can't seem to find anything clear on this, but is the C7 version of
BIND 9.9 built with Request Rate Limiting?

chkconfig madness CentOS 7

I have a couple of in use C7 boxes that were built with ntsysv and
chkconfig for some old packages that needed to start using init.d. (The
person setting these up didn't know about systemd creating service files
for older packages, so we're stuck with these as-is.

ntsysv and chkconfig update error

We have a couple of CentOS 7 boxes that were built before I was hired to
clean up the kickstart script used for C7 boxes. We had a couple of rpm
packages that were pre-C7 that were used and setup the old SysV Init way
using ntsysv and chkconfig on these boxes. (I finally fixed that in the
newer scripts.) These are out in the field and I'm having to deal with
them as they are.

C7 ansible 2.3 become_method: su not working

I just don't know what else to try. I've beat my head on this for 3 days
now and it's becoming obvious that either Ansible 2.3 is a complete
disaster, or the CentOS 7 package is a complete cluster. Here's my
problem. I am working on getting an ansible server to manage about 100
or so CentOS 6 servers. All have an unprivileged user account setup (up
to 3 years before I got here in April) but that user account isn't setup
with sudo access. The way to get to root is 'su'.

I'm not a newbie with Ansible as I used it extensively in my previous
position to manage ~70 or so Ubuntu servers.

CentOS 6 dhcpd custom log issues

Hi all,

I've got an issue with C6's dhcpd custom logging that I cannot figure out.
Hopefully someone has an idea, or has seen a similar issue.