Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ansible/ansible-role-uguu"]
path = ansible/ansible-role-uguu
url = https://github.com/s3lva-kumar/ansible-role-uguu
29 changes: 18 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
MAKE = "make"
INSTALL = "install"
TAR = "tar"
GREP = "grep"
NODE = "node"
NPM = "npm"
NODEJQ = "node_modules/node-jq/bin/jq"
SQLITE = "sqlite3"
CONF = "src/config.json"
PHP = "php"
CURL = "curl"
MAKE="make"
INSTALL="install"
TAR="tar"
GREP="grep"
NODE="node"
NPM="npm"
HOSTS_FILE = $(HOSTS_FILE)
NODEJQ="node_modules/node-jq/bin/jq"
SQLITE="sqlite3"
CONF="src/config.json"
PHP="php"
CURL="curl"
DESTDIR = $(shell $(CURDIR)/$(NODEJQ) -r ".dest" $(CURDIR)/$(CONF))
SITEDOMAIN = $(shell $(CURDIR)/$(NODEJQ) -r ".DOMAIN" $(CURDIR)/$(CONF))
FILESDOMAIN = $(shell $(CURDIR)/$(NODEJQ) -r ".FILE_DOMAIN" $(CURDIR)/$(CONF))
Expand Down Expand Up @@ -68,6 +69,12 @@ install: installdirs
cd $(DESTDIR)/ && rm composer-setup.php
cd $(DESTDIR)/ && php composer.phar update && php composer.phar install && php composer.phar dump-autoload

submodule-update:
cd ansible && git clone [email protected]:s3lva-kumar/ansible-role-uguu.git && git submodule update --remote

deploy:
ansible-playbook -i $(HOSTS_FILE) ansible/site.yml

dist:
DESTDIR=$(TMPDIR)/uguu-$(PKGVERSION)
export DESTDIR
Expand Down
1 change: 1 addition & 0 deletions ansible/ansible-role-uguu
Submodule ansible-role-uguu added at b3b958
10 changes: 10 additions & 0 deletions ansible/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: "install uguu"
hosts: all
become: yes
roles:
- ansible-role-uguu

vars:
paypalUrl: ""
bitcoinAddress: ""
flattrUrl: ""