summaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/salt-formula-quagga/quagga/server.sls
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2018-09-27 11:52:12 +0300
committerStamatis Katsaounis <mokats@intracom-telecom.com>2018-10-16 17:25:48 +0300
commit7f41e5fde88df7c312175a90c536550763d4c271 (patch)
tree86856af6ebb811eaa5da4650d2b18f0f0baa492f /mcp/salt-formulas/salt-formula-quagga/quagga/server.sls
parentf7f3623807c6ff914b28e89b157e3c9e3578d507 (diff)
Add odl bgpvpn noha scenario to fuel
JIRA: FUEL-393 This patch adds support of os-odl-bgvpn-noha scenario to fuel installer. Change-Id: I4e053e38aac70023b0a81f9a41b415c7a1aae3af Depends-On: I57288bbb42f4c75af19f3807f8f15b44482c066c Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'mcp/salt-formulas/salt-formula-quagga/quagga/server.sls')
-rw-r--r--mcp/salt-formulas/salt-formula-quagga/quagga/server.sls41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcp/salt-formulas/salt-formula-quagga/quagga/server.sls b/mcp/salt-formulas/salt-formula-quagga/quagga/server.sls
new file mode 100644
index 000000000..3a9c32906
--- /dev/null
+++ b/mcp/salt-formulas/salt-formula-quagga/quagga/server.sls
@@ -0,0 +1,41 @@
+##############################################################################
+# Copyright (c) 2018 Intracom Telecom 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
+##############################################################################
+{%- from "quagga/map.jinja" import server with context %}
+{%- if server.enabled %}
+
+quagga_packages:
+ pkg.installed:
+ - names: {{ server.pkgs }}
+
+download_quagga:
+ file.managed:
+ - name: /var/cache/quagga.tar.gz
+ - source: {{ server.quagga_package_url }}
+ - source_hash: {{ server.quagga_package_checksum }}
+ - user: root
+ - group: root
+
+unarchive_quagga:
+ archive.extracted:
+ - source: /var/cache/quagga.tar.gz
+ - name: /tmp
+ - user: root
+ - group: root
+
+install_quagga_packages:
+ cmd.run:
+ - name: {{ server.install_cmd }} $(ls |grep -vE 'debuginfo|devel|contrib')
+ - cwd: /tmp/quagga
+ - runas: root
+
+start_zebra_rpc_daemon:
+ cmd.run:
+ - name: /opt/quagga/etc/init.d/zrpcd start
+ - runas: root
+
+{%- endif %}