Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-cms.rst @ 208dd6d1

History | View | Annotate | Download (3.3 kB)

1
.. _i-cms:
2

    
3
Synnefo
4
-------
5

    
6
:ref:`synnefo <i-synnefo>` ||
7
:ref:`ns <i-ns>` ||
8
:ref:`apt <i-apt>` ||
9
:ref:`mq <i-mq>` ||
10
:ref:`db <i-db>` ||
11
:ref:`gunicorn <i-gunicorn>` ||
12
:ref:`apache <i-apache>` ||
13
:ref:`webproject <i-webproject>` ||
14
:ref:`astakos <i-astakos>` ||
15
cms ||
16
:ref:`pithos <i-pithos>` ||
17
:ref:`cyclades <i-cyclades>` ||
18
:ref:`kamaki <i-kamaki>` ||
19
:ref:`backends <i-backends>`
20

    
21
CMS Setup
22
+++++++++
23

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

    
28
IMPORTANT: Currently cms cannot coexist with astakos, synnefo and pithos roles
29
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30

    
31
First install the corresponding package:
32

    
33
.. code-block:: console
34

    
35
   # apt-get install snf-cloudcms
36

    
37

    
38
In `/etc/synnefo/cloudcms.conf` add:
39

    
40
.. code-block:: console
41

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

    
47
    WEBPROJECT_SERVE_STATIC = True
48

    
49
Then restart the services and initialize database:
50

    
51
.. code-block:: console
52

    
53
    # /etc/init.d/gunicorn restart
54
    # /etc/init.d/apache2 restart
55
    # snf-manage syncdb
56
    # snf-manage migrate
57

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

    
60
.. code-block:: console
61

    
62
    [
63
        {
64
            "pk": 1,
65
            "model": "sites.site",
66
            "fields": {
67
                "domain": "okeanos.grnet.gr",
68
                "name": "okeanos.grnet.gr"
69
            }
70
        }
71
    ]
72

    
73

    
74
and in `/tmp/pages.json`:
75

    
76
.. code-block:: console
77

    
78
    [
79
        {
80
            "fields": {
81
                "_cached_url": "/",
82
                "_content_title": "",
83
                "_page_title": "",
84
                "active": true,
85
                "creation_date": "2012-11-16 14:52:19",
86
                "in_navigation": false,
87
                "language": "en",
88
                "level": 0,
89
                "lft": 1,
90
                "meta_description": "",
91
                "meta_keywords": "",
92
                "modification_date": "2012-11-16 14:52:19",
93
                "navigation_extension": null,
94
                "override_url": "/",
95
                "parent": null,
96
                "publication_date": "2012-11-16 14:50:00",
97
                "publication_end_date": null,
98
                "redirect_to": "",
99
                "rght": 2,
100
                "site": 1,
101
                "slug": "okeanos",
102
                "symlinked_page": null,
103
                "template_key": "twocolwide",
104
                "title": "Okeanos",
105
                "translation_of": null,
106
                "tree_id": 1
107
            },
108
            "model": "page.page",
109
            "pk": 1
110
        },
111
        {
112
            "fields": {
113
                "ordering": 0,
114
                "parent": 1,
115
                "region": "main",
116
                "text": "Welcome to Okeanos!!\r\n\r\n"
117
            },
118
            "model": "page.rawcontent",
119
            "pk": 1
120
        }
121
    ]
122

    
123

    
124

    
125
and finally run:
126

    
127
.. code-block:: console
128

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

    
133

    
134
Test your Setup:
135
++++++++++++++++
136

    
137
Visit https://cms.example.com/