eludom
b1b17ce15a
Update developing_modules.rst
2014-06-05 13:00:05 -04:00
Dag Wieers
fd6f0cb4b4
Update facts.py
2014-06-05 15:09:43 +02:00
Dag Wieers
14a9966984
Added cross-platform uptime fact
...
Having an uptime fact allows you to check after a reboot whether the system was effectively rebooted.
```yaml
- name: Safeguard - Was system properly rebooted ?
action: fail msg="System was not properly rebooted"
when: ansible_uptime > 900
```
This patch has been tested on Linux, Solaris and HP-UX.
2014-06-05 11:58:00 +02:00
James Cammarata
11b72df27b
Merge pull request #7667 from alexclear/devel
...
ansible-pull should respect inventory file settings because, say, Python...
2014-06-04 23:41:14 -05:00
James Cammarata
43f96a636b
Fix issue with symlink path detection
...
Fixes #7627
Fixes #7664
2014-06-04 23:31:59 -05:00
James Cammarata
7483acde5d
Fix linking issue to directories in file module
...
The os.path.isdir() returns True for symlinks that point to directories,
so we also need to check to make sure it's not a symlink too.
Fixes #7657
2014-06-04 22:48:08 -05:00
Alex Chistyakov
bb1941a906
ansible-pull should respect inventory file settings because, say, Python interpreter path can be non-default on a host
2014-06-05 01:37:41 +04:00
James Cammarata
ad97c618cf
Add support for relative paths in the file lookup plugin for roles
...
Fixes #7628
2014-06-04 15:20:59 -05:00
Matt Martz
074263af8d
Add rackconnect and managed cloud automation check examples
2014-06-04 15:12:27 -05:00
James Cammarata
b3bbca03d5
Add additional params to get_target_from_rule method in ec2_group
...
Fixes #7592
2014-06-04 13:52:44 -05:00
James Cammarata
9f0d496d67
Fixing version_added strings for new features in ec2_elb_lb
...
Fixes #7631
2014-06-04 13:37:04 -05:00
James Cammarata
6708ea887a
Merge pull request #7662 from billcarlson/devel
...
Clarified, remote_user config item does override ansible current user
2014-06-04 13:30:46 -05:00
Bill Carlson
974ccc3486
Clarified, remote_user config item does override ansible current user if defined.
2014-06-04 13:26:16 -05:00
James Cammarata
82a784931e
Fix error passing play vars to an included playbook with empty vars
...
Fixes #7658
2014-06-04 13:22:50 -05:00
James Cammarata
8ff0c0f253
Tweaking make_su_cmd test
...
Fixes #7652
2014-06-04 13:03:50 -05:00
James Cammarata
f0ebfc623c
Merge pull request #7656 from tsemerad/patch-1
...
made nested lists diff lengths - caused confusion
2014-06-04 11:56:34 -05:00
James Cammarata
74d018da15
Merge branch 'sivel-rax-meta' into devel
2014-06-04 11:10:58 -05:00
James Cammarata
09d9832715
Adding the new rax_meta module to the CHANGELOG
2014-06-04 11:05:01 -05:00
James Cammarata
609fd2e993
Merge branch 'rax-meta' of https://github.com/sivel/ansible into sivel-rax-meta
2014-06-04 11:02:35 -05:00
James Cammarata
d9df607972
Fix order of merging variables for the combined cache
...
Fixes #7598
2014-06-04 10:50:41 -05:00
tsemerad
d0241f5640
made nested lists diff lengths - caused confusion
...
As a relatively-new user to Ansible, the Nested Loop example made me think it was looping through both lists together (`alice` would go with `clientdb`, `bob` with `employeedb`) and not actually nested. I realize now I was just being stupid, but I feel making the example lists different lengths would prevent such confusion in the future.
2014-06-03 17:45:03 -07:00
James Cammarata
74f20ebf79
Removing cruft leftover from the deprecation of include+with_items
...
Also cleaning up integration tests that had checks for the empty item
attribute in certain results.
Fixes #7535
2014-06-03 13:33:26 -05:00
evanccopengeo
fac9a64d23
fixing problem where ansible would error out because Amazon was saying the group didnt exist yet (needed to wait a few more seconds for amazon to propagate correctly)
2014-06-03 14:25:48 -04:00
James Cammarata
2f7e720b90
Merge branch 'kilburn-fix-7596' into devel
2014-06-03 11:27:32 -05:00
James Cammarata
0fa5100a2c
Merge branch 'fix-7596' of https://github.com/kilburn/ansible into kilburn-fix-7596
2014-06-03 10:26:25 -05:00
James Cammarata
1b5f2d47bb
Merge pull request #7638 from yanc0/primary_group_doc_user_example
...
Add primary group in the first user module doc example
2014-06-03 10:10:55 -05:00
James Cammarata
f1afc107b2
Merge pull request #7635 from josef-spak/mysql-replication-typo
...
Fix typo in CHANGE MASTER TO syntax
2014-06-03 10:10:04 -05:00
James Cammarata
832d6c2f3b
Merge pull request #7632 from cdwertmann/patch-2
...
Don't use deprecated BaseException.message in keystone_user
2014-06-03 10:08:15 -05:00
James Cammarata
849b0f87ce
Fix error when using os.getlogin() without a tty
2014-06-03 09:36:19 -05:00
Yann Coleu
b5ea9e0655
Add primary group in the first user module doc example
2014-06-02 14:32:52 +02:00
Matt Martz
04cd7c233b
Allow search_regex to be used in wait_for with port
2014-06-02 07:17:01 -05:00
Josef Špak
2d402ab5ca
Fix typo in CHANGE MASTER TO syntax
2014-06-02 13:42:55 +02:00
Christoph Dwertmann
5cab159bda
Don't use deprecated BaseException.message in keystone_user
...
fixes error "failed to parse: <attribute 'message' of 'exceptions.BaseException' objects>
TypeError: <attribute 'message' of 'exceptions.BaseException' objects> is not JSON serializable"
2014-06-02 15:11:53 +10:00
Brian Coca
ce8c8ab146
now unique actually works, all operations also now use it to return
...
unique lists.
2014-06-01 16:32:48 -04:00
Matt Martz
7dd5b731d2
Mention that user_data can be a file path or a string
2014-06-01 14:47:01 -05:00
Matt Martz
70881d5489
Switch functions over to kwargs to make it easier to manage in the future
2014-06-01 14:45:54 -05:00
Matt Martz
4ca7840861
Add user_data and config_drive support
2014-06-01 14:42:58 -05:00
Matt Martz
84b1f21617
Add rax_meta module
...
Also update rax to mirror meta value normalization from rax_meta
2014-06-01 14:31:26 -05:00
Michael DeHaan
6bc056e012
Merge pull request #6863 from sivel/rax-untouched
...
rax module: Return untouhced servers with exact_count
2014-06-01 15:27:45 -04:00
Michael DeHaan
6cb6f4fa31
Merge pull request #7610 from CorbanR/devel
...
updating ec2_group example, to be more consistent with parameter names
2014-05-30 22:25:17 -04:00
Michael DeHaan
959af67fe3
Merge pull request #7608 from jjneely/lookup-function
...
template.py: Handle purposely raised exceptions in lookup()
2014-05-30 22:24:53 -04:00
CorbanR
42f54238e4
updating example, to be more consistent with parameter names
2014-05-30 15:57:55 -06:00
James Cammarata
b94bde9711
Merge pull request #7609 from jimi-c/issue_7553_su_copy
...
Support checking for su user to atomic_move
2014-05-30 15:46:34 -05:00
Jack Neely
2fda9bc743
template.py: Handle purposely raised exceptions in lookup()
...
If a lookup plugin is run by the lookup() template method it should pass
along any AnsibleError (or child exception classes) rather than just eat
them. These exceptions are purposely raised by the plugin.
2014-05-30 16:41:20 -04:00
Marc Pujol
d0f82e94e8
Ensure there are no duplicates in the merged/intersected lists
2014-05-30 15:47:18 +02:00
Michael DeHaan
7da68bb27c
Merge pull request #7595 from bcoca/doc_include_vars_fix
...
corrected doc example, non existing fact to the 2 it had 'merged'
2014-05-30 09:28:14 -04:00
Marc Pujol
f892cc798c
Merge and intersect lists without using sets.
...
Using sets for these operations is dangerous because sets cannot contain
certain object types (such as lists) and their iteration order is
undefined.
Fixes #7596
2014-05-30 09:07:57 +02:00
Brian Coca
fedc3a4f85
corrected doc example, non existing fact to the 2 it had 'merged'
2014-05-29 22:44:33 -04:00
Sean Whitbeck
796d8db860
Add azure VM provisioning/termination module
2014-05-29 17:29:09 -07:00
Sean Whitbeck
bbfb949bee
Add windows azure inventory plugin
2014-05-29 16:38:09 -07:00