Browse code

adding nixon

Jake Dahn authored on 2011/09/16 13:46:20
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,94 @@
0
+import os
1
+
2
+DEBUG = True
3
+TEMPLATE_DEBUG = DEBUG
4
+PROD = False
5
+USE_SSL = False
6
+
7
+LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
8
+DATABASES = {
9
+    'default': {
10
+        'ENGINE': 'django.db.backends.sqlite3',
11
+        'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
12
+    },
13
+}
14
+
15
+CACHE_BACKEND = 'dummy://'
16
+
17
+# Add nixon to dash installation.
18
+INSTALLED_APPS = (
19
+'dashboard.nixon',
20
+)
21
+
22
+# Send email to the console by default
23
+EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
24
+# Or send them to /dev/null
25
+#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
26
+
27
+# django-mailer uses a different settings attribute
28
+MAILER_EMAIL_BACKEND = EMAIL_BACKEND
29
+
30
+# Configure these for your outgoing email host
31
+# EMAIL_HOST = 'smtp.my-company.com'
32
+# EMAIL_PORT = 25
33
+# EMAIL_HOST_USER = 'djangomail'
34
+# EMAIL_HOST_PASSWORD = 'top-secret!'
35
+
36
+
37
+OPENSTACK_ADMIN_TOKEN = "999888777666"
38
+OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
39
+OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
40
+
41
+# NOTE(tres): Available services should come from the service
42
+#             catalog in Keystone.
43
+SWIFT_ENABLED = False
44
+
45
+# Configure quantum connection details for networking
46
+QUANTUM_ENABLED = True
47
+QUANTUM_URL = '127.0.0.1'
48
+QUANTUM_PORT = '9696'
49
+QUANTUM_TENANT = '1234'
50
+QUANTUM_CLIENT_VERSION='0.1'
51
+
52
+# If you have external monitoring links
53
+EXTERNAL_MONITORING = [
54
+    ['Nagios','http://foo.com'],
55
+    ['Ganglia','http://bar.com'],
56
+]
57
+
58
+# If you do not have external monitoring links
59
+# EXTERNAL_MONITORING = []
60
+
61
+# Uncomment the following segment to silence most logging
62
+# django.db and boto DEBUG logging is extremely verbose.
63
+#LOGGING = {
64
+#        'version': 1,
65
+#        # set to True will disable all logging except that specified, unless
66
+#        # nothing is specified except that django.db.backends will still log,
67
+#        # even when set to True, so disable explicitly
68
+#        'disable_existing_loggers': False,
69
+#        'handlers': {
70
+#            'null': {
71
+#                'level': 'DEBUG',
72
+#                'class': 'django.utils.log.NullHandler',
73
+#                },
74
+#            'console': {
75
+#                'level': 'DEBUG',
76
+#                'class': 'logging.StreamHandler',
77
+#                },
78
+#            },
79
+#        'loggers': {
80
+#            # Comment or Uncomment these to turn on/off logging output
81
+#            'django.db.backends': {
82
+#                'handlers': ['null'],
83
+#                'propagate': False,
84
+#                },
85
+#            'django_openstack': {
86
+#                'handlers': ['null'],
87
+#                'propagate': False,
88
+#            },
89
+#        }
90
+#}
91
+
92
+# How much ram on each compute host?
93
+COMPUTE_HOST_RAM_GB = 16
... ...
@@ -35,6 +35,7 @@ DEST=/opt
35 35
 # Set the destination directories for openstack projects
36 36
 NOVA_DIR=$DEST/nova
37 37
 DASH_DIR=$DEST/dash
38
+NIXON_DIR=$DEST/dash/openstack-dashboard/dashboard/nixon
38 39
 GLANCE_DIR=$DEST/glance
39 40
 KEYSTONE_DIR=$DEST/keystone
40 41
 NOVACLIENT_DIR=$DEST/python-novaclient
... ...
@@ -114,6 +115,8 @@ git_clone https://github.com/cloudbuilders/keystone.git $KEYSTONE_DIR
114 114
 git_clone https://github.com/cloudbuilders/noVNC.git $NOVNC_DIR
115 115
 # django powered web control panel for openstack
116 116
 git_clone https://github.com/cloudbuilders/openstack-dashboard.git $DASH_DIR
117
+# add nixon, the iframing dashboard extension 
118
+git clone https://github.com/jakedahn/nixon.git $NIXON_DIR
117 119
 # python client library to nova that dashboard (and others) use
118 120
 git_clone https://github.com/cloudbuilders/python-novaclient.git $NOVACLIENT_DIR
119 121
 # openstackx is a collection of extensions to openstack.compute & nova 
... ...
@@ -155,7 +158,8 @@ if [[ "$ENABLED_SERVICES" =~ "dash" ]]; then
155 155
     sudo touch $DASH_DIR/openstack-dashboard/quantum/client.py
156 156
 
157 157
     cd $DASH_DIR/openstack-dashboard
158
-    sudo cp local/local_settings.py.example local/local_settings.py
158
+    sudo cp $DIR/files/dash_settings.py local/local_settings.py
159
+
159 160
     dashboard/manage.py syncdb
160 161
 
161 162
     # create an empty directory that apache uses as docroot