fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] seperate file for login and passwd


From: Bram Enning
Subject: [Fab-user] seperate file for login and passwd
Date: Fri, 14 May 2010 12:52:11 +0200

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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]