Synnefo

synnefo || ns || apt || mq || db || gunicorn || apache || webproject || astakos || cms || pithos || cyclades || kamaki || backends

CMS Setup

The following apply to cms node. In the following sections we will refer to its IP as cms.example.com . Before install make sure you have db, apache and gunicorn setup already.

IMPORTANT: Currently cms cannot coexist with Astakos, Synnefo and Pithos roles

First install the corresponding package:

# apt-get install snf-cloudcms

In /etc/synnefo/cloudcms.conf add:

CLOUDBAR_ACTIVE = True
CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/ui/get_services'
CLOUDBAR_MENU_URL = 'https://accounts.example.com/ui/get_menu'

WEBPROJECT_SERVE_STATIC = True

Then restart the services and initialize database:

# /etc/init.d/gunicorn restart
# /etc/init.d/apache2 restart
# snf-manage syncdb
# snf-manage migrate

Here we can load some initial data. Add in /tmp/sites.json :

[
    {
        "pk": 1,
        "model": "sites.site",
        "fields": {
            "domain": "okeanos.grnet.gr",
            "name": "okeanos.grnet.gr"
        }
    }
]

and in /tmp/pages.json:

[
    {
        "fields": {
            "_cached_url": "/",
            "_content_title": "",
            "_page_title": "",
            "active": true,
            "creation_date": "2012-11-16 14:52:19",
            "in_navigation": false,
            "language": "en",
            "level": 0,
            "lft": 1,
            "meta_description": "",
            "meta_keywords": "",
            "modification_date": "2012-11-16 14:52:19",
            "navigation_extension": null,
            "override_url": "/",
            "parent": null,
            "publication_date": "2012-11-16 14:50:00",
            "publication_end_date": null,
            "redirect_to": "",
            "rght": 2,
            "site": 1,
            "slug": "okeanos",
            "symlinked_page": null,
            "template_key": "twocolwide",
            "title": "Okeanos",
            "translation_of": null,
            "tree_id": 1
        },
        "model": "page.page",
        "pk": 1
    },
    {
        "fields": {
            "ordering": 0,
            "parent": 1,
            "region": "main",
            "text": "Welcome to Okeanos!!\r\n\r\n"
        },
        "model": "page.rawcontent",
        "pk": 1
    }
]

and finally run:

# snf-manage loaddata /tmp/sites.json
# snf-manage loaddata /tmp/page.json
# snf-manage createsuperuser --username=admin --email=admin@example --noinput

Test your Setup:

Visit https://cms.example.com/

Table Of Contents

This Page