|
| 1 | +# -*- mode: ruby -*- |
| 2 | +# vi: set ft=ruby : |
| 3 | + |
| 4 | +# All Vagrant configuration is done below. The "2" in Vagrant.configure |
| 5 | +# configures the configuration version (we support older styles for |
| 6 | +# backwards compatibility). Please don't change it unless you know what |
| 7 | +# you're doing. |
| 8 | + |
| 9 | +Vagrant.configure(2) do |config| |
| 10 | + # The most common configuration options are documented and commented below. |
| 11 | + # For a complete reference, please see the online documentation at |
| 12 | + # https://docs.vagrantup.com. |
| 13 | + config.hostmanager.enabled = true |
| 14 | + config.hostmanager.manage_host = true |
| 15 | + config.hostmanager.manage_guest = true |
| 16 | + config.hostmanager.ignore_private_ip = false |
| 17 | + config.hostmanager.include_offline = true |
| 18 | + |
| 19 | + config.vm.define "cc" do |cc| |
| 20 | + |
| 21 | + # Every Vagrant development environment requires a box. You can search for |
| 22 | + # boxes at https://app.vagrantup.com/boxes/search. |
| 23 | + cc.vm.box = "ilker/ubuntu2004" |
| 24 | + |
| 25 | + # Disable automatic box update checking. If you disable this, then |
| 26 | + # boxes will only be checked for updates when the user runs |
| 27 | + # `vagrant box outdated`. This is not recommended. |
| 28 | + # cc.vm.box_check_update = false |
| 29 | + |
| 30 | + # Create a forwarded port mapping which allows access to a specific port |
| 31 | + # within the machine from a port on the host machine. In the example below, |
| 32 | + # accessing "localhost:8080" will access port 80 on the guest machine. |
| 33 | + # cc.vm.network "forwarded_port", guest: 80, host: 8080 |
| 34 | + |
| 35 | + cc.vm.hostname = "local-dev" |
| 36 | + cc.vm.network "private_network", ip: "192.168.57.2" |
| 37 | + cc.vm.network "private_network", type: "dhcp" |
| 38 | + cc.hostmanager.aliases = %w(cc.example.com, contentportal.example.com) |
| 39 | + |
| 40 | + # Create a public network, which generally matched to bridged network. |
| 41 | + # Bridged networks make the machine appear as another physical device on |
| 42 | + # your network. |
| 43 | + # cc.vm.network "public_network" |
| 44 | + |
| 45 | + # Share an additional folder to the guest VM. The first argument is |
| 46 | + # the path on the host to the actual folder. The second argument is |
| 47 | + # the path on the guest to mount the folder. And the optional third |
| 48 | + # argument is a set of non-required options. |
| 49 | + # cc.vm.synced_folder "deploy", "/deploy" |
| 50 | + |
| 51 | + |
| 52 | + #cc.vm.provision :shell, path: "bootstrap.sh", run: "once" |
| 53 | + |
| 54 | + cc.vm.provider "parallels" do |pr| |
| 55 | + pr.cpus = "2" |
| 56 | + # Customize the amount of memory on the VM: |
| 57 | + pr.memory = "4096" |
| 58 | + end |
| 59 | + |
| 60 | + cc.vm.provision :ansible do |ansible| |
| 61 | + ansible.playbook = "env-dev.yml" |
| 62 | + ansible.verbose = "v" |
| 63 | + ansible.extra_vars = "@host_vars/cc.example.com.yml" |
| 64 | + ansible.raw_arguments = "-e cc_version=4.0" |
| 65 | + end |
| 66 | + |
| 67 | + end |
| 68 | + |
| 69 | + config.vm.define "cc-1-2" do |cc| |
| 70 | + |
| 71 | + # Every Vagrant development environment requires a box. You can search for |
| 72 | + # boxes at https://atlas.hashicorp.com/search. |
| 73 | + cc.vm.box = "ilker/ubuntu2004" |
| 74 | + |
| 75 | + cc.vm.hostname = "local-dev" |
| 76 | + cc.vm.network "private_network", ip: "192.168.88.23" |
| 77 | + cc.vm.network "private_network", type: "dhcp" |
| 78 | + cc.hostmanager.aliases = %w(cc-1-2.example.com) |
| 79 | + |
| 80 | + cc.vm.provider "parallels" do |pr| |
| 81 | + pr.cpus = "2" |
| 82 | + # Customize the amount of memory on the VM: |
| 83 | + pr.memory = "4096" |
| 84 | + end |
| 85 | + |
| 86 | + cc.vm.provision :ansible do |ansible| |
| 87 | + ansible.playbook = "env.yml" |
| 88 | + ansible.verbose = "v" |
| 89 | + ansible.extra_vars = { ServerName: "cc-1-2.example.com", S3FileStorageEnabled: false, use_ssl: true, build_name: "ContentController-1.2.317" } |
| 90 | + ansible.raw_arguments = "-e cc_version=4.0" |
| 91 | + end |
| 92 | + |
| 93 | + end |
| 94 | + |
| 95 | + config.vm.define "cc-cent" do |cc| |
| 96 | + |
| 97 | + # Every Vagrant development environment requires a box. You can search for |
| 98 | + # boxes at https://atlas.hashicorp.com/search. |
| 99 | + cc.vm.box = "parallels/centos-7.2" |
| 100 | + |
| 101 | + # Disable automatic box update checking. If you disable this, then |
| 102 | + # boxes will only be checked for updates when the user runs |
| 103 | + # `vagrant box outdated`. This is not recommended. |
| 104 | + # cc.vm.box_check_update = false |
| 105 | + |
| 106 | + # Create a forwarded port mapping which allows access to a specific port |
| 107 | + # within the machine from a port on the host machine. In the example below, |
| 108 | + # accessing "localhost:8080" will access port 80 on the guest machine. |
| 109 | + # cc.vm.network "forwarded_port", guest: 80, host: 8080 |
| 110 | + |
| 111 | + cc.vm.hostname = "cc-cent" |
| 112 | + cc.vm.network "private_network", type: "dhcp" |
| 113 | + cc.hostmanager.aliases = %w(cc-cent.rusticisoftware.com) |
| 114 | + |
| 115 | + # Create a public network, which generally matched to bridged network. |
| 116 | + # Bridged networks make the machine appear as another physical device on |
| 117 | + # your network. |
| 118 | + # cc.vm.network "public_network" |
| 119 | + |
| 120 | + # Share an additional folder to the guest VM. The first argument is |
| 121 | + # the path on the host to the actual folder. The second argument is |
| 122 | + # the path on the guest to mount the folder. And the optional third |
| 123 | + # argument is a set of non-required options. |
| 124 | + # cc.vm.synced_folder "deploy", "/deploy" |
| 125 | + |
| 126 | + |
| 127 | + #cc.vm.provision :shell, path: "bootstrap.sh", run: "once" |
| 128 | + |
| 129 | + cc.vm.provider "parallels" do |pr| |
| 130 | + pr.cpus = "2" |
| 131 | + # Customize the amount of memory on the VM: |
| 132 | + pr.memory = "4096" |
| 133 | + end |
| 134 | + |
| 135 | + cc.vm.provision :ansible do |ansible| |
| 136 | + ansible.playbook = "cc-cent.yml" |
| 137 | + ansible.verbose = "v" |
| 138 | + end |
| 139 | + |
| 140 | + end |
| 141 | + |
| 142 | + config.vm.define "se" do |cc| |
| 143 | + |
| 144 | + # Every Vagrant development environment requires a box. You can search for |
| 145 | + # boxes at https://atlas.hashicorp.com/search. |
| 146 | + cc.vm.box = "ilker/ubuntu2004" |
| 147 | + |
| 148 | + # Disable automatic box update checking. If you disable this, then |
| 149 | + # boxes will only be checked for updates when the user runs |
| 150 | + # `vagrant box outdated`. This is not recommended. |
| 151 | + # cc.vm.box_check_update = false |
| 152 | + |
| 153 | + # Create a forwarded port mapping which allows access to a specific port |
| 154 | + # within the machine from a port on the host machine. In the example below, |
| 155 | + # accessing "localhost:8080" will access port 80 on the guest machine. |
| 156 | + # cc.vm.network "forwarded_port", guest: 80, host: 8080 |
| 157 | + |
| 158 | + cc.vm.hostname = "local-dev" |
| 159 | + cc.vm.network "private_network", type: "dhcp" |
| 160 | + cc.hostmanager.aliases = %w(dev.engine.scorm.com) |
| 161 | + |
| 162 | + # Create a public network, which generally matched to bridged network. |
| 163 | + # Bridged networks make the machine appear as another physical device on |
| 164 | + # your network. |
| 165 | + # cc.vm.network "public_network" |
| 166 | + |
| 167 | + # Share an additional folder to the guest VM. The first argument is |
| 168 | + # the path on the host to the actual folder. The second argument is |
| 169 | + # the path on the guest to mount the folder. And the optional third |
| 170 | + # argument is a set of non-required options. |
| 171 | + # cc.vm.synced_folder "deploy", "/deploy" |
| 172 | + |
| 173 | + |
| 174 | + #cc.vm.provision :shell, path: "bootstrap.sh", run: "once" |
| 175 | + |
| 176 | + cc.vm.provider "parallels" do |pr| |
| 177 | + pr.cpus = "2" |
| 178 | + # Customize the amount of memory on the VM: |
| 179 | + pr.memory = "2048" |
| 180 | + end |
| 181 | + |
| 182 | + cc.vm.provision :ansible do |ansible| |
| 183 | + ansible.playbook = "engine.yml" |
| 184 | + ansible.verbose = "v" |
| 185 | + ansible.extra_vars = "@host_vars/dev.engine.scorm.com.yml" |
| 186 | + end |
| 187 | + |
| 188 | + end |
| 189 | + |
| 190 | +end |
0 commit comments