diff --git a/.gitmodules b/.gitmodules index e69de29..18af08d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ansible/ansible-role-uguu"] + path = ansible/ansible-role-uguu + url = https://github.com/s3lva-kumar/ansible-role-uguu diff --git a/Makefile b/Makefile index 57569dc..e8cfbea 100644 --- a/Makefile +++ b/Makefile @@ -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)) @@ -69,6 +70,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 git@github.com: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 diff --git a/ansible/ansible-role-uguu b/ansible/ansible-role-uguu new file mode 160000 index 0000000..b3b9580 --- /dev/null +++ b/ansible/ansible-role-uguu @@ -0,0 +1 @@ +Subproject commit b3b95801d3664d8a143126c0ff6551533f48394e diff --git a/ansible/site.yml b/ansible/site.yml new file mode 100644 index 0000000..9738112 --- /dev/null +++ b/ansible/site.yml @@ -0,0 +1,10 @@ +- name: "install uguu" + hosts: all + become: yes + roles: + - ansible-role-uguu + + vars: + paypalUrl: "" + bitcoinAddress: "" + flattrUrl: "" \ No newline at end of file