Loading README.rst +14 −5 Original line number Diff line number Diff line Example ####### mongod 2.6 ########## An (empty) example Ansible role complete with working tests out of the box. For more information read the `blog post <https://www.shore.co.il/blog/ansible-example-role/>`_. Provision mongod 2.6 on Ubuntu Trusty. Requirements ------------ Loading Loading @@ -53,3 +51,14 @@ Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website <https://www.shore.co.il/>`_. Patches are welcome via `git send-email <http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located at: https://www.shore.co.il/git/. TODO ---- - Tests. - Finish replica set work. - Mail alias. - Log to syslog. - Better indication if in replica set, or if rs.initiate finished. - Don't set fact for auth. - Handle admin password change. defaults/main.yml +9 −1 Original line number Diff line number Diff line --- # defaults file for ansible-role-example # defaults file for ansible-role-mongod2.6 mongod_mail_alias: root mongod_admin_password: mongod_replset_members: [] mongod_config: auth: '{{ mongod_admin_password is defined }}' bind_ip: '0.0.0.0' keyFile: '{{ mongod_keyFile|default(omit) }}' replSet: '{{ mongod_replSet|default(omit) }}' handlers/main.yml +5 −1 Original line number Diff line number Diff line --- # handlers file for ansible-role-example # handlers file for ansible-role-mongod2.6 - name: Restart mongod service: name: mongod state: restarted meta/main.yml +5 −8 Original line number Diff line number Diff line galaxy_info: author: Nimrod Adar description: An example Ansible role description: Provision mongod 2.6 on Ubuntu Trusty company: Shore technologies license: MIT min_ansible_version: 2.0 platforms: - name: OpenBSD - name: Ubuntu versions: - 5.9 galaxy_tags: [ ansible ] dependencies: - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap scm: git name: bootstrap - trusty galaxy_tags: [ mongodb ] dependencies: [] molecule.yml +3 −3 Original line number Diff line number Diff line Loading @@ -13,10 +13,10 @@ vagrant: - name: virtualbox type: virtualbox platforms: - name: openbsd box: kaorimatz/openbsd-5.9-amd64 - name: ubuntu box: ubuntu/trusty64 instances: - name: ansible-role-example - name: ansible-role-mongod2.6 options: append_platform_to_hostname: yes raw_config_args: Loading Loading
README.rst +14 −5 Original line number Diff line number Diff line Example ####### mongod 2.6 ########## An (empty) example Ansible role complete with working tests out of the box. For more information read the `blog post <https://www.shore.co.il/blog/ansible-example-role/>`_. Provision mongod 2.6 on Ubuntu Trusty. Requirements ------------ Loading Loading @@ -53,3 +51,14 @@ Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website <https://www.shore.co.il/>`_. Patches are welcome via `git send-email <http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located at: https://www.shore.co.il/git/. TODO ---- - Tests. - Finish replica set work. - Mail alias. - Log to syslog. - Better indication if in replica set, or if rs.initiate finished. - Don't set fact for auth. - Handle admin password change.
defaults/main.yml +9 −1 Original line number Diff line number Diff line --- # defaults file for ansible-role-example # defaults file for ansible-role-mongod2.6 mongod_mail_alias: root mongod_admin_password: mongod_replset_members: [] mongod_config: auth: '{{ mongod_admin_password is defined }}' bind_ip: '0.0.0.0' keyFile: '{{ mongod_keyFile|default(omit) }}' replSet: '{{ mongod_replSet|default(omit) }}'
handlers/main.yml +5 −1 Original line number Diff line number Diff line --- # handlers file for ansible-role-example # handlers file for ansible-role-mongod2.6 - name: Restart mongod service: name: mongod state: restarted
meta/main.yml +5 −8 Original line number Diff line number Diff line galaxy_info: author: Nimrod Adar description: An example Ansible role description: Provision mongod 2.6 on Ubuntu Trusty company: Shore technologies license: MIT min_ansible_version: 2.0 platforms: - name: OpenBSD - name: Ubuntu versions: - 5.9 galaxy_tags: [ ansible ] dependencies: - src: https://www.shore.co.il/git/ansible-role-openbsd-bootstrap scm: git name: bootstrap - trusty galaxy_tags: [ mongodb ] dependencies: []
molecule.yml +3 −3 Original line number Diff line number Diff line Loading @@ -13,10 +13,10 @@ vagrant: - name: virtualbox type: virtualbox platforms: - name: openbsd box: kaorimatz/openbsd-5.9-amd64 - name: ubuntu box: ubuntu/trusty64 instances: - name: ansible-role-example - name: ansible-role-mongod2.6 options: append_platform_to_hostname: yes raw_config_args: Loading