Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit b4badb340ec51bf2e9c8b14d19a6cecee3f3fc39 Author: Adam Samalik asamalik@redhat.com Date: Tue Jul 1 16:12:25 2014 +0200
Ansible playbok to generate frontend db documentation
frontend/documentation/copr-db-documentation.yml | 41 ++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/frontend/documentation/copr-db-documentation.yml b/frontend/documentation/copr-db-documentation.yml new file mode 100644 index 0000000..da90ee9 --- /dev/null +++ b/frontend/documentation/copr-db-documentation.yml @@ -0,0 +1,41 @@ +--- + +# Playbook to generate a database documentation of Copr frontend +# Needs a Copr frontend instance with postgreSQL database +# and root access with rsa (without password) +# +# Usage: +# $ ansible-playbook -i SERVER-IP, copr-db-documentation.yml +# +# Output: +# coprdb.html, coprdb.png and coprdb.dia in the same folder as your playbook is + +- name: generate copr db documentation + hosts: all + user: root + gather_facts: False + + tasks: + - name: install packages + action: yum name=postgresql_autodoc state=latest + + - name: generate database graph + shell: postgresql_autodoc -t dot -u copr-fe -d coprdb --password=coprpass + + - name: transform it into png + shell: dot -Tpng coprdb.dot -o coprdb.png + + - name: generate database html + shell: postgresql_autodoc -t html -u copr-fe -d coprdb --password=coprpass + + - name: generate database dia + shell: postgresql_autodoc -t dia -u copr-fe -d coprdb --password=coprpass + + - name: get the png file + fetch: src=/root/coprdb.png dest=./ flat=yes + + - name: get the html file + fetch: src=/root/coprdb.html dest=./ flat=yes + + - name: get the dia file + fetch: src=/root/coprdb.dia dest=./ flat=yes