Proper way to delete channel, repository, packages in Spacewalk

This is the way to remove the channel together with repository. It will also remove the packages from the file system. The workflow is as follows: remove subchannels and master channel remove repos remove orphan packages sync/clean up file system with Spacewalk DB records remove broken links to RPM packages (optional) You can remove channels and repos within GUI. You can also perform it all on command line: [Read More]

Gitlab changing LDAP DN

We have upgraded our LDAP infra and introduced a new LDAP server. The LDAP has different LDAP tree. That’s why we had to modify Gitlab LDAP setting. This is quite easy, since it’s just modification of /etc/gitlab/gitlab.rb. The tricky part is uid search of current users. Gitlab stores the whole uid with the context inside the DB. So, we have to modify the records within the DB. su - gitlab-psql /opt/gitlab/embedded/bin/psql gitlabhq_production UPDATE identities SET extern_uid = 'NEW LDAP UID' WHERE id = x; I have created a dump of the table and modified all the records with: [Read More]
gitlab  ldap 

Augeas to add Apache directive TraceEnable

This is a small exercise on Augeas just to add a new directive. I’d like to add TraceEnable On to the configuration.

rm /files/etc/httpd/conf/httpd.conf/*[self::directive='TraceEnable']
ins directive before /files/etc/httpd/conf/httpd.conf/*[self::directive='KeepAlive']
set /files/etc/httpd/conf/httpd.conf/directive[.=""] "TraceEnable"
set /files/etc/httpd/conf/httpd.conf/directive[.="TraceEnable"]/arg "On"
save
quit

Comments:

Filip Valder - Aug 0, 2014

Hi. As an example, it’s OK. But for security reasons having “TraceEnable off” is better, isn’t it? Filip

thank you for sharing

Nagios time in far future

In case of the time being too far in the future you can go to:

/etc/init.d/nagios stop
mv /var/nagios/retention.dat{,.old}
/etc/init.d/nagios start
nagios 

OpenWrt on TP-LINK TL-WR904N

I have successfully installed OpenWrt Attitude Adjustment 12.09 on TP-LINK TL-WR904N Rev. 1.0 Ver 1.3. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ar71xx-generic-tl-wr941nd-v4-squashfs-factory.bin. BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12. [Read More]

OpenWrt on Tenda W307R

I have successfully installed OpenWrt Attitude Adjustment 12.09 on Tenda W307R Rev. V2.0. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ramips-rt305x-w306r-v20-squashfs-factory.bin. BusyBox v1.19.4 (2013-03-15 02:26:13 UTC) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12. [Read More]