[Spacewalk-list] can/cannots of Spacewalk: some questions

Jan Hutař jhutar at redhat.com
Thu Aug 16 09:01:13 UTC 2012


On Tue, 14 Aug 2012 14:56:42 -0600 "Jason M. Nielsen"
<jnielsen at myriad.com> wrote:

> I am not aware of an easy method of backing up the existing
> file prior to deploy. You could push the file back to the SW
> with rhncfg-manager or the like but unfortunately there
> appears to be no way to submit files from the client to the
> clients "locally managed" config channel. Odd as listing the
> channels out you can see it (its just the systemid). Maybe a
> way to submitting it to a general temp channel, then another
> process moves it to the locally managed, removes and moves on
> to the next client.
> 
> You could use profiles to enforce systems to look a certain
> way from a package perspective.  For instance, set up "foo" to
> look as you wish. Add "bar" to a system group "baz" which is
> suppose to look like "foo". Periodically, cron perhaps, run a
> job that tells all the nodes in system group baz to sync their
> profiles to the saved foo profile. Number of ways you could do
> this through the basic tools. Might be a better way if you
> look more to the guts of SW though. I frequently use the
> profile sync feature to make machines look the same and it
> works quite well (perfectly thus far).
> 
> You should be able to have packages installed on system
> registration. I do this for all the spacewalk and rhn packages
> as well as a few other items. Although I am on version 1.5.
> Looked into the logs or client verbose for errors? What I have
> found to not work correctly are configuration channels. The
> registration simply crashes and Ive not taken any time to look
> into as of yet.
> 
> On 08/10/2012 05:30 AM, Registros Web wrote:
> > Hi all,
> >
> > I'll be grateful if anyone can give an answer to this
> > questions:
> >
> > - Is it possible to have files removed with SW?. I know
> > files can be deployed but is there a way to tell SW to
> > delete arbitrary files in case they exists??. And what about
> > move/copy them?. For example I want to make a backup of the
> > actual file before deploying a replacement.
> >
> > - Package installation/removal. I know that you can tell SW
> > to install some packages at the moment of a client
> > registration (which BTW doesn't work for me) but, is it
> > possible to tell SW which packages you want a system (or
> > group) to have installed and NOT installed?. For example, I
> > want my systems to have installed package 'telnet' and have
> > package 'nfs-common' removed if installed, and I want all
> > that to be checked regularly, not only on client
> > registration. Is this possible with SW?.
> >
> > Thanks.
> >
> > Cheers,
> > Fred.

Not sure what your usecase is, but you can use remote action and
create script where you parse output of `rhncfg-client verify`
to get a list of files which will be updated by config file
deploy.

Or you can create an RFE bugzilla for clients tools to have this
functionality.

Regards,
Jan



-- 
Jan Hutar     Systems Management QA
jhutar at redhat.com     Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120816/e07d69d2/attachment.sig>


More information about the Spacewalk-list mailing list