Undeploy configuration file via Satellite

Latest response

Hi,

just a quick question because I could not find anything in the documentation:

Is it possible to "undeploy" a configuration file from a system via the Satellite?
Background is, we are cleaning up our configuration channels and are also removing file from them which are no longer needed.
Now we would like those files to be removed from the subscribed systems too.

Regards,

André

Responses

It depends on what exactly you mean by undeploy... ;-)

If you are replacing an existing file (i.e. /etc/sudoers) with your configuration channel file, it makes a backup copy in /var/lib/rhncfg/backups/ - however.. this will not necessarilly replace it back to the Original copy. Instead, it keeps the last version that was current.

If you are referring to a custom (non-OS) file (i.e. /home/user/.bashrc) - I can't think of a way to remove it, other than creating a remote command to do so, once you have deleted the file from the Config Channel.

The second case was what I was looking for. I already thought about a remote command but thought there might be a more "integrated" way. Something like a checkbox when you remove a file from a config channel: "also remove from all systems this file was deployed to".

Definitely an option that should be included that isn't.

Unfortunately I have also resorted to a remote command to clean up old configuration files that are no longer needed on systems.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.