ansible/test
Michael DeHaan 60f295f7a0 Squashed commit of the following:
commit 4430ce3eefcdff0b0ceffea0ef66ea8e876a807d
Merge: 631783b 649963c
Author: Michael DeHaan <michael.dehaan@gmail.com>
Date:   Thu Jul 12 01:28:43 2012 -0400

    Merge branch 'host-groups' of https://github.com/dagwieers/ansible into daggroups

commit 649963ca2c
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 23:01:00 2012 +0200

    Added comments in the example yaml file as requested

commit 7f9718f185
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 22:49:38 2012 +0200

    Add the default nose color too, to test specific overrides

commit eb63b9e899
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 22:44:35 2012 +0200

    Introduce comics and cartoons to test yaml groups defined on a per-node basis

commit aa13d23307
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 19:33:15 2012 +0200

    A small fix to revert to old state

commit 264ebaa77c
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 19:31:51 2012 +0200

    Combine both yaml unit tests into one example file

commit 7db49a8048
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 16:46:53 2012 +0200

    Might as well fix this too

commit f36c6c8c5b
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 16:42:00 2012 +0200

    Added unit tests for host-groups patch

    For the unit test I chose to keep the original yaml file in place as a reference.

    This patch also includes a fix.

commit a96f681352
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 12:30:43 2012 +0200

    Allow groups to be defined on a per-host basis

    This makes it possible to define on a per-host basis what groups a host is in.
    When managing a large set of systems it makes it easier to ensure each of the
    systems is defined in a set of groups (e.g. production/qa/development,
    linux/solaris/aix) rather than having to add systems to multiple disconnected
    groups.

    ----
      - host: system01

      - host: system02

      - host: system03

      - group: linux
        hosts:
        - system01
        - system02

      - group: solaris
        hosts:
        - system03

      - group: production
        hosts:
        - system01
        - system03

      - group: qa
        - system02

      - group: dbserver
        hosts:
        - system01

      - group: ntpserver
        hosts:
        - system02

      - group: webserver
        - system03
    ----

    Can be redefined as:

    ----
      - host: system01
        groups: [ linux, production, dbserver ]

      - host: system02
        groups: [ linux, qa, ntpserver ]

      - host: system03
        groups: [ solaris, production, webserver ]
    ----
2012-07-12 01:29:51 -04:00
..
assemble.d Add assemble module 2012-06-11 23:09:54 -07:00
ansible_hosts Update tests to use 127.0.0.2 to bypass the smart "use local connection" code, and also to reflect 2012-04-06 12:11:25 -04:00
CentOS.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 2012-03-19 22:42:31 -04:00
common_vars.yml Fix correct variable expansion in includes only_if. 2012-05-11 15:55:33 +02:00
complex_hosts Fix hosts being in multiple groups, and duplicate host references in the same inventory file. 2012-05-19 17:24:54 -04:00
default_os.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 2012-03-19 22:42:31 -04:00
hosts_list.yml Properly template list of hosts in playbooks. 2012-05-31 16:06:21 -04:00
inventory_api.py Add tests for Inventory class. 2012-04-16 09:16:29 +02:00
metadata.json Here are those tests I talked about previously :) 2012-04-04 11:11:31 -04:00
playbook1.yml Code cleanup for playbooks, also added 'on_skipped' callback 2012-03-23 20:51:26 -04:00
sample.j2 Here are those tests I talked about previously :) 2012-04-04 11:11:31 -04:00
simple_hosts Ignore port numbers in simple inventory format 2012-04-16 09:16:29 +02:00
template-basic Update tests to reflect new API 2012-06-18 00:13:12 +02:00
template-whitespace Update tests to reflect new API 2012-06-18 00:13:12 +02:00
TestInventory.py Squashed commit of the following: 2012-07-12 01:29:51 -04:00
TestPlayBook.py Remove the -D module debug flag, which no longer is functional due to sudo pty requirements, and replace with -v/--verbose. 2012-06-19 21:57:43 -04:00
TestRunner.py Add assemble module 2012-06-11 23:09:54 -07:00
TestUtils.py Update tests to reflect new API 2012-06-18 00:13:12 +02:00
yaml_hosts Squashed commit of the following: 2012-07-12 01:29:51 -04:00