From 703a046572bd2c06429c41326abf9d410a41db3e Mon Sep 17 00:00:00 2001 From: Alejandro Moreno Date: Wed, 10 Feb 2016 20:40:31 +0000 Subject: [PATCH 1/2] First temptative to create a new ansible galaxy role --- .DS_Store | Bin 0 -> 6148 bytes README.md | 66 +++++---- Vagrantfile | 13 -- .../jiv_e.solr/defaults => defaults}/main.yml | 0 .../jiv_e.solr/handlers => handlers}/main.yml | 0 hosts | 1 - meta/main.yml | 134 ++++++++++++++++++ play.yml | 8 -- .../configure-drupal-cores.yml | 0 .../tasks => tasks}/install-solr.yml | 0 {roles/jiv_e.solr/tasks => tasks}/main.yml | 2 - .../tasks => tasks}/uninstall-solr.yml | 0 .../templates => templates}/4.x/elevate.xml | 0 .../4.x/mapping-ISOLatin1Accent.txt | 0 .../templates => templates}/4.x/protwords.txt | 0 .../templates => templates}/4.x/schema.xml | 0 .../4.x/schema_extra_fields.xml | 0 .../4.x/schema_extra_types.xml | 0 .../4.x/solrconfig.xml | 0 .../4.x/solrconfig_extra.xml | 0 .../4.x/solrcore.properties | 0 .../templates => templates}/4.x/stopwords.txt | 0 .../templates => templates}/4.x/synonyms.txt | 0 .../core.properties.j2 | 0 .../iptables/solr-allowed-hosts.j2 | 0 .../templates => templates}/solr-init.d.sh.j2 | 0 .../templates => templates}/solr.xml.j2 | 0 tests/inventory | 1 + tests/test.yml | 5 + 29 files changed, 181 insertions(+), 49 deletions(-) create mode 100644 .DS_Store delete mode 100644 Vagrantfile rename {roles/jiv_e.solr/defaults => defaults}/main.yml (100%) rename {roles/jiv_e.solr/handlers => handlers}/main.yml (100%) delete mode 100644 hosts create mode 100644 meta/main.yml delete mode 100644 play.yml rename {roles/jiv_e.solr/tasks => tasks}/configure-drupal-cores.yml (100%) rename {roles/jiv_e.solr/tasks => tasks}/install-solr.yml (100%) rename {roles/jiv_e.solr/tasks => tasks}/main.yml (99%) rename {roles/jiv_e.solr/tasks => tasks}/uninstall-solr.yml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/elevate.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/mapping-ISOLatin1Accent.txt (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/protwords.txt (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/schema.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/schema_extra_fields.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/schema_extra_types.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/solrconfig.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/solrconfig_extra.xml (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/solrcore.properties (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/stopwords.txt (100%) rename {roles/jiv_e.solr/templates => templates}/4.x/synonyms.txt (100%) rename {roles/jiv_e.solr/templates => templates}/core.properties.j2 (100%) rename {roles/jiv_e.solr/templates => templates}/iptables/solr-allowed-hosts.j2 (100%) rename {roles/jiv_e.solr/templates => templates}/solr-init.d.sh.j2 (100%) rename {roles/jiv_e.solr/templates => templates}/solr.xml.j2 (100%) create mode 100644 tests/inventory create mode 100644 tests/test.yml diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..bc93d69423ea721f4ccef79f9f23b2166803c3a9 GIT binary patch literal 6148 zcmeHKK~BR!44f@Rq~g*e$Go5tFCdimPzgBD573e#5Gh5pJ#fpncmR*!DV$(zuS$}_ z6%eu|dp5iF#yh);vj9SWogV^S00~vF)uH)9WL$JhTCqn4gU+!=ffbgcVsW+Q?HzxS z0o&XhGhAbW%KlA@#gqxl!FZ;=y{qUF65P=D9yxb=hDY1)PycY#@ZZBJMmWI`=NMxs zr=#Ni((q33z$x;M zSIlIIyXG1-i`QBfD{?W9xl6k_w`5U`P%7Ox1I~am@GA_kW{V{IhHjk!XTTZQFd*ND zlq#4-EDiP3L8DgyVw>G6Y|AgB#H10kh@~M%D8WLB78>FeBUm{5)99B)EDbFjAznU0 zd~=95l%Q|t{HeMlWQJ~?0cW7jz>Yn3rT!1UzyH^R{K*+`2L2TTp* Date: Wed, 10 Feb 2016 20:54:38 +0000 Subject: [PATCH 2/2] Added tests --- tasks/main.yml | 4 ---- tests/test.yml | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index bfc4a11..5b2872a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,12 +1,8 @@ ---- -# Installing - name: Install Apache Solr include: install-solr.yml when: not jiv_solr__uninstall -# Uninstalling - - name: If updateSolr variable is set to uninstall the Apache Solr instance include: uninstall-solr.yml when: jiv_solr__uninstall diff --git a/tests/test.yml b/tests/test.yml index 9afa45a..5d91e3e 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,5 +1,5 @@ ---- - hosts: localhost - remote_user: root - roles: - - acme \ No newline at end of file + vars_files: + - '../defaults/main.yml' + tasks: + - include: '../tasks/main.yml'