ployground / ploy

A tool to manage servers through a central configuration. Plugins allow provisioning, configuration and other management tasks.
http://ploy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
78 stars 15 forks source link

Error: Couldn't find any fabfiles #9

Closed natea closed 9 years ago

natea commented 14 years ago

I'm using the latest 0.8 release, and when I try to run the "do" command to execute a fabric script, the following error occurs:

$ ./bin/aws do plone3-small-production get_syslog
/Users/nateaune/.buildout/eggs/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto
/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module     instead
  import warnings
/Users/nateaune/.buildout/eggs/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto    /Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import warnings

Fatal error: Couldn't find any fabfiles!

Aborting.

Here is what my aws.conf file looks like:

[macro:base-instance]
keypair = gsg-keypair
region = us-east-1
placement = us-east-1a
fabfile = `fabfile.py`_

[instance:plone3-small-production]
<= macro:base-instance
securitygroups = plone3-small-production
instance_type = m1.small 
image = ami-df947ab6

And there is a fabfile.py in the etc/deployment directory. What am I missing? Do I need to specify an explicit path for the fabfile, or will mr.awsome be able to find it if it's in the etc/deployment dir?

cocoy commented 14 years ago
When I create a project I have this directory structure :
   ec2-project/
                  etc/
                       fabfile.py
                       aws.conf 

This will search the filename fabfile.py inside the etc directory.

Make sure you get the correct filename of your fabfile at aws.conf i.e fabfile.py not `fabfile.py`

Ex.
[instance:demo-server]
keypair = gsg-keypair
securitygroups = default
region = us-east-1
placement = us-east-1a
# we use images from `http://alestic.com/`
# Ubuntu 9.10 Karmic server 32-bit Europe
image = ami-bb709dd2
#startup_script = startup-demo-server
fabfile = fabfile.py
user = ubuntu