aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/prebuilt
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/prebuilt')
-rwxr-xr-xvagrant/prebuilt/Vagrantfile88
-rwxr-xr-xvagrant/prebuilt/config.yml75
2 files changed, 163 insertions, 0 deletions
diff --git a/vagrant/prebuilt/Vagrantfile b/vagrant/prebuilt/Vagrantfile
new file mode 100755
index 0000000..f771763
--- /dev/null
+++ b/vagrant/prebuilt/Vagrantfile
@@ -0,0 +1,88 @@
+# -*- encoding: utf-8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/engagementmgr
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the “License”);
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+# -*- mode: ruby -*-
+# # vi: set ft=ruby :
+Vagrant.require_version ">= 1.6.0"
+yaml_conf = YAML.load_file('config.yml')
+
+Vagrant.configure("2") do |config|
+
+ # always use Vagrant's insecure key
+ config.ssh.insert_key = false
+
+ # plugin conflict
+ if Vagrant.has_plugin?("vagrant-vbguest") then
+ config.vbguest.auto_update = false
+ end
+
+ yaml_conf["boxen"].each do |box|
+ config.vm.define box["name"] do |conf|
+ conf.vm.box = box["box"]
+ conf.vm.box_version = ">= 1151.0.0"
+ conf.vm.box_url = "http://stable.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
+
+ ["vmware_fusion", "vmware_workstation"].each do |vmware|
+ conf.vm.provider vmware do |v, override|
+ v.vmx['numvcpus'] = box["cpus"]
+ v.vmx['memsize'] = box["memory"]
+ v.gui = false
+
+ override.vm.box_url = "http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant_vmware_fusion.json" % $update_channel
+ end # vmware
+ end # override
+
+ conf.vm.provider :virtualbox do |v|
+ v.cpus = box["cpus"]
+ v.gui = false
+ v.memory = box["memory"]
+
+ # On VirtualBox, we don't have guest additions or a functional vboxsf
+ # in CoreOS, so tell Vagrant that so it can be smarter.
+ v.check_guest_additions = false
+ v.functional_vboxsf = false
+ end # v
+
+ conf.vm.network :private_network, :ip => box["ips"][0]
+ conf.vm.provision "ansible" do |ansible|
+ ansible.extra_vars = { hosts: yaml_conf["hosts"]}
+ ansible.playbook = "../../ansible/infrastructure.yml"
+ end # ansible
+ end # conf
+ end # box
+end # config
diff --git a/vagrant/prebuilt/config.yml b/vagrant/prebuilt/config.yml
new file mode 100755
index 0000000..5cb0ad9
--- /dev/null
+++ b/vagrant/prebuilt/config.yml
@@ -0,0 +1,75 @@
+# -*- encoding: utf-8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/engagementmgr
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the “License”);
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+boxen:
+ - name: ceph-01
+ box: centos/7
+ ips: ["10.252.0.21", "10.220.220.21"]
+ cpus: 2
+ cpu: 50
+ memory: 1024
+ macs: ["0800276695A1","0800276695A2"]
+ groups: ["ceph", "osds", "mons", "rgws", "rbdhost", "centos"]
+
+ - name: coreos-01
+ box: coreos-stable
+ cpus: 1
+ cpu: 50
+ memory: 2048
+ macs: ["08002766959E","08002766958E"]
+ ips: ["10.252.0.12", "10.220.220.12"]
+ groups: ["coreos", "container-hosts", "fleetctl-host"]
+
+hosts:
+ - name: coreos-01
+ ssh_ip: 10.0.2.15
+ mac: 08:00:27:66:95:9E
+ dnsmasq_config:
+ - "08:00:27:66:95:9E,10.252.0.12,coreos-01,infinite,set:coreos"
+ - "08:00:27:66:95:8E,10.220.220.12,coreos-01,infinite,set:coreos"
+ os: coreos
+ role: controller
+ etcd_role: member
+
+ - name: ceph-01
+ ssh_ip: 10.0.2.15
+ dnsmasq_config:
+ - "08:00:27:66:95:A1,10.252.0.21,ceph-01,infinite"
+ os: centos
+ role: ""
+ etcd_role: ""