summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/README.md8
-rw-r--r--tools/anteater-exceptions.yaml73
-rwxr-xr-xtools/anteater.sh41
-rw-r--r--tools/kubernetes/README.md6
-rw-r--r--tools/prometheus/README.md6
5 files changed, 133 insertions, 1 deletions
diff --git a/tools/README.md b/tools/README.md
index a059d3a..707bd55 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -1,3 +1,9 @@
+<!---
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) 2017-2018 AT&T Intellectual Property, Inc
+-->
+
This repo contains experimental scripts etc for setting up cloud-native stacks for application deployment and management on bare-metal servers. A lot of cloud-native focus so far has been on public cloud providers (AWS, GCE, Azure) but there aren't many tools and even fewer full-stack open source platforms for setting up bare metal servers with the same types of cloud-native stack features. Further, app modeling methods supported by cloud-native stacks differ substantially. The tools in this repo are intended to help provide a comprehensive, easily deployed set of cloud-native stacks that can be further used for analysis and experimentation on converged app modeling and lifecycle management methods, as well as other purposes, e.g. assessments of efficiency, performance, security, and resilience.
The toolset will eventually include these elements of one or more full-stack platform solutions:
@@ -13,4 +19,4 @@ The toolset will eventually include these elements of one or more full-stack pla
* cloudify
* ONAP
* helm
-* applications useful for platform characterization \ No newline at end of file
+* applications useful for platform characterization
diff --git a/tools/anteater-exceptions.yaml b/tools/anteater-exceptions.yaml
new file mode 100644
index 0000000..1e7af0a
--- /dev/null
+++ b/tools/anteater-exceptions.yaml
@@ -0,0 +1,73 @@
+# When adding projects all `arrays: []` sections must have
+# a value, Use 'nullvalue' if no waivers are available.
+#
+# This file uses standard regular expression syntax, however be mindful
+# of escaping YAML delimiters too (such as `:`) using double quotes "".
+
+binaries:
+ docs/images/models-k8s.png:
+ - e57b24c5591f20a8892a159fb3e83dbfd987ec0dac637c602b71a14e62da7097
+ tests/blueprints/tosca-vnfd-3node-tacker/favicon.ico:
+ - 2088cf0e9512f999b35b76b89ceec1c0e19b7b4d4444a06485c505cc734ac229
+ tests/blueprints/tosca-vnfd-3node-tacker/logo.png:
+ - 2d6e161ccbcf1bd45faab7a148095977fee40547cac479cae44bb5fddc18eb74
+ docs/images/models-k8s.png:
+ - fe2af6fdafb5078f82a3d81b0f446f25cdd3e9795c92d1e848fc551e6e8248de
+ tests/blueprints/tosca-vnfd-3node-tacker/logo.png:
+ - af757aa0af55c321cfe1231737eefb069450eb23c6cb89d4d87134e3dbc26c92
+ tests/blueprints/tosca-vnfd-3node-tacker/favicon.ico:
+ - f38f1389d374b06d54f1dd410a9e09654848d35858014f1cb86475369dc16c56
+
+
+file_audits:
+ file_names:
+ - README.md
+ file_contents:
+ - "(.*)yum install.*wget"
+ - "(.*)yum install.*git"
+ - "(.*)apt-get install.*wget"
+ - "(.*)apt-get install.*git"
+ - "\\bcurl\\b"
+ - "wget"
+ - "git.*clone(.*)gerrit\\.opnfv\\.org"
+ - "git.*clone(.*)\\.openstack\\.org"
+ - "git.*clone(.*)github\\.com/openstack"
+ - "git.*clone(.*)github\\.com/cloudify-cosmo/cloudify-openstack-plugin"
+ - "git.*clone(.*)github\\.com/cloudify-cosmo/cloudify-fabric-plugin"
+ - "git.*clone(.*)github\\.com/cloudify-cosmo/cloudify-hello-world-example"
+ - "wget (.*)github\\.com/cloudify-cosmo/cloudify-manager-blueprints"
+ - "wget (.*)github\\.com/cloudify-incubator/cloudify-kubernetes-plugin"
+ - "wget (.*)gigaspaces-repository-eu\\.s3\\.amazonaws\\.com/org/cloudify3"
+ - "wget (.*)repository\\.cloudifysource\\.org"
+ - "wget (.*)releases\\.rancher\\.com"
+ - "wget (.*)packages\\.docker\\.com"
+ - "curl (.*)raw\\.githubusercontent\\.com/kubernetes/helm/master/scripts/get"
+ - "git.*clone(.*)github\\.com/blsaws/cloudify-cli-hello-world-example"
+ - "git.*clone(.*)github\\.com/Metaswitch/clearwater-docker"
+ - "git.*clone(.*)github\\.com/Metaswitch/clearwater-live-test"
+ - "git.*clone(.*)github\\.com/kubernetes"
+ - "git.*clone(.*)github\\.com/att/netarbiter"
+ - ".*\\$OS_PASSWORD.*"
+ - ".*\\~/tmp/.*"
+ - ".*SIGNUP_CODE\\=secret.*"
+ - "ssh_key_filename: /root/.ssh/vHello.pem"
+ - "vnf_mgmt 10.0.0.0/24"
+ - "# and setup CLI environment.*"
+ - "eval `ssh-agent`"
+ - ".*Create secrets for kubernetes.*"
+ - "cfy secrets.*"
+ - ".*get_secret: kubernetes.*"
+ - "0\\.0\\.0\\.0:4243"
+ - ".*kubectl create secret.*"
+ - ".*kubectl get secrets.*"
+ - ".*kubectl delete secrets.*"
+ - ".*Create Ceph admin secret.*"
+ - ".*SecretName: ceph.*"
+ - ".*Create ceph-secret.*"
+ - ".*# A similar secret.*"
+ - '.*"user":"", "password":"" }.*'
+ - ".*--password=\\$MYSQL_PASSWORD.*"
+ - ".*#bind_host = 0\\.0\\.0\\.0\\.*"
+ - ".*password = tacker.*"
+ - ".*# < transport_url = rabbit://stackrabbit:secretrabbit.*"
+ - ".*# password = secretservice.*" \ No newline at end of file
diff --git a/tools/anteater.sh b/tools/anteater.sh
new file mode 100755
index 0000000..5fb3d7b
--- /dev/null
+++ b/tools/anteater.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+# Copyright 2018 AT&T Intellectual Property, Inc
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# What this is: test script for the OPNFV Anteater toolset to test patches
+# for Anteater exceptions as described at
+# https://wiki.opnfv.org/pages/viewpage.action?pageId=11700198
+#
+#. Usage:
+#. $ git clone https://gerrit.opnfv.org/gerrit/models
+#. $ bash models/tools/anteater.sh [exceptions]
+#. exceptions: exceptions file to test (in Anteater format - see URL above)
+#. if not provided, test exceptions file in the anteater repo
+#.
+
+sudo docker stop anteater
+sudo docker rm -v anteater
+if [[ ! -d ~/releng-anteater ]]; then
+ git clone https://gerrit.opnfv.org/gerrit/releng-anteater ~/releng-anteater
+fi
+cd ~/releng-anteater/docker
+sudo docker build -t anteater .
+sudo docker run -d --name anteater anteater sleep 60
+if [[ "$1" != "" ]]; then
+ sudo docker cp $1 anteater:/home/opnfv/anteater/exceptions/models.yaml
+fi
+sudo docker exec -it anteater /bin/bash -c \
+'cat exceptions/models.yaml; \
+git clone https://gerrit.opnfv.org/gerrit/models ~/models; \
+~/venv/bin/anteater -p models --path ~/models' | tee ~/anteater-models.log
diff --git a/tools/kubernetes/README.md b/tools/kubernetes/README.md
index a6cbcd7..31daaaf 100644
--- a/tools/kubernetes/README.md
+++ b/tools/kubernetes/README.md
@@ -1,3 +1,9 @@
+<!---
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) 2017-2018 AT&T Intellectual Property, Inc
+-->
+
This folder contains scripts etc to setup a kubernetes cluster with the following type of environment and components:
* hardware
* 2 or more bare metal servers: may also work with VMs
diff --git a/tools/prometheus/README.md b/tools/prometheus/README.md
index a3dfcc5..456a5df 100644
--- a/tools/prometheus/README.md
+++ b/tools/prometheus/README.md
@@ -1,3 +1,9 @@
+<!---
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) 2017-2018 AT&T Intellectual Property, Inc
+-->
+
This folder contains scripts etc to setup [prometheus](https://github.com/prometheus/prometheus) on a server cluster. It installs:
* a prometheus server (on the host OS) and [grafana](https://grafana.com/) (in docker)
* prometheus exporters on a set of other nodes, to be monitored