??
This commit is contained in:
parent
977318fbe4
commit
8b69ba10a7
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -14,7 +14,6 @@ Vagrant.configure("2") do |config|
|
||||
# boxes at https://vagrantcloud.com/search.
|
||||
config.vm.box = "generic/ubuntu1604"
|
||||
|
||||
|
||||
# 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,
|
||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
||||
@ -47,8 +46,9 @@ Vagrant.configure("2") do |config|
|
||||
'ops/cookbooks/vendor'
|
||||
]
|
||||
chef.roles_path = 'ops/roles'
|
||||
chef.add_role('gitea')
|
||||
chef.add_role('app')
|
||||
chef.json = {
|
||||
|
||||
'custom-domain': 'localhost.vm42.us',
|
||||
'custom-title': 'My gitea server!',
|
||||
'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
|
||||
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_email 'you@example.com'
|
||||
license 'All Rights Reserved'
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"run_list": [ "role[gitea]"]
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
name :gitea
|
||||
name :app
|
||||
description "A basic role"
|
||||
|
||||
run_list(
|
||||
@ -7,6 +7,4 @@ run_list(
|
||||
"recipe[hosting::postgress]",
|
||||
"recipe[hosting::gitea]",
|
||||
"recipe[hosting::nginx]",
|
||||
|
||||
|
||||
)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user