roles
This commit is contained in:
11
Vagrantfile
vendored
11
Vagrantfile
vendored
@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
|
|||||||
# within the machine from a port on the host machine. In the example below,
|
# 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.
|
# accessing "localhost:8080" will access port 80 on the guest machine.
|
||||||
# NOTE: This will enable public access to the opened port
|
# 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
|
# 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
|
# within the machine from a port on the host machine and only allow access
|
||||||
@ -69,7 +69,12 @@ Vagrant.configure("2") do |config|
|
|||||||
# SHELL
|
# SHELL
|
||||||
|
|
||||||
config.vm.provision "chef_solo" do |chef|
|
config.vm.provision "chef_solo" do |chef|
|
||||||
chef.cookbooks_path = "/vagrant/cookbooks/"
|
chef.version = "14.12.3" # version 14.12.9 fails to run
|
||||||
chef.add_recipe "hosting::user"
|
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
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"run_list": [ "recipe[hosting::user]",
|
"run_list": [ "role[gitea]"]
|
||||||
"recipe[hosting::mkdir]",
|
|
||||||
"recipe[hosting::postgress]"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -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": [
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
@ -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
8
roles/gitea.rb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
name :gitea
|
||||||
|
description "A basic role"
|
||||||
|
|
||||||
|
run_list(
|
||||||
|
"recipe[hosting::user]",
|
||||||
|
"recipe[hosting::mkdir]",
|
||||||
|
"recipe[hosting::postgress]",
|
||||||
|
)
|
Reference in New Issue
Block a user