Metadata-Version: 1.1
Name: mcloud-plugin-haproxy
Version: 1.0.2
Summary: Haproxy integration for mcloud
Home-page: mcloud.io
Author: Alex Rudakov
Author-email: ribozz@gmail.com
License: UNKNOWN
Description: Haproxy publishing
        ============================
        
        Haproxy plugin install haproxy as a load balancer for mcloud. Plugin is useful when you need
        deploy multiple applications on one server, or use complex application publishing
        
        
        Multiple applications
        -------------------------
        
        .. uml::
        
            cloud Internet {
        
            }
        
            package Docker {
                [Haproxy] << Load Balancer >>
        
                database App1 {
                    [nginx.myapp]
                    [another.myapp]
                    [something.myapp]
                }
        
                database App2 {
                    [nginx.another]
                    [another.another]
                }
        
                Haproxy ..> nginx.myapp
                Haproxy ..> nginx.another
        
            }
        
            Internet ..> Haproxy
        
        
        Multiple versions
        -------------------------
        
        
        .. uml::
        
            cloud Internet {
        
            }
        
            package Docker {
                [Haproxy] << Load Balancer >>
        
                [nodejs.app_v1]
                [nodejs.app_v2]
        
                Haproxy ..> nodejs.app_v1
                Haproxy -> nodejs.app_v2
            }
        
            Internet ..> Haproxy
        
        
        Haproxy template
        -----------------------
        
        You can use your own template by placing it in /root/.mcloud/haproxy.tpl. Mcloud kindly places default config there.
        
        .. highlights::
        
            Template is Jinja2 template http://jinja.pocoo.org/docs/
        
        To apply your changes to template restart mcloud::
        
            $ docker restart mcloud
        
        Default tamplate
        ^^^^^^^^^^^^^^^^^^
        
        .. literalinclude:: mcloud_haproxy.py
           :lines: 21-94
           :language: jinja
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: System :: Software Distribution
