aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-13 20:18:36 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-13 20:18:36 +0200
commita79c9135fc2ed27b8d2374ab9728124f2357d2f1 (patch)
tree80ff92229bdc51638c7709a8892bbddc61abb504
parentafe950d0ef2d6cb192bbe2a1013be5915c47eaaa (diff)
Move stuff from /opt/nms to /opt/gondul etc
Still lots to do
-rw-r--r--README.rst2
-rw-r--r--ansible/roles/basics/tasks/main.yml4
-rw-r--r--build/test/gondul-collector-test.Dockerfile (renamed from build/test/nms-collector-test.Dockerfile)4
-rw-r--r--build/test/gondul-db-test.Dockerfile (renamed from build/test/nms-db-test.Dockerfile)0
-rw-r--r--build/test/gondul-front-test.Dockerfile (renamed from build/test/nms-front-test.Dockerfile)6
-rw-r--r--build/test/gondul-snmp-test.Dockerfile (renamed from build/test/nms-snmp-test.Dockerfile)4
-rw-r--r--build/test/gondul-varnish-test.Dockerfile (renamed from build/test/nms-varnish-test.Dockerfile)0
-rwxr-xr-xbuild/test/snmpfetch-misc.sh2
-rwxr-xr-xcollectors/ping.pl2
-rwxr-xr-xcollectors/snmpfetchng.pl8
-rw-r--r--extras/misc/apache2.conf16
-rw-r--r--extras/misc/varnish.vcl2
-rwxr-xr-xweb/api/public/dhcp2
-rwxr-xr-xweb/api/public/dhcp-summary2
-rwxr-xr-xweb/api/public/location2
-rwxr-xr-xweb/api/public/ping2
-rwxr-xr-xweb/api/public/switch-state2
-rwxr-xr-xweb/api/public/switches2
-rwxr-xr-xweb/api/read/comments2
-rwxr-xr-xweb/api/read/snmp2
-rwxr-xr-xweb/api/read/switches-management2
-rwxr-xr-xweb/api/write/comment-add2
-rwxr-xr-xweb/api/write/comment-change2
-rwxr-xr-xweb/api/write/switch-add2
-rwxr-xr-xweb/api/write/switch-update2
25 files changed, 38 insertions, 38 deletions
diff --git a/README.rst b/README.rst
index 98d3b7f..f142e82 100644
--- a/README.rst
+++ b/README.rst
@@ -95,7 +95,7 @@ It will build and run 5 containers:
The IP of the Varnish instance is reported and can be used. The credentials
used are 'demo/demo'.
-The repository is mounted as a docker volume under /opt/nms on all
+The repository is mounted as a docker volume under /opt/gondul on all
containers, which means you can do your editing outside of the containers.
The last part of the test ansible playbook adds a handfull of
diff --git a/ansible/roles/basics/tasks/main.yml b/ansible/roles/basics/tasks/main.yml
index dc13f2e..ec2f45e 100644
--- a/ansible/roles/basics/tasks/main.yml
+++ b/ansible/roles/basics/tasks/main.yml
@@ -35,12 +35,12 @@
tags:
- start
- name: workaround to get gondul-varnish-front-ip
- shell: "docker inspect gondul-varnish | grep IPAddress | sed 's/[^0-9.]//g'"
+ shell: "docker inspect gondul-varnish-test | grep IPAddress | sed 's/[^0-9.]//g'"
register: ip
tags:
- start
- name: workaround to get gondul-front-ip
- shell: "docker inspect gondul-front | grep IPAddress | sed 's/[^0-9.]//g'"
+ shell: "docker inspect gondul-front-test | grep IPAddress | sed 's/[^0-9.]//g'"
register: ipfront
tags:
- start
diff --git a/build/test/nms-collector-test.Dockerfile b/build/test/gondul-collector-test.Dockerfile
index 4b08f05..0af8f75 100644
--- a/build/test/nms-collector-test.Dockerfile
+++ b/build/test/gondul-collector-test.Dockerfile
@@ -13,5 +13,5 @@ RUN apt-get -y install \
libjson-perl \
perl-base \
perl-modules
-RUN mkdir -p /opt/nms
-CMD /opt/nms/collectors/ping.pl
+RUN mkdir -p /opt/gondul
+CMD /opt/gondul/collectors/ping.pl
diff --git a/build/test/nms-db-test.Dockerfile b/build/test/gondul-db-test.Dockerfile
index 2e0e0ce..2e0e0ce 100644
--- a/build/test/nms-db-test.Dockerfile
+++ b/build/test/gondul-db-test.Dockerfile
diff --git a/build/test/nms-front-test.Dockerfile b/build/test/gondul-front-test.Dockerfile
index e9d7ef8..90687cf 100644
--- a/build/test/nms-front-test.Dockerfile
+++ b/build/test/gondul-front-test.Dockerfile
@@ -29,12 +29,12 @@ RUN apt-get -y install \
libfreezethaw-perl \
apache2
-RUN mkdir -p /opt/nms
+RUN mkdir -p /opt/gondul
RUN a2dissite 000-default
RUN a2enmod cgi
-RUN ln -s /opt/nms/extras/misc/apache2.conf /etc/apache2/sites-enabled/nms.conf
-RUN mkdir -p /opt/nms/etc
+RUN ln -s /opt/gondul/extras/misc/apache2.conf /etc/apache2/sites-enabled/nms.conf
+RUN mkdir -p /opt/gondul/etc
RUN echo 'demo:$apr1$IKrQYF6x$0zmRciLR7Clc2tEEosyHV.' > /htpasswd-read
RUN echo 'demo:$apr1$IKrQYF6x$0zmRciLR7Clc2tEEosyHV.' > /htpasswd-write
ADD build/test/dummy-apache2.start /
diff --git a/build/test/nms-snmp-test.Dockerfile b/build/test/gondul-snmp-test.Dockerfile
index f7bb30e..a99a943 100644
--- a/build/test/nms-snmp-test.Dockerfile
+++ b/build/test/gondul-snmp-test.Dockerfile
@@ -15,6 +15,6 @@ RUN apt-get -y install \
snmpd \
libsnmp-perl \
perl-modules
-RUN mkdir -p /opt/nms
+RUN mkdir -p /opt/gondul
COPY build/test/snmpd.conf /etc/snmp/
-CMD /opt/nms/build/test/snmpfetch-misc.sh
+CMD /opt/gondul/build/test/snmpfetch-misc.sh
diff --git a/build/test/nms-varnish-test.Dockerfile b/build/test/gondul-varnish-test.Dockerfile
index 7e75b86..7e75b86 100644
--- a/build/test/nms-varnish-test.Dockerfile
+++ b/build/test/gondul-varnish-test.Dockerfile
diff --git a/build/test/snmpfetch-misc.sh b/build/test/snmpfetch-misc.sh
index 55c024d..95b005f 100755
--- a/build/test/snmpfetch-misc.sh
+++ b/build/test/snmpfetch-misc.sh
@@ -1,3 +1,3 @@
#!/bin/bash
service snmpd start
-exec /opt/nms/collectors/snmpfetchng.pl
+exec /opt/gondul/collectors/snmpfetchng.pl
diff --git a/collectors/ping.pl b/collectors/ping.pl
index b5f7bbf..590379c 100755
--- a/collectors/ping.pl
+++ b/collectors/ping.pl
@@ -7,7 +7,7 @@ use strict;
use warnings;
use Data::Dumper;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
$|++;
diff --git a/collectors/snmpfetchng.pl b/collectors/snmpfetchng.pl
index 14561c2..5c4b053 100755
--- a/collectors/snmpfetchng.pl
+++ b/collectors/snmpfetchng.pl
@@ -6,13 +6,13 @@ use POSIX;
#use Time::HiRes qw(time);
use SNMP;
use Data::Dumper;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
SNMP::initMib();
-SNMP::addMibDirs("/opt/nms/mibs/StandardMibs");
-SNMP::addMibDirs("/opt/nms/mibs/JuniperMibs");
-SNMP::addMibDirs("/opt/nms/mibs/CiscoMibs");
+SNMP::addMibDirs("/opt/gondul/mibs/StandardMibs");
+SNMP::addMibDirs("/opt/gondul/mibs/JuniperMibs");
+SNMP::addMibDirs("/opt/gondul/mibs/CiscoMibs");
SNMP::loadModules('ALL');
our $dbh = nms::db_connect();
diff --git a/extras/misc/apache2.conf b/extras/misc/apache2.conf
index 9d5cd41..10817cf 100644
--- a/extras/misc/apache2.conf
+++ b/extras/misc/apache2.conf
@@ -3,11 +3,11 @@
ServerName nms.example.com
ServerAlias nms.example.com
- DocumentRoot /opt/nms/web
- ScriptAlias /api/write/ /opt/nms/web/api/write/
- ScriptAlias /api/read/ /opt/nms/web/api/read/
- ScriptAlias /api/public/ /opt/nms/web/api/public/
- <Directory "/opt/nms/web/api/write/">
+ DocumentRoot /opt/gondul/web
+ ScriptAlias /api/write/ /opt/gondul/web/api/write/
+ ScriptAlias /api/read/ /opt/gondul/web/api/read/
+ ScriptAlias /api/public/ /opt/gondul/web/api/public/
+ <Directory "/opt/gondul/web/api/write/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
@@ -17,7 +17,7 @@
Require valid-user
</RequireAny>
</Directory>
- <Directory "/opt/nms/web/api/read/">
+ <Directory "/opt/gondul/web/api/read/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
@@ -27,12 +27,12 @@
Require valid-user
</RequireAny>
</Directory>
- <Directory "/opt/nms/web/api/public/">
+ <Directory "/opt/gondul/web/api/public/">
AllowOverride None
Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
Require all granted
</Directory>
- <Directory "/opt/nms/web">
+ <Directory "/opt/gondul/web">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AddDefaultCharset UTF-8
diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl
index c7c402f..addef0d 100644
--- a/extras/misc/varnish.vcl
+++ b/extras/misc/varnish.vcl
@@ -3,7 +3,7 @@
vcl 4.0;
backend default {
- .host = "nms-front";
+ .host = "gondul-front";
.port = "80";
}
diff --git a/web/api/public/dhcp b/web/api/public/dhcp
index d998c59..ea42b8f 100755
--- a/web/api/public/dhcp
+++ b/web/api/public/dhcp
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms::web qw (%json finalize_output);
use strict;
use warnings;
diff --git a/web/api/public/dhcp-summary b/web/api/public/dhcp-summary
index 73460e7..18a7f69 100755
--- a/web/api/public/dhcp-summary
+++ b/web/api/public/dhcp-summary
@@ -1,5 +1,5 @@
#! /usr/bin/perl
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use strict;
use warnings;
use nms::web;
diff --git a/web/api/public/location b/web/api/public/location
index 70b6ffd..2247f73 100755
--- a/web/api/public/location
+++ b/web/api/public/location
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms::web;
use strict;
use warnings;
diff --git a/web/api/public/ping b/web/api/public/ping
index 27a8933..36e3334 100755
--- a/web/api/public/ping
+++ b/web/api/public/ping
@@ -1,5 +1,5 @@
#! /usr/bin/perl
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use strict;
use warnings;
use nms::web;
diff --git a/web/api/public/switch-state b/web/api/public/switch-state
index 5cc7e73..eaa8be3 100755
--- a/web/api/public/switch-state
+++ b/web/api/public/switch-state
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms::web qw (%json finalize_output);
use strict;
use warnings;
diff --git a/web/api/public/switches b/web/api/public/switches
index 1322ba6..e6a37f8 100755
--- a/web/api/public/switches
+++ b/web/api/public/switches
@@ -3,7 +3,7 @@
use CGI qw(fatalsToBrowser);
use DBI;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
use nms::web;
use strict;
diff --git a/web/api/read/comments b/web/api/read/comments
index eb3b45a..d7c8cdb 100755
--- a/web/api/read/comments
+++ b/web/api/read/comments
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms::web;
use strict;
use warnings;
diff --git a/web/api/read/snmp b/web/api/read/snmp
index 711de65..0865107 100755
--- a/web/api/read/snmp
+++ b/web/api/read/snmp
@@ -3,7 +3,7 @@
use CGI qw(fatalsToBrowser);
use DBI;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
use nms::web;
use strict;
diff --git a/web/api/read/switches-management b/web/api/read/switches-management
index 94ab5f5..2dd329c 100755
--- a/web/api/read/switches-management
+++ b/web/api/read/switches-management
@@ -3,7 +3,7 @@
use CGI qw(fatalsToBrowser);
use DBI;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
use nms::web;
use strict;
diff --git a/web/api/write/comment-add b/web/api/write/comment-add
index 8d4899c..f87a28c 100755
--- a/web/api/write/comment-add
+++ b/web/api/write/comment-add
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use utf8;
use nms::web qw($dbh db_safe_quote get_input finalize_output);
use strict;
diff --git a/web/api/write/comment-change b/web/api/write/comment-change
index 91b9824..6318723 100755
--- a/web/api/write/comment-change
+++ b/web/api/write/comment-change
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# vim:ts=8:sw=8
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use utf8;
use nms;
use nms::web qw($dbh db_safe_quote get_input finalize_output);
diff --git a/web/api/write/switch-add b/web/api/write/switch-add
index 3950b10..56e5cb2 100755
--- a/web/api/write/switch-add
+++ b/web/api/write/switch-add
@@ -3,7 +3,7 @@
#use CGI qw(fatalsToBrowser);
use DBI;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
use nms::web qw(%get_params %json finalize_output get_input $dbh);
use nms::util qw(guess_placement);
diff --git a/web/api/write/switch-update b/web/api/write/switch-update
index a463390..15b85ae 100755
--- a/web/api/write/switch-update
+++ b/web/api/write/switch-update
@@ -3,7 +3,7 @@
#use CGI qw(fatalsToBrowser);
use DBI;
-use lib '/opt/nms/include';
+use lib '/opt/gondul/include';
use nms;
use nms::web qw(%get_params %json finalize_output get_input $dbh);
use nms::util qw(guess_placement);