??
This commit is contained in:
		
							
								
								
									
										4
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							| @ -14,7 +14,6 @@ Vagrant.configure("2") do |config| | |||||||
|   # boxes at https://vagrantcloud.com/search. |   # boxes at https://vagrantcloud.com/search. | ||||||
|   config.vm.box = "generic/ubuntu1604" |   config.vm.box = "generic/ubuntu1604" | ||||||
|  |  | ||||||
|  |  | ||||||
|   # 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. 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. | ||||||
| @ -47,8 +46,9 @@ Vagrant.configure("2") do |config| | |||||||
|       'ops/cookbooks/vendor' |       'ops/cookbooks/vendor' | ||||||
|     ] |     ] | ||||||
|     chef.roles_path = 'ops/roles' |     chef.roles_path = 'ops/roles' | ||||||
|     chef.add_role('gitea') |     chef.add_role('app') | ||||||
|     chef.json = { |     chef.json = { | ||||||
|  |        | ||||||
|       'custom-domain': 'localhost.vm42.us', |       'custom-domain': 'localhost.vm42.us', | ||||||
|       'custom-title': 'My gitea server!', |       'custom-title': 'My gitea server!', | ||||||
|       'db-password': 'mypassword', |       'db-password': 'mypassword', | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								init.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.sh
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | |||||||
|  |  | ||||||
| apt install git wget nano; | apt-get install -y git wget nano; | ||||||
|  |  | ||||||
| if which chef-solo; then | if which chef-solo; then | ||||||
| 	echo 'found chef-solo, skipping'; | 	echo 'found chef-solo, skipping'; | ||||||
|  | |||||||
							
								
								
									
										5
									
								
								ops/app.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								ops/app.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | { | ||||||
|  |  "run_list": [ | ||||||
|  |  	"role[app]" | ||||||
|  |  ] | ||||||
|  | } | ||||||
| @ -1,4 +1,4 @@ | |||||||
| name 'hosting' | name 'app' | ||||||
| maintainer 'The Authors' | maintainer 'The Authors' | ||||||
| maintainer_email 'you@example.com' | maintainer_email 'you@example.com' | ||||||
| license 'All Rights Reserved' | license 'All Rights Reserved' | ||||||
| @ -1,3 +0,0 @@ | |||||||
| { |  | ||||||
|  "run_list": [ "role[gitea]"] |  | ||||||
| } |  | ||||||
| @ -1,4 +1,4 @@ | |||||||
| name :gitea | name :app | ||||||
| description "A basic role" | description "A basic role" | ||||||
| 
 | 
 | ||||||
| run_list( | run_list( | ||||||
| @ -7,6 +7,4 @@ run_list( | |||||||
| 	"recipe[hosting::postgress]", | 	"recipe[hosting::postgress]", | ||||||
| 	"recipe[hosting::gitea]", | 	"recipe[hosting::gitea]", | ||||||
| 	"recipe[hosting::nginx]", | 	"recipe[hosting::nginx]", | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ) | ) | ||||||
		Reference in New Issue
	
	Block a user