-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
46 lines (38 loc) · 1.48 KB
/
Vagrantfile
File metadata and controls
46 lines (38 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
VAGRANT_COMMAND = ARGV[0]
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-22.04"
config.vm.provider "virtualbox" do |v|
v.memory = 16240
v.cpus = 6
# v.customize ["createhd", "--filename", "disk.vdi", "--size", 102400]
# v.customize ["storageattach", :id, "--storagectl", "SATA Controller", "--port", 1, "--device", 0, "--type", "hdd", "--medium", "disk.vdi"]
end
config.vm.network "private_network", ip: "192.168.56.115"
# Synchronizacja folderu z kluczem SSH
config.vm.synced_folder "/home/evilseequ/bigspace/vagrant/", "/vagrant/PandaCore"
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbooks/clone_roles.yml"
ansible.extra_vars = {
git_repository: "https://github.com/EvilSeeQu-sys/Ansible_roles",
git_branch: "main"
}
end
# Provisions with ansible
config.vm.provision "ansible_local" do |ansible|
ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = "/etc/ansible/roles"
ansible.galaxy_command = "sudo ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path}"
ansible.playbook = "playbooks/init.yml"
# ansible.verbose = "vvv"
end
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbooks/infrastructure.yml"
ansible.extra_vars = {
git_repository: "https://github.com/EvilSeeQu-sys/Infrastructure",
git_branch: "main"
}
end
if VAGRANT_COMMAND == "ssh"
config.ssh.username = 'panda'
end
end