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
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to