FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-22-2012, 08:52 PM
Bob Proulx
 
Default help with packaging (preinst scripts)

David Cho-Lerat wrote:
> I've done some RTFM, but can't yet find where the helper
> scripts to use in maintainer scripts (preinst/postrm/..) are
> described.
>
> How does one automate the following in the preinst scripts,
> for instance :

It sounds like you are trying to use a package installation in order
to do system configuration. That can work. It seems seductive. I
used to do it that way too. But after having done it that way I now
do it differently. There are just too many issues. The task really
isn't a package installation so much as system configuration. So now
I use a system configuration tool.

I actually use my own system configuration tool. I know it best. But
in the larger world the standard tools are cfengine, puppet, chef. I
recommend you look at puppet as the place to start. There is a large
community around it and it is quite effective.

So that is my opinion and recommendation. Avoid the problems of
working within a packaged space and instead use a system configuration
tool. It is a much better match. You will eventually change to it
anyway so you might as well get there sooner. :-)

> 2. ssh-keygen with no user input ("Enter passphrase")

No one has mentioned the ssh-keygen -N new_passphrase option yet.

Bob
 
Old 08-23-2012, 08:15 AM
David Cho-Lerat
 
Default help with packaging (preinst scripts)

Hi Bob,


It sounds like you are trying to use a package installation in order
to do system configuration.

basically, to set up the software and all the system configuration
around it, yes.

That can work. It seems seductive. I
used to do it that way too. But after having done it that way I now
do it differently. There are just too many issues. The task really
isn't a package installation so much as system configuration. So now
I use a system configuration tool.


well, we're talking about just 15-20 servers tops, and the servers
are spread across several countries, with different sysadmin and
Operations teams. Sometimes I can access the servers myself,
sometimes I just send them the package and I don't really know
much about the target system.

I actually use my own system configuration tool. I know it best. But
in the larger world the standard tools are cfengine, puppet, chef. I
recommend you look at puppet as the place to start. There is a large
community around it and it is quite effective.

So that is my opinion and recommendation. Avoid the problems of
working within a packaged space and instead use a system configuration
tool. It is a much better match. You will eventually change to it
anyway so you might as well get there sooner. :-)

interesting, but not applicable for this particular package's context, I
think.

2. ssh-keygen with no user input ("Enter passphrase")


No one has mentioned the ssh-keygen -N new_passphrase option yet.


thanks. the </dev/null stanza works as well.

Bob


Thanks,
David.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 5035E6BE.4000704@asterion.fr">http://lists.debian.org/5035E6BE.4000704@asterion.fr
 

Thread Tools




All times are GMT. The time now is 12:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org