Commit 162bacb2 authored by nimrod's avatar nimrod
Browse files

Merge branch 'master' of /home/nimrod/Documents/Shore/Ansible/example

# Conflicts:
#	README.rst
#	defaults/main.yml
#	handlers/main.yml
#	molecule.yml
#	tasks/main.yml
#	tests/playbook.yml
#	vars/main.yml
parents 917aca77 4132c3f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
    -   id: check-merge-conflict
    -   id: flake8
    -   id: check-symlinks
-   repo: https://www.shore.co.il/git/ansible-pre-commit
-   repo: https://github.com/adarnimrod/ansible-pre-commit.git
    sha: 0fadd691465b97db8992cfc66650f630e433324b
    hooks:
    -   id: ansible-syntax-check

.travis.yml

0 → 100644
+25 −0
Original line number Diff line number Diff line
---
language: python
python: "2.7"
dist: trusty
sudo: false
group: beta
services: [docker]
cache:
  - pip
  - directories:
      - $HOME/.pre-commit
      - $HOME/virtualenv

install:
  - pip install -r tests/requirements.txt | cat
  - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
  - molecule dependency

script:
  - pre-commit run --all-files
  - molecule test --driver docker

notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/
  email: false
+12 −10
Original line number Diff line number Diff line
gitreceive
##########

An Ansible to install and configure `gitreceive
<https://github.com/progrium/gitreceive>`_. Take care to have the receiver
script capture all of stdin (the git archive tarball).
.. image:: https://travis-ci.org/adarnimrod/gitreceive.svg?branch=master
    :target: https://travis-ci.org/adarnimrod/gitreceive

Provision `gitreceive <https://github.com/progrium/gitreceive>`_. Take care to
have the receiver script capture all of stdin (the git archive tarball).

Requirements
------------

See :code:`meta/main.yml`, :code:`tests/requirements.yml` and assertions at
the top of :code:`tasks/main.yml`.
See :code:`meta/main.yml` and assertions at the top of :code:`tasks/main.yml`.

Role Variables
--------------
@@ -29,21 +30,22 @@ See :code:`tests/playbook.yml`.
Testing
-------

Testing requires Virtualbox and Vagrant and Python 2.7. Install the Python
dependencies, add pre-commit hooks by running:
Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox.
Install the Python dependencies, dependent roles and roles required for
testing:

.. code:: shell

    pip install -r tests/requirements.txt
    pre-commit install
    ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
    molecule dependency

To run the full test suite:

.. code:: shell

    ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
    molecule test --platform all
    pre-commit run --all-files
    molecule test --platform all

License
-------
+1 −1
Original line number Diff line number Diff line
---
# defaults file for ansible-role-gitreceive
# defaults file for gitreceive

gitreceive_public_keys:
#    - '{{ lookup("file", "id_rsa.pub" ) }}'
+1 −1
Original line number Diff line number Diff line
---
# handlers file for ansible-role-gitreceive
# handlers file for gitreceive
Loading