Check osad service status in Satellite


RedHat Satellite server allows user to push the updates or run the command remotely in a 'real time' manner. The backend services for this feature are osa-dispatcher, jabberd and osad. osa-dispatcher periodically check the database to see if any clients have actions they need to perform. If there are, it sends the messages through jabberd … Continue reading Check osad service status in Satellite →

Exclude configuration from puppet central management


In some cases, we need to test a configuration in a server that is managed by Puppet. Besides excluding the server in the manifest file, there are two more ways to do it: 1) Use "chattr +i <file>" to set the file to immunable to prevent even root from changing the file. Use "chattr -i" … Continue reading Exclude configuration from puppet central management →

Apache mod_rewrite URL redirect script


I wrote a bash script to automate the Apache (mod_rewrite) URL redirection. It supports 3 types of redirection: - One to One: eg. From http://jackiechen.local/mylab To http://jackiechen.org./mylab - Any to One: eg. From http://jackiechen.local/* To http://jackiechen.org - Any to Any: eg. From http://jackiechen.local/$1 to http://jackiechen.org/$1 The script can be downloaded from here Note: I tested … Continue reading Apache mod_rewrite URL redirect script →

Puppet motd template


1) Create the manifest of sys_motd module/etc/puppet/environments/development/modules/sys_motd/manifests/init.ppclass sys_motd { file { '/etc/motd': ensure => file, content => template('sys_motd/motd.erb'), }}2) Create a ERB file as the motd template/etc/puppet/environments/development/modules/sys_motd/templates/motd.erb#################################HOST: <%= fqdn %> OS: <%= operatingsystem %> VERSION: <%= operatingsystemrelease %> ENVIRONMENT: <%= environment %>#################################