On Fri, May 14, 2010 at 5:52 AM, Bram Enning
<address@hidden> wrote:
Hi,
I'm working on a fabfile.py that's stored in our subversion-repo. It holds passwords that I'd rather not store in our repository. Is there a way to read to a local file with some variables?
Below is an example of what I'd like to place in an unversioned file:
def ec2():
"""
Define the EC2-server variables below.
"""
#AWS
# The Public DNS-name or IP that AWS provides.
env.hosts = ['XXXXX']
env.hostname = 'XXX.XXX.org' # Site will be visible at this url
# The key-file you told AWS to use
env.key_filename = '/Users/XXXX/Desktop/id_XXX.pem'
# A standard Ubuntu-AMI has a default user named 'ubuntu'
env.user = 'ubuntu'
# Project-vars
env.proj_name = 'XXXX'
# Database
env.db_name = 'XXXt'
env.db_user = 'XX'
env.db_passwd = 'XX'
env.db_root_passwd = 'XXX'
env.db_migration_name = 'XXX'
env.db_migration_user = 'XX'
env.db_migration_passwd = 'XXX'
env.db_migration_root_passwd = 'XXX'
# DynDNS
env.dyndns_login = 'XXX'
env.dyndns_passwd = 'XXX'
Thanks!
_______________________________________________
Fab-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/fab-user