代码拉取完成,页面将自动刷新
同步操作将从 mirrors_hysnsec/DevSecOps-Studio 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- mode: ruby -*-
# # vi: set ft=ruby :
# Vagrant version and Vagrant API version requirements
Vagrant.require_version ">= 1.6.0"
VAGRANTFILE_API_VERSION = "2"
# YAML module for reading box configurations.
require 'yaml'
# Read machine configs from YAML file
machines = YAML.load_file(File.join(File.dirname(__FILE__), 'machines.yml'))
# Create boxes
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Disable updates to keep environment sane.
config.vm.box_check_update = false
# Disable shared folder, see https://superuser.com/questions/756758/is-it-possible-to-disable-default-vagrant-synced-folder
config.vm.synced_folder '.', '/vagrant', disabled: true
# Iterate through entries in YAML file
machines.each do |machine|
config.vm.define machine["name"] do |box|
box.vm.box = machine["box"]
box.vm.box_version = machine["box_version"]
box.vm.hostname = machine["name"]
box.vm.network "private_network", ip: machine["ip"]
if machine["script"] != nil
box.vm.provision :shell, :path => machine["script"]
end
if machine["ansible"] != nil
box.vm.provision "ansible" do |ansible|
ansible.playbook = machine["ansible"]
ansible.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
ansible.verbose = "vv"
end
end
box.vm.provider :virtualbox do |vb|
vb.name = machine["name"]
vb.memory = machine["ram"]
if machine["gui"] != nil
vb.gui = false
end # end of gui
vb.customize ["modifyvm", :id, "--groups", "/DevSecOps-Studio"]
end # end of vb provider
end # end of box
end # end of machines loop
config.vm.provision "shell", inline: <<-SHELL
DEBIAN_FRONTEND=noninteractive apt-get install -y avahi-daemon libnss-mdns
SHELL
end # end of config
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。