mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
If you use a ./test/local directory, you need to create it again: $ make clean bats-build bats-fixture
43 lines
1.2 KiB
Ruby
43 lines
1.2 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
Vagrant.configure('2') do |config|
|
|
config.vm.box = 'generic/ubuntu2210'
|
|
config.vm.define 'wizard'
|
|
|
|
config.vm.provision 'shell', path: 'bootstrap'
|
|
|
|
config.vm.provider :libvirt do |libvirt|
|
|
libvirt.cpus = 4
|
|
libvirt.memory = 4096
|
|
end
|
|
|
|
config.vm.synced_folder '.', '/vagrant', disabled: true
|
|
|
|
# install the dependencies for functional tests
|
|
|
|
config.vm.provision 'ansible' do |provdep|
|
|
provdep.config_file = '../../../ansible.cfg'
|
|
provdep.playbook = '../../../provision_dependencies.yml'
|
|
end
|
|
|
|
config.vm.provision 'ansible' do |provtest|
|
|
provtest.config_file = '../../../ansible.cfg'
|
|
provtest.playbook = '../../../provision_test_suite.yml'
|
|
end
|
|
|
|
config.vm.provision 'ansible' do |preptest|
|
|
preptest.config_file = '../../../ansible.cfg'
|
|
preptest.playbook = '../../../prepare_tests.yml'
|
|
end
|
|
|
|
config.vm.provision 'ansible' do |preptest|
|
|
preptest.config_file = '../../../ansible.cfg'
|
|
preptest.playbook = '../../../debug_tools.yml'
|
|
end
|
|
|
|
config.vm.provision 'ansible' do |preptest|
|
|
preptest.config_file = '../../../ansible.cfg'
|
|
preptest.playbook = '../../../run_wizard_tests.yml'
|
|
end
|
|
|
|
end
|