Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for opinions/ideas on a setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Fri Feb 10, 2006 9:15 pm    Post subject: Looking for opinions/ideas on a setup Reply with quote

Here is my situation.

I'm seting up a server to run subversion. So far so good, everything is working exactly as I want it to.

My setup involves using apache to handle the connections, because we want https and good security management.

Now, the catch. We want to be able to easily "clone" the application and it's data. To clone the data, it's just a mather of export, import. However, for the binaries, that's not really a solution as a lot of things appear to be hardcoded in the binaries.

For apache, I was thinking of building it in /apache, then moving it to the dev or prod environment (as needed) and running it chrooted. This way, I can more easily controle where everything is.

I could probably do the same with SVN, but because I will mostly be using svnadmin, that's rather impractical. I can probably use links or fake mounts so that the users endup with the right environment, but that fells a bit messy to me.

Does anyone have other ideas or opinions on what I just presented?
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Fri Feb 10, 2006 9:27 pm    Post subject: Reply with quote

If those production machines are also running Gentoo (and they had better; never develop on a system you won't be running on!) just build an exact copy of a production machine in your development environment, checkout the code, build it there, then copy the binary to the production environment.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Kruegi
Guru
Guru


Joined: 09 Feb 2005
Posts: 406
Location: Clausthal-Zellerfeld; DE

PostPosted: Fri Feb 10, 2006 9:35 pm    Post subject: Reply with quote

I did not fully get it. Do you want to offer muliple services for multiple user or do you want to clone it to several machines?
In the first case it makes not much sense to handle the webserver and svn installations on a per user basis.
Just do one secure setup of Apache, create a repository for every account and secure it.
There are several Apache options available to devide the users.

Thomas
Back to top
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Mon Feb 13, 2006 3:17 pm    Post subject: Reply with quote

Guess I wasn't clear. Sorry about that. Some information

1: No, unfortunatly, the systems aren't on gentoo. I wish they were, but they aren't. However, the question would still apply if it was gentoo.

2: My situation is as followed. I have a single machine. The apache/svn combination will need to be very high avalability. As such, we don't want to make ANY changes in the "production" environment. To be able to test new versions of, say, apache, we need to be able to "clone" the installation. This includes both the data AND the binaries.

3: We need control on where the binaries are located. This is because we try and keep binaries in a specific mount (/u03) As such, I wouldn't be able to use say portage (if I was on gentoo) to install, as it would chose it's own folders. As such, I'm building strait from the apache source. (./configure; make && make install)

Now, to keep the test and production software completly seperate, I am using 2 different users. One is called "dev" the other "prod". dev and prod have 0 rights on each other's folders. As such, it needs to be impossible for anything running under the dev user to touch prod files.

Normaly, any changes will be done as follow.

1: Install new patch in dev.
2: Do testing
3: Clone to prod

Now the issue is that I can't really copy the binaries from dev to prod, because it tries to use libraries in the /u03/dev folder. The solution I have right now is to basicaly re-do the same process I did to install in dev, but this is a "last resort" kind of solution, as my manager would rather just have me copy the files.

Anyone as an idea?
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Back to top
View user's profile Send private message
Zuu
n00b
n00b


Joined: 22 Feb 2005
Posts: 25
Location: /home/sweden

PostPosted: Tue Feb 21, 2006 6:28 pm    Post subject: Reply with quote

I have not done prod/dev stuff myself. However so far I know if you run production and development on the same machine it _can be_ a good idea to use virtual machines for dev and prod. Then they can be setup exactly the same. All paths will be the same etc.

Also you get other cool features. If it's true, and you are using xen, you will be able to move a running virtual machine from one host machine to another via LAN without stoping it. But then, things like routing and stuff come into play. How many packages will be lost etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum