1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

more whitespace

This commit is contained in:
Michael DeHaan 2012-08-06 21:00:21 -04:00
parent faed4b5a33
commit 1c9b43df1b
6 changed files with 34 additions and 34 deletions

View file

@ -9,7 +9,7 @@ Ansible Changes By Release
playbooks: playbooks:
* support to tag tasks and includes and use --tags in playbook CLI * support to tag tasks and includes and use --tags in playbook CLI
* playbooks can now include other playbooks (example/playbooks/nested_playbooks.yml) * playbooks can now include other playbooks (example/playbooks/nested_playbooks.yml)
* vars_files now usable with with_items, provided file paths don't contain host specific facts * vars_files now usable with with_items, provided file paths don't contain host specific facts
* error reporting if with_items value is unbound * error reporting if with_items value is unbound
@ -50,7 +50,7 @@ modules:
* setup module fixes if no ipv6 support * setup module fixes if no ipv6 support
* internals: template in common module boilerplate, also causes less SSH operations when used * internals: template in common module boilerplate, also causes less SSH operations when used
* git module fixes * git module fixes
* setup module overhaul, more modular * setup module overhaul, more modular
* minor caching logic added to inventory to reduce hammering of inventory scripts. * minor caching logic added to inventory to reduce hammering of inventory scripts.
* MySQL and PostgreSQL modules for user and db management * MySQL and PostgreSQL modules for user and db management
* vars_prompt now supports private password entry (see examples/playbooks/prompts.yml) * vars_prompt now supports private password entry (see examples/playbooks/prompts.yml)
@ -177,7 +177,7 @@ in kickstarts
* better module debugging with -D * better module debugging with -D
* fetch module for pulling in files from remote hosts * fetch module for pulling in files from remote hosts
* command task supports creates=foo for idempotent semantics, won't * command task supports creates=foo for idempotent semantics, won't
run if file foo already exists run if file foo already exists
0.0.2 and 0.0.1 0.0.2 and 0.0.1

View file

@ -1,8 +1,8 @@
Ansible Ansible
======= =======
Ansible is a radically simple configuration-management, deployment, task-execution, and Ansible is a radically simple configuration-management, deployment, task-execution, and
multinode orchestration framework. multinode orchestration framework.
Read the documentation at http://ansible.github.com Read the documentation at http://ansible.github.com
@ -30,7 +30,7 @@ Branch Info
* Releases are named after Van Halen songs. * Releases are named after Van Halen songs.
* The master branch corresponds to release 0.5 "Amsterdam". * The master branch corresponds to release 0.5 "Amsterdam".
* The devel branch corresponds to release 0.6 "Cabo". * The devel branch corresponds to release 0.6 "Cabo".
* All feature work happens on the development branch. * All feature work happens on the development branch.
* Major bug fixes will be made to the master branch, but not minor ones. * Major bug fixes will be made to the master branch, but not minor ones.
* See CHANGELOG.md for release notes to track each release. * See CHANGELOG.md for release notes to track each release.
@ -48,7 +48,7 @@ Contributions to the core and modules are greatly welcome.
* Fixing bugs instead of sending bug reports. * Fixing bugs instead of sending bug reports.
* Using squash merges * Using squash merges
* Updating the "rst/*" files in the docs project and "docs/" manpage content * Updating the "rst/*" files in the docs project and "docs/" manpage content
* Adding more unit tests * Adding more unit tests
* Avoid: * Avoid:
* Sending patches to the mailing list directly. * Sending patches to the mailing list directly.
* Sending feature pull requests to the 'master' branch instead of the devel branch * Sending feature pull requests to the 'master' branch instead of the devel branch

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
# NOTE: setup.py does NOT install the contents of the library dir # NOTE: setup.py does NOT install the contents of the library dir
# for you, you should go through "make install" or "make RPMs" # for you, you should go through "make install" or "make RPMs"
# for that, or manually copy modules over. # for that, or manually copy modules over.
import os import os

View file

@ -44,11 +44,11 @@ class TestInventory(unittest.TestCase):
inventory = self.simple_inventory() inventory = self.simple_inventory()
hosts = inventory.list_hosts() hosts = inventory.list_hosts()
expected_hosts=['jupiter', 'saturn', 'zeus', 'hera', expected_hosts=['jupiter', 'saturn', 'zeus', 'hera',
'cerberus001','cerberus002','cerberus003', 'cerberus001','cerberus002','cerberus003',
'cottus99', 'cottus100', 'cottus99', 'cottus100',
'poseidon', 'thor', 'odin', 'loki', 'poseidon', 'thor', 'odin', 'loki',
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2', 'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5'] 'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5']
assert sorted(hosts) == sorted(expected_hosts) assert sorted(hosts) == sorted(expected_hosts)
@ -56,11 +56,11 @@ class TestInventory(unittest.TestCase):
inventory = self.simple_inventory() inventory = self.simple_inventory()
hosts = inventory.list_hosts('all') hosts = inventory.list_hosts('all')
expected_hosts=['jupiter', 'saturn', 'zeus', 'hera', expected_hosts=['jupiter', 'saturn', 'zeus', 'hera',
'cerberus001','cerberus002','cerberus003', 'cerberus001','cerberus002','cerberus003',
'cottus99', 'cottus100', 'cottus99', 'cottus100',
'poseidon', 'thor', 'odin', 'loki', 'poseidon', 'thor', 'odin', 'loki',
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2', 'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5'] 'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5']
assert sorted(hosts) == sorted(expected_hosts) assert sorted(hosts) == sorted(expected_hosts)
@ -75,8 +75,8 @@ class TestInventory(unittest.TestCase):
inventory = self.simple_inventory() inventory = self.simple_inventory()
hosts = inventory.list_hosts("ungrouped") hosts = inventory.list_hosts("ungrouped")
expected_hosts=['jupiter', 'saturn', expected_hosts=['jupiter', 'saturn',
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2', 'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5'] 'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5']
assert sorted(hosts) == sorted(expected_hosts) assert sorted(hosts) == sorted(expected_hosts)
@ -84,7 +84,7 @@ class TestInventory(unittest.TestCase):
inventory = self.simple_inventory() inventory = self.simple_inventory()
hosts = inventory.list_hosts("norse:greek") hosts = inventory.list_hosts("norse:greek")
expected_hosts=['zeus', 'hera', 'poseidon', expected_hosts=['zeus', 'hera', 'poseidon',
'cerberus001','cerberus002','cerberus003', 'cerberus001','cerberus002','cerberus003',
'cottus99','cottus100', 'cottus99','cottus100',
'thor', 'odin', 'loki'] 'thor', 'odin', 'loki']
@ -94,7 +94,7 @@ class TestInventory(unittest.TestCase):
inventory = self.simple_inventory() inventory = self.simple_inventory()
restricted_hosts = ['hera', 'poseidon', 'thor'] restricted_hosts = ['hera', 'poseidon', 'thor']
expected_hosts=['zeus', 'hera', 'poseidon', expected_hosts=['zeus', 'hera', 'poseidon',
'cerberus001','cerberus002','cerberus003', 'cerberus001','cerberus002','cerberus003',
'cottus99', 'cottus100', 'cottus99', 'cottus100',
'thor', 'odin', 'loki'] 'thor', 'odin', 'loki']
@ -118,13 +118,13 @@ class TestInventory(unittest.TestCase):
hosts = inventory.list_hosts("all:!greek") hosts = inventory.list_hosts("all:!greek")
expected_hosts=['jupiter', 'saturn', 'thor', 'odin', 'loki', expected_hosts=['jupiter', 'saturn', 'thor', 'odin', 'loki',
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2', 'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5'] 'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5']
assert sorted(hosts) == sorted(expected_hosts) assert sorted(hosts) == sorted(expected_hosts)
hosts = inventory.list_hosts("all:!norse:!greek") hosts = inventory.list_hosts("all:!norse:!greek")
expected_hosts=['jupiter', 'saturn', expected_hosts=['jupiter', 'saturn',
'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2', 'thrudgelmir0', 'thrudgelmir1', 'thrudgelmir2',
'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5'] 'thrudgelmir3', 'thrudgelmir4', 'thrudgelmir5']
assert sorted(hosts) == sorted(expected_hosts) assert sorted(hosts) == sorted(expected_hosts)
@ -159,8 +159,8 @@ class TestInventory(unittest.TestCase):
print vars print vars
expected = dict( expected = dict(
a='1', b='2', c='3', d='100002', rga='1', rgb='2', rgc='3', a='1', b='2', c='3', d='100002', rga='1', rgb='2', rgc='3',
inventory_hostname='rtp_a', inventory_hostname_short='rtp_a', inventory_hostname='rtp_a', inventory_hostname_short='rtp_a',
group_names=[ 'eastcoast', 'nc', 'redundantgroup', 'redundantgroup2', 'redundantgroup3', 'rtp', 'us' ] group_names=[ 'eastcoast', 'nc', 'redundantgroup', 'redundantgroup2', 'redundantgroup3', 'rtp', 'us' ]
) )
print vars print vars

View file

@ -32,7 +32,7 @@ class TestCallbacks(object):
def on_setup(self): def on_setup(self):
EVENTS.append([ 'primary_setup' ]) EVENTS.append([ 'primary_setup' ])
def on_skipped(self, host, item=None): def on_skipped(self, host, item=None):
EVENTS.append([ 'skipped', [ host ]]) EVENTS.append([ 'skipped', [ host ]])
@ -65,7 +65,7 @@ class TestCallbacks(object):
del host_result[k] del host_result[k]
for k in host_result.keys(): for k in host_result.keys():
if k.startswith('facter_') or k.startswith('ohai_'): if k.startswith('facter_') or k.startswith('ohai_'):
del host_result[k] del host_result[k]
EVENTS.append([ 'ok', [ host, host_result ]]) EVENTS.append([ 'ok', [ host, host_result ]])
def on_play_start(self, pattern): def on_play_start(self, pattern):
@ -85,7 +85,7 @@ class TestCallbacks(object):
def on_setup(self): def on_setup(self):
pass pass
def on_no_hosts(self): def on_no_hosts(self):
pass pass
@ -116,7 +116,7 @@ class TestPlaybook(unittest.TestCase):
filename = os.path.join(self.test_dir, filename) filename = os.path.join(self.test_dir, filename)
assert os.path.exists(filename) assert os.path.exists(filename)
return filename return filename
def _get_stage_file(self, filename): def _get_stage_file(self, filename):
# get a file inside the test output directory # get a file inside the test output directory
filename = os.path.join(self.stage_dir, filename) filename = os.path.join(self.stage_dir, filename)
@ -144,15 +144,15 @@ class TestPlaybook(unittest.TestCase):
pb = os.path.join(self.test_dir, 'playbook1.yml') pb = os.path.join(self.test_dir, 'playbook1.yml')
actual = self._run(pb) actual = self._run(pb)
# if different, this will output to screen # if different, this will output to screen
print "**ACTUAL**" print "**ACTUAL**"
print utils.jsonify(actual, format=True) print utils.jsonify(actual, format=True)
expected = { expected = {
"127.0.0.2": { "127.0.0.2": {
"changed": 9, "changed": 9,
"failures": 0, "failures": 0,
"ok": 11, "ok": 11,
"skipped": 1, "skipped": 1,
"unreachable": 0 "unreachable": 0
} }
} }

View file

@ -2,7 +2,7 @@
--- ---
- hosts: all - hosts: all
# the 'weasels' string should show up in the output # the 'weasels' string should show up in the output
vars: vars:
answer: "Wuh, I think so, Brain, but if we didn't have ears, we'd look like weasels." answer: "Wuh, I think so, Brain, but if we didn't have ears, we'd look like weasels."
@ -14,7 +14,7 @@
vars_files: vars_files:
- common_vars.yml - common_vars.yml
- [ '$facter_operatingsystem.yml', 'default_os.yml' ] - [ '$facter_operatingsystem.yml', 'default_os.yml' ]
tasks: tasks:
- name: test basic success command - name: test basic success command
@ -34,7 +34,7 @@
- name: test copy - name: test copy
action: copy src=sample.j2 dest=/tmp/ansible_test_data_copy.out action: copy src=sample.j2 dest=/tmp/ansible_test_data_copy.out
notify: notify:
- on change 1 - on change 1
# this should trigger two change handlers, but the 2nd should # this should trigger two change handlers, but the 2nd should
@ -42,7 +42,7 @@
- name: test template - name: test template
action: template src=sample.j2 dest=/tmp/ansible_test_data_template.out action: template src=sample.j2 dest=/tmp/ansible_test_data_template.out
notify: notify:
- on change 1 - on change 1
- on change 2 - on change 2