Source

fabulator / confs / conf.yaml

Full commit
Benoit C 1a01758 

Benoit C 4d92cbe 
Benoit C 1a01758 

Benoit C 4d92cbe 
Benoit C 1a01758 

Benoit C 4d92cbe 





Benoit C 1a01758 
Benoit C 4d92cbe 

Benoit C 1a01758 

Benoit C 4d92cbe 
Benoit C 1a01758 
Benoit C 4d92cbe 



Benoit C 1a01758 
Benoit C 4d92cbe 


Benoit C 1a01758 
Benoit C 4d92cbe 
Benoit C 1a01758 
Benoit C 4d92cbe 





Benoit C 1a01758 
Benoit C 4d92cbe 

Benoit C 1a01758 

Benoit C 4d92cbe 

Benoit C 1a01758 
Benoit C 4d92cbe 



Benoit C 1a01758 


Benoit C 4d92cbe 
Benoit C 1a01758 






Benoit C 4d92cbe 
Benoit C 1a01758 

Benoit C 4d92cbe 
Benoit C 1a01758 
--- #YAML:1.1

prod:
    distro:
        name: debian
        # list of packages you need to install
        packages: [python-virtualenv, libmysqlclient15-dev]
    project:
        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:
        # lists of your fronts
        web: [web1.example.com, web2.example.com]
    database:
        type: mysql
        host: mysql.example.com
        port: 3306
        user: mysqluser
        db: db
        pw: mysqlpassword
        backup: /path/to/root/project/web_project/backup/database
    hg:
        url: hg.exemple.com
        repos: repos
        dest: /path/to/root/project/web_project/
        user: hguser
        pw: hgpassword
    django:
        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:
        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
        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/
        av: /etc/nginx/sites-available/
        
    services:
        restart:
            # list of services to restart 
            [memcached]
        reload:
            # list of services to reload
            [nginx]