Revision 84809111 docs/scale/i-astakos.rst

b/docs/scale/i-astakos.rst
55 55

  
56 56
    ASTAKOS_COOKIE_DOMAIN = 'example.com'
57 57

  
58
    ASTAKOS_LOGIN_MESSAGES = []
59
    ASTAKOS_SIGNUP_MESSAGES = []
60
    ASTAKOS_PROFILE_MESSAGES = []
61
    ASTAKOS_GLOBAL_MESSAGES = []
62

  
63
    ASTAKOS_PROFILE_EXTRA_LINKS = []
64
    ASTAKOS_INVITATION_EMAIL_SUBJECT = 'Invitation to %s' % ASTAKOS_SITENAME
65
    ASTAKOS_GREETING_EMAIL_SUBJECT = 'Welcome to %s' % ASTAKOS_SITENAME
66
    ASTAKOS_FEEDBACK_EMAIL_SUBJECT = 'Feedback from %s' % ASTAKOS_SITENAME
67
    ASTAKOS_VERIFICATION_EMAIL_SUBJECT = '%s account activation is needed' % ASTAKOS_SITENAME
68
    ASTAKOS_ADMIN_NOTIFICATION_EMAIL_SUBJECT = '%s account created (%%(user)s)' % ASTAKOS_SITENAME
69
    ASTAKOS_HELPDESK_NOTIFICATION_EMAIL_SUBJECT = '%s account activated (%%(user)s)' % ASTAKOS_SITENAME
70
    ASTAKOS_EMAIL_CHANGE_EMAIL_SUBJECT = 'Email change on %s' % ASTAKOS_SITENAME
71
    ASTAKOS_PASSWORD_RESET_EMAIL_SUBJECT = 'Password reset on %s' % ASTAKOS_SITENAME
72

  
73
    ASTAKOS_QUOTAHOLDER_TOKEN = '1234'
74
    ASTAKOS_QUOTAHOLDER_URL = 'https://qh.example.com/quotaholder/v'
75

  
76
    EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
77
    ASTAKOS_SERVICES = {
78
        'cyclades': {
79
            'url': 'https://cyclades.example.com/ui/',
80
            'resources': [{
81
                'name':'disk',
82
                'group':'compute',
83
                'uplimit':30*1024*1024*1024,
84
                'unit':'bytes',
85
                'desc': 'Virtual machine disk size'
86
                },{
87
                'name':'cpu',
88
                'group':'compute',
89
                'uplimit':6,
90
                'desc': 'Number of virtual machine processors'
91
                },{
92
                'name':'ram',
93
                'group':'compute',
94
                'uplimit':6*1024*1024*1024,
95
                'unit':'bytes',
96
                'desc': 'Virtual machines'
97
                },{
98
                'name':'vm',
99
                'group':'compute',
100
                'uplimit':2,
101
                'desc': 'Number of virtual machines'
102
                },{
103
                'name':'network.private',
104
                'group':'network',
105
                'uplimit':1,
106
                'desc': 'Private networks'
107
                }
108
            ]
109
        },
110
        'pithos+': {
111
            'url': 'https://pithos.example.com/ui/',
112
            'resources':[{
113
                'name':'diskspace',
114
                'group':'storage',
115
                'uplimit':5 * 1024 * 1024 * 1024,
116
                'unit':'bytes',
117
                'desc': 'Pithos account diskspace'
118
                }]
119
        }
120
    }
121

  
122

  
58 123
If ``astakos`` is on the same node with ``cyclades`` or ``pithos``, add the following
59 124
line in `/etc/synnefo/astakos.conf` but please note that your setup will be prone to
60 125
csrf attacks:
......
69 134

  
70 135
   # /etc/init.d/gunicorn restart
71 136
   # snf-manage syncdb --noinput
72
   # snf-manage migrate im
137
   # snf-manage migrate im --delete-ghost-migrations
73 138
   # snf-manage loaddata groups
74
   # snf-manage service-add "~okeanos home" https://cms.example.com/ home-icon.png
139
   # snf-manage service-add "home" https://cms.example.com/ home-icon.png
75 140
   # snf-manage service-add "cyclades" https://cyclades.example.com/ui/
76 141
   # snf-manage service-add "pithos+" https://pithos.example.com/ui/
142
   # snf-manage astakos-init --load-service-resources
143
   # snf-manage astakos-quota --sync
77 144
   # /etc/init.d/gunicorn restart
78 145
   # /etc/init.d/apache2 restart
79 146

  
......
105 172

  
106 173
Test your Setup:
107 174
++++++++++++++++
175

  
176
Visit ``http://accounts.example.com/im/`` and login with your credentials.

Also available in: Unified diff