Automate software updates on OSX

So I have a cluster of OSX boxes which I control via Jenkins. I wanted to automate the system updates via a Jenkins job.

The process it must follow:
1) Run system Update
2) Reboot system
3) Login as xcodebuild requires user to already be logged in.

So how I did it:

1) Enable cmuser to execute softwareupdate & shutdown without providing password:

cmosx01:~ cmuser$ sudo visudo

....

cmuser ALL=(ALL) NOPASSWD: /usr/bin/softwareupdate
cmuser ALL=(ALL) NOPASSWD: /sbin/shutdown
...

2) Go into each box & configure cmuser to automatically log in
System Preferences
Users & Groups
Unlock so you can make changes
Login Options
Automatic login: cmuser

3) Create wulti-configuration project in Jenkins & configure it to point to all your boxes.
This project has 2 build steps (Execute Shell):

sudo /usr/sbin/softwareupdate -i -a
sudo /sbin/shutdown -r now

CentOS 6 – Enable logging for OpenLDAP

[root@cmlin02 openldap]# vi /etc/rsyslog.conf 

...
# LDAP
local4.* /var/log/ldap.log

 ...
[root@cmlin02 openldap]# /etc/init.d/rsyslog restart
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
[root@cmlin02 openldap]# 
[root@cmlin02 openldap]# touch /var/log/ldap.log
[root@cmlin02 openldap]# service slapd restart
[root@cmlin02 log]# tail -100f /var/log/ldap.log 
...

Jul 25 10:43:24 cmlin02 slapd[10271]: conn=1019 op=196 SRCH attr=cn
Jul 25 10:43:24 cmlin02 slapd[10271]: <= bdb_equality_candidates: (member) not indexed
Jul 25 10:43:24 cmlin02 slapd[10271]: <= bdb_equality_candidates: (uniqueMember) not indexed
Jul 25 10:43:24 cmlin02 slapd[10271]: conn=1019 op=196 SEARCH RESULT tag=101 err=0 nentries=1 text=