---
classes:
    - 'python'
    - 'backdrop'

backdrop_apps:
    admin.backdrop:
        port:       3037
        # This is a placeholder until we extract a separate app
        app_module: 'backdrop.write.api:app'
        user:       'deploy'
        group:      'deploy'
    read.backdrop:
        port:       3038
        app_module: 'backdrop.read.api:app'
        user:       'deploy'
        group:      'deploy'
    write.backdrop:
        port:       3039
        app_module: 'backdrop.write.api:app'
        user:       'deploy'
        group:      'deploy'

python::version:    '2.7'
python::dev:        true
python::virtualenv: true
python::pip:        true

backdrop::user: 'deploy'
backdrop::group: 'deploy'
backdrop::pip_cache_path: '/var/cache/pip-download-cache'

ufw_rules:
    allowhttp:
        port: 80
        ip:   'any'

---
classes:
    - 'python'
    - 'backdrop'

backdrop_apps:
    admin.backdrop:
        port:       3203
        # This is a placeholder until we extract a separate app
        app_module: 'backdrop.write.api:app'
        user:       'deploy'
        group:      'deploy'
    read.backdrop:
        port:       3038
        app_module: 'backdrop.read.api:app'
        user:       'deploy'
        group:      'deploy'
    write.backdrop:
        port:       3039
        app_module: 'backdrop.write.api:app'
        user:       'deploy'
        group:      'deploy'

python::version:    '2.7'
python::dev:        true
python::virtualenv: true
python::pip:        true

backdrop::user: 'deploy'
backdrop::group: 'deploy'
backdrop::pip_cache_path: '/var/cache/pip-download-cache'

ufw_rules:
    allowhttp:
        port: 80
        ip:   'any'

Use a non-reserved port for backdrop_admin
Use a non-reserved port for backdrop_admin
