aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config/states/sqlalchemy_update
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-11-06 10:57:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-06 10:57:28 +0000
commitaa31e99c06c7c003ed5339ada7b962689d16c030 (patch)
treeaeb2d23232f59ebcb564753e6fb18a13373c1ce0 /mcp/config/states/sqlalchemy_update
parent170d2d1c195d001d6ca786364aaf3c10e714ae36 (diff)
parentaa0ccb8daea30e290cf5824e639ddd153f2da3fe (diff)
Merge "[opendaylight] Update SQLAlchemy library"
Diffstat (limited to 'mcp/config/states/sqlalchemy_update')
-rwxr-xr-xmcp/config/states/sqlalchemy_update16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcp/config/states/sqlalchemy_update b/mcp/config/states/sqlalchemy_update
new file mode 100755
index 000000000..d4901a9c5
--- /dev/null
+++ b/mcp/config/states/sqlalchemy_update
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+##############################################################################
+# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+sqlalchemy_ver=1.2.1
+
+salt -I 'neutron:server' pkg.install python-pip
+salt -I 'neutron:server' cmd.run \
+ "sudo -H -u neutron pip install --user SQLAlchemy==${sqlalchemy_ver}"
+
+salt -I 'neutron:server' service.restart neutron-server