Commits

Benoit C committed 4d92cbe

update the configuration

Comments (0)

Files changed (1)

 --- #YAML:1.1
 
-preprod:
+prod:
     distro:
         name: debian
+        # list of packages you need to install
         packages: [python-virtualenv, libmysqlclient15-dev]
     project:
-        name: myproject
-        normal_user: foo
-        sudo_user: bar
-        logs: myproject.log
+        name: projname
+        normal_user: myuser
+        sudo_user: userwithsudo
+        logs: icanhazlogs.log
+        root_dir: /path/to/root/project/
+        doc_root: /path/to/root/project/web_project/
     hosts:
-        web: [stage.example.com]
+        # lists of your fronts
+        web: [web1.example.com, web2.example.com]
     database:
         type: mysql
-        host: localhost
+        host: mysql.example.com
         port: 3306
-        user: myuser
-        db: mydatabase
-        pw: mypass
+        user: mysqluser
+        db: db
+        pw: mysqlpassword
+        backup: /path/to/root/project/web_project/backup/database
     hg:
-        url: hg.example.com
-        repos: repos/
+        url: hg.exemple.com
+        repos: repos
+        dest: /path/to/root/project/web_project/
         user: hguser
-        pw: hgpass
+        pw: hgpassword
     django:
-        doc_root: /path/to/root/project/
-        src_dir: /path/to/root/project/src/djangoproject/
+        doc_root: /path/to/root/project/web_project/
+        # path to your manage.py
+        src_dir: /path/to/root/project/web_project/src/inventeev/
+        # list of your django apps
+        apps: [news, blog, forum]
+
     virtualenv:
-        bin_dir: /path/to/root/sandbox/
+        dir: /path/to/root/project/web_project/sandbox/
+        bin_dir: /path/to/root/project/web_project/sandbox/bin/
         
     wsgi:
+        # I use gunicorn as my wsgi server
+        # github.com/benoitc/gunicorn  
         type: gunicorn
-        path: /path/to/root/project/sandbox/bin/
-        pidfile: /path/to/root/project/gunicorn.pid
-        logfile: /path/to/root/project/gunicorn.log
+        bin_name: gunicorn_django
+        path: /path/to/root/project/web_project/sandbox/bin/
+        pidfile: /path/to/root/project/web_project/gunicorn.pid
+        logfile: /path/to/root/project/web_project/web_inventeev.log
         host: 127.0.0.1
         port: [9111,9112]
         workers: 2
+
     httpd:
         type: nginx
         en: /etc/nginx/sites-enabled/
         
     services:
         restart:
+            # list of services to restart 
             [memcached]
         reload:
+            # list of services to reload
             [nginx]
-
-prod:
-    distro:
-        name: debian
-        packages: [python-virtualenv, libmysqlclient15-dev]
-    project:
-        name: myproject
-        normal_user: foo
-        sudo_user: bar
-        logs: myproject.log
-    hosts:
-        web: [stage.example.com]
-    database:
-        type: mysql
-        host: localhost
-        port: 3306
-        user: myuser
-        db: mydatabase
-        pw: mypass
-    hg:
-        url: hg.example.com
-        repos: repos/
-        user: hguser
-        pw: hgpass
-    django:
-        doc_root: /path/to/root/project/
-        src_dir: /path/to/root/project/src/djangoproject/
-    virtualenv:
-        bin_dir: /path/to/root/sandbox/
-        
-    wsgi:
-        type: gunicorn
-        path: /path/to/root/project/sandbox/bin/
-        pidfile: /path/to/root/project/gunicorn.pid
-        logfile: /path/to/root/project/gunicorn.log
-        host: 127.0.0.1
-        port: [9111,9112]
-        workers: 2
-    httpd:
-        type: nginx
-        en: /etc/nginx/sites-enabled/
-        av: /etc/nginx/sites-available/
-        
-    services:
-        restart:
-            [memcached]
-        reload:
-            [nginx]
-
-
-