Toshio Kuratomi
056f646bda
Merge pull request #10681 from dorianpula/test_requirements_for_v2
...
Add test requirements for working with v2.
2015-04-13 13:42:23 -07:00
Toshio Kuratomi
7133d6361f
Merge pull request #10691 from ianzd/python3
...
Change how we're calling StringIO
2015-04-13 13:36:22 -07:00
Toshio Kuratomi
5dce745868
Merge pull request #10690 from momandine/print_function
...
Print function
2015-04-13 13:35:04 -07:00
Ian Dotson
d85f97ccfd
Change how we're calling StringIO since we're now importing the class rather than a module.
2015-04-13 16:31:16 -04:00
Amandine Lee
683c2913c5
Use print function
2015-04-13 13:28:27 -07:00
Amandine Lee
3d2a056ad4
Import futures including print
2015-04-13 13:28:01 -07:00
Toshio Kuratomi
b0479c425b
Merge pull request #10688 from ianzd/devel
...
Import StringIO from six in a couple more places.
2015-04-13 13:05:36 -07:00
ian
3bb7b0eef3
Import StringIO from six in a couple more places.
2015-04-13 16:03:02 -04:00
Toshio Kuratomi
3a8088fe30
_available_vars in v1 == _available_variables in v2
2015-04-13 12:58:21 -07:00
ian
1bdf0bb0d6
Several more changes to suport python3 syntax.
2015-04-13 15:37:25 -04:00
Dorian Pula
3504f1cad9
Add test requirements for working with v2.
2015-04-13 13:44:58 -04:00
Toshio Kuratomi
a444a7f363
Merge pull request #10680 from ianzd/devel
...
Change exceptions to python3 syntax.
2015-04-13 09:43:02 -07:00
Dorian Pula
b407dd8b58
Add setup.py for v2 to allow for pip editable installs.
2015-04-13 13:34:48 -04:00
ian
6747f82547
Change exceptions to python3 syntax.
2015-04-13 12:35:20 -04:00
Dorian Pula
b193d327b6
Fix re import failure in templates module when running unit tests.
2015-04-13 12:17:07 -04:00
Feanil Patel
0abcebf1e4
Don't convert numbers and booleans to strings.
...
Before this change if a variable was of type int or bool and the variable was referenced
by another variable, the type would change to string.
eg. defaults/main.yml
```
PORT: 4567
OTHER_CONFIG:
secret1: "so_secret"
secret2: "even_more_secret"
CONFIG:
hostname: "some_hostname"
port: "{{ PORT }}"
secrets: "{{ OTHER_CONFIG }}"
```
If you output `CONFIG` to json or yaml, the port would get represented in the output as a
string instead of as a number, but secrets would get represented as a dictionary. This is
a mis-match in behaviour where some "types" are retained and others are not. This change
should fix the issue.
Update template test to also test var retainment.
Make the template changes in v2.
Update to only short-circuit for booleans and numbers.
Added an entry to the changelog.
2015-04-11 12:03:42 -04:00
Toshio Kuratomi
2af6314f57
Comment to clarify why we add one to the line and column recording
2015-04-10 04:09:50 -07:00
Brian Coca
3c9890a358
now in v2 everything passes a single passwords hash
2015-04-08 03:17:32 -04:00
James Cammarata
7076298dc1
Adding FIXME note to playbook executor code regarding password params
2015-04-06 22:27:14 -05:00
Brian Coca
d732c94ac2
a bunch of updates to connection info and related, to pass down passwords
...
also now options populate required fields in required order allowing play to override
added capture of debug in action plugins when stdout is not json
2015-04-06 22:35:02 -04:00
James Cammarata
e82ba723e2
Fixing multiple v2 bugs
2015-04-05 01:07:47 -05:00
Brian Coca
4bc79a746a
more fine tunnign on verbosity
2015-04-04 16:26:05 -04:00
Brian Coca
b1e6aaa790
implemented verbosity, added 5th level and now can see how many plays per playbooko if -vvvvv
2015-04-04 15:54:54 -04:00
Brian Coca
5531b84360
moved ad-hoc to use display
2015-04-04 15:21:42 -04:00
Brian Coca
af97e732a0
updated ansible-playbook to use display, fixed issues breaking display class
2015-04-04 15:14:40 -04:00
Brian Coca
e6e69c0894
finished implementing list-hosts, started adding list-tasks/list-tags
...
but getting just task names and have to adjust for having blocks.
2015-04-04 10:25:55 -04:00
Brian Coca
2eb2a41d05
renamed get_entries to get_plays
2015-04-04 10:24:03 -04:00
Toshio Kuratomi
349ecf6efe
Add a vault test to data_loader test and some additional yaml tests to parsing/yaml/test_loader
2015-04-03 11:39:56 -07:00
Brian Coca
3c6fdebfe3
made listhosts play output name more consistent internally
2015-04-03 13:49:00 -04:00
Brian Coca
a811c8841e
now listhosts shows the same info as v1
2015-04-03 13:42:05 -04:00
James Cammarata
41d9bfde07
Moving the Display() instantiation outside of v2 classes
2015-04-03 12:17:01 -05:00
Brian Coca
ada86dafaf
added listhosts draft
...
fixed assert from list to new yaml ansible object
taskqueue is now None when just listing
2015-04-03 13:02:42 -04:00
Brian Coca
e719bf765d
switched to use cross platform os.sep, added diff output to copy
2015-04-03 09:20:19 -04:00
Brian Coca
20b4492704
started implementing 'list options'
2015-04-03 04:51:16 -04:00
Brian Coca
2ade17e2f5
v2 changed empty inventory to warning that only localhost is available
2015-04-03 04:50:44 -04:00
Brian Coca
0f8bc038ec
changed to use display as utils.warning doesnt exist in v2
2015-04-03 00:25:09 -04:00
Brian Coca
25f071b64c
fixed called to find plugin, transport is not needed as suffixes are passed
2015-04-03 00:01:32 -04:00
Brian Coca
7a81167b06
brought v2 find plugins up 2 date with v1, also added exception handling for whne there is a permissions issue
2015-04-02 23:59:48 -04:00
James Cammarata
469a1250b6
Moving new patch action plugin over to v2
2015-04-02 16:22:07 -05:00
Brian Coca
ee1af1b14e
Merge pull request #10559 from bcoca/become_constants_fix
...
removed folding sudo/su to become logic from constants
2015-04-02 15:51:58 -04:00
Toshio Kuratomi
5808b68d35
Update module pointers
2015-04-02 12:41:30 -07:00
Toshio Kuratomi
2cddb093f5
Add AnsibleList for keeping track of line numbers in lists parsed from yaml
2015-04-02 12:37:02 -07:00
Toshio Kuratomi
369bf0d214
No longer need AnsibleComposer
2015-04-02 12:35:50 -07:00
Toshio Kuratomi
d277c6b821
Few more py3 cleanups
2015-04-02 11:41:18 -07:00
Toshio Kuratomi
ac6b7045db
A little py3 compat, side effect of making this work under profile
2015-04-02 11:41:13 -07:00
Toshio Kuratomi
bfae708bbf
Port v2 to the PyYAML C extension
2015-04-02 11:21:55 -07:00
James Cammarata
811a906332
Fixing the synchronize action plugin for v2
2015-04-02 11:54:45 -05:00
James Cammarata
34aba2dd9a
Fixing dupe option for -u in v2
2015-04-02 11:26:42 -05:00
James Cammarata
0603b9c62c
Merge branch 'v2_fixing' into devel
...
Conflicts:
v2/ansible/playbook/helpers.py
2015-04-02 01:25:53 -05:00
James Cammarata
785c0c0c8c
V2 fixing bugs
2015-04-02 01:19:21 -05:00