This commit is contained in:
2019-05-14 17:53:35 -04:00
parent db1ddf6f47
commit 87f1cc3c24
5 changed files with 19 additions and 43 deletions

11
Vagrantfile vendored
View File

@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 3000, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
@ -69,7 +69,12 @@ Vagrant.configure("2") do |config|
# SHELL
config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "/vagrant/cookbooks/"
chef.add_recipe "hosting::user"
chef.version = "14.12.3" # version 14.12.9 fails to run
chef.cookbooks_path = "cookbooks/"
chef.roles_path = "roles"
chef.add_role("gitea")
# chef.add_recipe "hosting::user"
# chef.add_recipe "hosting::mkdir"
# chef.add_recipe "hosting::postgress"
end
end

View File

@ -1,6 +1,3 @@
{
"run_list": [ "recipe[hosting::user]",
"recipe[hosting::mkdir]",
"recipe[hosting::postgress]"
]
"run_list": [ "role[gitea]"]
}

View File

@ -1,35 +0,0 @@
{
"name": "hosting",
"description": "Installs/Configures hosting",
"long_description": "Installs/Configures hosting",
"maintainer": "The Authors",
"maintainer_email": "you@example.com",
"license": "All Rights Reserved",
"platforms": {
},
"dependencies": {
},
"providing": {
},
"recipes": {
},
"version": "0.1.0",
"source_url": "",
"issues_url": "",
"privacy": false,
"chef_versions": [
[
">= 13.0"
]
],
"ohai_versions": [
],
"gems": [
]
}

View File

@ -1 +1,2 @@
cookbook_path '/opt/theta42/provision-node/cookbooks'
cookbook_path '/opt/theta42/provision-node/cookbooks'
roles_path '/opt/theta42/provision-node/roles'

8
roles/gitea.rb Normal file
View File

@ -0,0 +1,8 @@
name :gitea
description "A basic role"
run_list(
"recipe[hosting::user]",
"recipe[hosting::mkdir]",
"recipe[hosting::postgress]",
)