fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] seperate file for login and passwd


From: Erich Heine
Subject: Re: [Fab-user] seperate file for login and passwd
Date: Fri, 14 May 2010 08:53:37 -0500

Bram,

You've already done the hard part! Assuming you saved the file as mypw.py,  just put an 

from mypw import e2

at the top of the fabfile, and you are good to go. Like christian mentioned, a fabfile is just python, so you can treat it the same as any other python script.

Regards,
Erich

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



reply via email to

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