diff --git a/Vagrantfile b/Vagrantfile index 006c2c3..735db6b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -66,4 +66,27 @@ Vagrant.configure(2) do |config| end end + config.vm.define "openresty" do |openresty| + openresty.vm.box = "bento/ubuntu-20.04" + openresty.vm.network "forwarded_port", guest: 6379, host: 6379 + openresty.vm.network "private_network", ip: "192.168.56.7" + + openresty.vm.provision :chef_zero do |chef| + chef.version = "18.2.7" + chef.node_name = "vagrant-openresty" + chef.arguments = "--chef-license accept" + chef.cookbooks_path = ["cookbooks", "site-cookbooks"] + chef.data_bags_path = "data_bags" + chef.roles_path = "roles" + chef.nodes_path = "nodes" + chef.environments_path = "environments" + chef.encrypted_data_bag_secret_key_path = ".chef/encrypted_data_bag_secret" + chef.environment = "development" + + chef.add_recipe "kosmos-base" + chef.add_role "openresty" + chef.add_role "openresty_proxy" + end + end + end