This commit is contained in:
William Mantly 2019-05-20 01:39:19 -04:00
parent 977318fbe4
commit 8b69ba10a7
Signed by: wmantly
GPG Key ID: E1EEC7650BA97160
50 changed files with 11 additions and 11 deletions

4
Vagrantfile vendored
View File

@ -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',

View File

@ -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
View File

@ -0,0 +1,5 @@
{
"run_list": [
"role[app]"
]
}

View File

@ -1,4 +1,4 @@
name 'hosting'
name 'app'
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'All Rights Reserved'

View File

@ -1,3 +0,0 @@
{
"run_list": [ "role[gitea]"]
}

View File

@ -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]",
)
)