Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have three environments: development, staging, and production.

In our configuration variables for development, we set our database to connect to 127.0.0.1 with a set username or password.

However, other developers part of our team have different username and password configurations.

How do we reconcile this without making development_steve, development_mark, development_amir, etc.?

share|improve this question
    
Where are these configuration variables stored exactly? –  David Schwartz Nov 9 '11 at 21:51
    
In environment configuration files in our individual projects. –  Filo Stacks Nov 9 '11 at 21:55
add comment

3 Answers

Discuss this with the group and come to a procedural arrangement would be my best suggestion.

share|improve this answer
    
Thanks, mdpc. This is kind of how we're doing it now. We basically have a set of credentials that everyone uses locally. –  Filo Stacks Nov 9 '11 at 20:49
add comment

If I understand you correctly, you build into a configuration file that's part of your managed files the user name and password used to access the database. Is that right? That should be site-specific configuration and not part of anything managed in that way. (You can defaults if you want, but you need a sane way to override something that can vary by site.)

share|improve this answer
    
Thanks for the answer, David. Sorry if I wasn't clear. I've got a number of team members and we have local development configurations. Example: MySQL host: 127.0.0.1, username: dbapp, password: asdf. I'm looking for a way to have a configuration file that works for all of them, but doesn't make everyone use the same credentials. It seems like making people use the same credentials is the easiest way to go, though. –  Filo Stacks Nov 9 '11 at 22:09
    
Since the purpose of the configuration file is to have environment-specific values, why would you want to have one configuration file that works for all of them? It seems like you are going out of your way to jam a square peg in a round hole. X-specific values should be stored in an X-specific place, unless you have some really good reason to do otherwise. (And maybe you do. I don't know.) –  David Schwartz Nov 9 '11 at 22:24
add comment

We use local credentials for devel databases. That we we just leave all usernames blank and turn on trusted connections.

Same config for everyone, but each person has their own private connections

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.