Merge branch 'master' of github.com:tus/tusd

This commit is contained in:
Marius 2017-01-31 17:08:47 +01:00
commit 5491b8ff12
5 changed files with 17 additions and 10 deletions

View File

@ -110,11 +110,11 @@ install {
hosts = "tusd" hosts = "tusd"
name = "Install tusd" name = "Install tusd"
roles { roles {
role = "{{{init.paths.roles_dir}}}/apt/1.3.0" role = "{{{init.paths.roles_dir}}}/apt/1.4.0"
apt_install = ["apg", "build-essential", "curl", "git-core", "htop", "iotop", "libpcre3", "logtail", "mlocate", "mtr", "psmisc", "telnet", "vim", "wget"] apt_install = ["apg", "build-essential", "curl", "git-core", "htop", "iotop", "libpcre3", "logtail", "mlocate", "mtr", "psmisc", "telnet", "vim", "wget"]
} }
roles { roles {
role = "{{{init.paths.roles_dir}}}/unattended-upgrades/1.3.0" role = "{{{init.paths.roles_dir}}}/unattended-upgrades/1.3.1"
} }
tasks { tasks {
lineinfile = "dest=/home/{{{config.global.ssh.user}}}/.bashrc line=\"alias wtf='sudo tail -f /var/log/*{log,err} /var/log/{dmesg,messages,*{,/*}{log,err}}'\" owner={{{config.global.ssh.user}}} group={{{config.global.ssh.user}}} mode=0644 backup=yes" lineinfile = "dest=/home/{{{config.global.ssh.user}}}/.bashrc line=\"alias wtf='sudo tail -f /var/log/*{log,err} /var/log/{dmesg,messages,*{,/*}{log,err}}'\" owner={{{config.global.ssh.user}}} group={{{config.global.ssh.user}}} mode=0644 backup=yes"
@ -156,7 +156,7 @@ setup {
upstart_user = "www-data" upstart_user = "www-data"
} }
roles { roles {
role = "{{{init.paths.roles_dir}}}/rsyslog/3.1.0" role = "{{{init.paths.roles_dir}}}/rsyslog/3.1.1"
rsyslog_rsyslog_d_files "49-tusd" { rsyslog_rsyslog_d_files "49-tusd" {
directives = ["& stop"] directives = ["& stop"]
rules { rules {
@ -166,7 +166,7 @@ setup {
} }
} }
roles { roles {
role = "{{{init.paths.roles_dir}}}/fqdn/1.0.0" role = "{{{init.paths.roles_dir}}}/fqdn/1.2.1"
fqdn = "{{lookup('env', 'FREY_DOMAIN')}}" fqdn = "{{lookup('env', 'FREY_DOMAIN')}}"
} }
tasks { tasks {
@ -202,7 +202,7 @@ deploy {
hosts = "tusd" hosts = "tusd"
name = "Deploy tusd" name = "Deploy tusd"
roles { roles {
role = "{{{init.paths.roles_dir}}}/deploy/1.4.0" role = "{{{init.paths.roles_dir}}}/deploy/2.0.0"
ansistrano_deploy_from = "./files/tusd_linux_amd64.tar.gz" ansistrano_deploy_from = "./files/tusd_linux_amd64.tar.gz"
ansistrano_deploy_to = "{{{config.global.approot}}}" ansistrano_deploy_to = "{{{config.global.approot}}}"
ansistrano_deploy_via = "copy_unarchive" ansistrano_deploy_via = "copy_unarchive"
@ -221,7 +221,7 @@ deploy {
hosts = "tusd" hosts = "tusd"
name = "Deploy nginx" name = "Deploy nginx"
roles { roles {
role = "{{{init.paths.roles_dir}}}/apt/1.3.0" role = "{{{init.paths.roles_dir}}}/apt/1.4.0"
apt_install = ["nginx-light"] apt_install = ["nginx-light"]
} }
tasks { tasks {

View File

@ -24,3 +24,8 @@ ansistrano_remove_rolled_back: no
# fqdn # fqdn
fqdn: "{{ lookup('env', 'FREY_DOMAIN') }}" fqdn: "{{ lookup('env', 'FREY_DOMAIN') }}"
hostname: "{{ fqdn.split('.')[0] }}" hostname: "{{ fqdn.split('.')[0] }}"
# nodejs
nodejs_yarn: false
nodejs_npm_global_packages:
- name: yarn

View File

@ -3,7 +3,7 @@
"version": "0.0.1", "version": "0.0.1",
"description": "This folder is charge of launching master.tus.io via [Frey](https://github.com/kvz/frey). You could re-use bits of this, but you could also run tusd any other way you want. It's not a requirement for running a tusd server.", "description": "This folder is charge of launching master.tus.io via [Frey](https://github.com/kvz/frey). You could re-use bits of this, but you could also run tusd any other way you want. It's not a requirement for running a tusd server.",
"dependencies": { "dependencies": {
"frey": "0.3.27" "frey": "0.3.28"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {

View File

@ -328,9 +328,9 @@ flat@2.0.0:
dependencies: dependencies:
is-buffer "~1.1.2" is-buffer "~1.1.2"
frey@0.3.27: frey@0.3.28:
version "0.3.27" version "0.3.28"
resolved "https://registry.yarnpkg.com/frey/-/frey-0.3.27.tgz#2e29b8b321b3178b95d6a36d0cfc1e91a588c174" resolved "https://registry.yarnpkg.com/frey/-/frey-0.3.28.tgz#d18c641d82faee834c18a7925388497e494d6888"
dependencies: dependencies:
async "1.5.2" async "1.5.2"
babel-polyfill "6.13.0" babel-polyfill "6.13.0"

View File

@ -8,10 +8,12 @@ install:
- git submodule update --init --recursive - git submodule update --init --recursive
build_script: build_script:
- set PATH=%GOPATH%\bin;%PATH%
- go env - go env
- go version - go version
- go get ./s3store - go get ./s3store
- go get ./consullocker - go get ./consullocker
- go get github.com/hashicorp/consul
test_script: test_script:
- go test . - go test .