## 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]

## 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


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