---
classes:
    - 'python'
    - 'backdrop'
    - 'backdrop_collector'
    - 'clamav'
    - 'performanceplatform::backdrop_checks'

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'

backdrop_collectors:
    backdrop-ga-collector:
        user: 'deploy'
        group: 'deploy'
    backdrop-ga-realtime-collector:
        user: 'deploy'
        group: 'deploy'
    backdrop-pingdom-collector:
        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_collector'
    - 'clamav'
    - 'performanceplatform::backdrop_checks'
    - 'google_credentials'

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'

backdrop_collectors:
    backdrop-ga-collector:
        user: 'deploy'
        group: 'deploy'
    backdrop-ga-realtime-collector:
        user: 'deploy'
        group: 'deploy'
    backdrop-pingdom-collector:
        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'

Add google credentials to backend app role
Add google credentials to backend app role

We need them there for the ga collectors.
