diff --git a/__unfinished__/clouder_invoicing/__openerp__.py b/__unfinished__/clouder_invoicing/__openerp__.py
index 6697c08..3255f82 100644
--- a/__unfinished__/clouder_invoicing/__openerp__.py
+++ b/__unfinished__/clouder_invoicing/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['base'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder
diff --git a/__unfinished__/clouder_template_cas/__openerp__.py b/__unfinished__/clouder_template_cas/__openerp__.py
index 796b376..f5b8e3d 100644
--- a/__unfinished__/clouder_template_cas/__openerp__.py
+++ b/__unfinished__/clouder_template_cas/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template CAS
diff --git a/__unfinished__/clouder_template_git/__openerp__.py b/__unfinished__/clouder_template_git/__openerp__.py
index 8354d09..54440a1 100644
--- a/__unfinished__/clouder_template_git/__openerp__.py
+++ b/__unfinished__/clouder_template_git/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['base'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Git
diff --git a/__unfinished__/clouder_users/__openerp__.py b/__unfinished__/clouder_users/__openerp__.py
index e991582..3e309f5 100644
--- a/__unfinished__/clouder_users/__openerp__.py
+++ b/__unfinished__/clouder_users/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder', 'clouder_template_ldap','ldap_admin'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Users
diff --git a/clouder/__openerp__.py b/clouder/__openerp__.py
index 2de450d..664f9fe 100644
--- a/clouder/__openerp__.py
+++ b/clouder/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['base'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder
diff --git a/clouder/clouder_view.xml b/clouder/clouder_view.xml
index 0bd9bf0..095353b 100644
--- a/clouder/clouder_view.xml
+++ b/clouder/clouder_view.xml
@@ -49,9 +49,7 @@
-
-
@@ -85,6 +83,9 @@
+
+
+
@@ -127,10 +128,9 @@
-
+
-
@@ -139,21 +139,28 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -193,9 +200,9 @@
+
-
@@ -250,6 +257,9 @@
+
+
+
diff --git a/clouder_template_bind/__openerp__.py b/clouder_template_bind/__openerp__.py
index 3d9a705..31ff54b 100644
--- a/clouder_template_bind/__openerp__.py
+++ b/clouder_template_bind/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder','clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Bind
diff --git a/clouder_template_docker/__openerp__.py b/clouder_template_docker/__openerp__.py
index 64cd982..73bfeac 100644
--- a/clouder_template_docker/__openerp__.py
+++ b/clouder_template_docker/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Docker
diff --git a/clouder_template_drupal/__openerp__.py b/clouder_template_drupal/__openerp__.py
index fa515d0..e226583 100644
--- a/clouder_template_drupal/__openerp__.py
+++ b/clouder_template_drupal/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder_template_postgres', 'clouder_template_piwik'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'demo': [],
'data': ['clouder_template_drupal_data.xml'],
diff --git a/clouder_template_drupal_wikicompare/__openerp__.py b/clouder_template_drupal_wikicompare/__openerp__.py
index 36cf3a7..52a98e6 100644
--- a/clouder_template_drupal_wikicompare/__openerp__.py
+++ b/clouder_template_drupal_wikicompare/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder_template_postgres', 'clouder_template_piwik','clouder_template_drupal'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'demo': [],
'data': ['clouder_template_drupal_wikicompare_data.xml'],
diff --git a/clouder_template_ldap/__openerp__.py b/clouder_template_ldap/__openerp__.py
index a5a36fa..2325b67 100644
--- a/clouder_template_ldap/__openerp__.py
+++ b/clouder_template_ldap/__openerp__.py
@@ -27,7 +27,7 @@
'depends': ['clouder',
'clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template LDAP
diff --git a/clouder_template_mysql/__openerp__.py b/clouder_template_mysql/__openerp__.py
index e9dc65e..e48359f 100644
--- a/clouder_template_mysql/__openerp__.py
+++ b/clouder_template_mysql/__openerp__.py
@@ -27,7 +27,7 @@
'depends': ['clouder',
'clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template MySQL
diff --git a/clouder_template_odoo/__openerp__.py b/clouder_template_odoo/__openerp__.py
index fa856a5..6633c58 100644
--- a/clouder_template_odoo/__openerp__.py
+++ b/clouder_template_odoo/__openerp__.py
@@ -33,7 +33,7 @@
'clouder_template_piwik'
],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Odoo
diff --git a/clouder_template_odoo_community/__openerp__.py b/clouder_template_odoo_community/__openerp__.py
index 3a8f685..172140e 100644
--- a/clouder_template_odoo_community/__openerp__.py
+++ b/clouder_template_odoo_community/__openerp__.py
@@ -34,7 +34,7 @@
'clouder_template_odoo',
],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'demo': [],
'data': [
diff --git a/clouder_template_piwik/__openerp__.py b/clouder_template_piwik/__openerp__.py
index 509e7c5..1542642 100644
--- a/clouder_template_piwik/__openerp__.py
+++ b/clouder_template_piwik/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder_template_mysql', 'clouder_template_bind', 'clouder_template_proxy', 'clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Piwik
diff --git a/clouder_template_postfix/__openerp__.py b/clouder_template_postfix/__openerp__.py
index 86e936f..a06688c 100644
--- a/clouder_template_postfix/__openerp__.py
+++ b/clouder_template_postfix/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Postfix
diff --git a/clouder_template_postgres/__openerp__.py b/clouder_template_postgres/__openerp__.py
index 5b2ce7f..2bdaaf0 100644
--- a/clouder_template_postgres/__openerp__.py
+++ b/clouder_template_postgres/__openerp__.py
@@ -27,7 +27,7 @@
'depends': ['clouder',
'clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Postgres
diff --git a/clouder_template_proxy/__openerp__.py b/clouder_template_proxy/__openerp__.py
index dd5edcf..188d284 100644
--- a/clouder_template_proxy/__openerp__.py
+++ b/clouder_template_proxy/__openerp__.py
@@ -27,7 +27,7 @@
'depends': ['clouder',
'clouder_template_shinken'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Template Proxy
diff --git a/clouder_template_seafile/__openerp__.py b/clouder_template_seafile/__openerp__.py
index 9bd4b3e..27b9afc 100644
--- a/clouder_template_seafile/__openerp__.py
+++ b/clouder_template_seafile/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Seafile
diff --git a/clouder_template_shinken/__openerp__.py b/clouder_template_shinken/__openerp__.py
index 83b052b..bfe0dcc 100644
--- a/clouder_template_shinken/__openerp__.py
+++ b/clouder_template_shinken/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder_template_postfix'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Shinken
diff --git a/clouder_template_shinken/clouder_template_shinken.py b/clouder_template_shinken/clouder_template_shinken.py
index 460388c..e05fa4e 100644
--- a/clouder_template_shinken/clouder_template_shinken.py
+++ b/clouder_template_shinken/clouder_template_shinken.py
@@ -107,6 +107,33 @@ def deploy_post(self):
'/usr/local/shinken/etc/hosts/localhost.cfg'])
ssh.close()
+ @api.multi
+ def deploy_key(self):
+ """
+ Reset the backup ssh key in shinken containers after we change the
+ key of a backup container
+ """
+ super(ClouderContainer, self).deploy_key()
+ if self.application_id.type_id.name == 'backup':
+ shinkens = {}
+ containers = self.search([('backup_ids', 'in', self.id)])
+ for container in containers:
+ shinken_links = self.env['clouder.container.link'].search([
+ ('container_id','=',container.id),
+ ('name.name.code','=','shinken'),
+ ('target','!=',False)
+ ])
+ for shinken_link in shinken_links:
+ shinkens[shinken_link.target.id] = {
+ 'shinken':shinken_link.target,
+ 'container': container
+ }
+
+ for key, shinken in shinkens.iteritems():
+ ssh = self.connect(shinken['shinken'].fullname,
+ username='shinken')
+ send_key_to_shinken(ssh, shinken['container'])
+ ssh.close()
class ClouderBase(models.Model):
diff --git a/clouder_template_wordpress/__openerp__.py b/clouder_template_wordpress/__openerp__.py
index 5854e0b..3ef5fcb 100644
--- a/clouder_template_wordpress/__openerp__.py
+++ b/clouder_template_wordpress/__openerp__.py
@@ -26,7 +26,7 @@
'category': 'Clouder',
'depends': ['clouder'],
'author': 'Yannick Buron (Clouder)',
- 'license': 'LGPL-3 by Clouder',
+ 'license': 'Other OSI approved licence',
'website': 'https://github.com/clouder-community/clouder',
'description': """
Clouder Wordpress