Commit Graph

3972 Commits (3f6ddfb676903143805db52bde0643f658a2d718)
 

Author SHA1 Message Date
Maykel Moya 8bd25ee1a4 ec2_group: Request a fresh group object after creation
When a group is created, an egress_rule ALLOW ALL to 0.0.0.0/0 is added
automatically but it's not reflected in the object returned by the AWS API
call. After creation we re-read the group for getting an updated object.
11 years ago
Maykel Moya ad0ca929b5 ec2_group: Auto create missing groups referenced in rules
Suppose a pair of groups, A and B, depending on each other. One solution
for breaking the circular dependency at playbook level:

    - declare group A without dependencies
    - declare group B depending on A
    - declare group A depending on B

This patch breaks the dependency at module level. Whenever a depended-on
group is missing it's first created. This approach requires only two tasks:

    - declare group A depending on B (group B will be auto created)
    - declare group B depending on A

When creating a group EC2 requires you to pass the group description. In
order to fullfil this, rules now accept the `group_desc` param. Note
that group description can't be changed once the group is created so
it's nice to keep descriptions in sync.

Concrete example:

- ec2_group:
    name: mysql-client
    description: MySQL Client
    rules_egress:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-server
        group_desc: MySQL Server

- ec2_group:
    name: mysql-server
    description: MySQL Server
    rules:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-client
11 years ago
Maykel Moya 3231034b6e ec2_group: Deduplicate rule parsing/validation code 11 years ago
Maykel Moya 0240435459 ec2_group: Add support for handling egress rules 11 years ago
jjshoe 2a80987436 assign_public_ip was actually added in 1.5
Checked 1.4.5 and this option doesn't exist. Will check/update/pull docs next.
11 years ago
Steve Smith 5b5af14921 Only unlink the symlink tempfile on error if it was created in the
previous operation.
11 years ago
Michael DeHaan 5e557c6d29 Update cpanm 11 years ago
Brian Coca a395eb3aba fixed issue with tmp file (path can include filename) and added missing
else which made it try to link x2
11 years ago
Brian Coca 4fd957620a now correctly checks absolute path for src= existance for links
also updated docs to be a bit clearer on symlink behaviour
11 years ago
Till Maas 35f9e62422 service module: Properly disable Debian services
Services on Debian need to be disabled with 'disable' instead of 'remove'
to avoid them being enabled again when 'update-rc.d $service defaults' is run,
e.g. as part of a postinst script.
11 years ago
Michael DeHaan ff5560f00c Update comments about redis config. 11 years ago
Michael DeHaan fbb15ad52f Merge branch 'devel' of git://github.com/mleventi/ansible into devel 11 years ago
Michael DeHaan 7f36630dd5 Add capabilities module. 11 years ago
nate@bx.psu.edu 2daee9ed20 Bugfix for xattrless files and the capabilities module. 11 years ago
nate@bx.psu.edu c19e4a7d0b Create a capabilities module for managing Linux kernel capabilities(7) with setcap(8). 11 years ago
Michael DeHaan 4888b9266f Merge pull request #6549 from mattjbray/docker-tty-stdin_open-params
docker: add tty and stdin_open options
11 years ago
Michael DeHaan 319fceb64d add notes about new AWS modules. 11 years ago
Michael DeHaan 65a84667a2 Merge pull request #6540 from Zeekin/devel
Add cloud modules ec2_scaling_policy and ec2_metricalarm
11 years ago
Michael DeHaan 3fde0e3826 Add notes about new notification module. 11 years ago
Michael DeHaan e20d173115 Merge branch 'devel' of git://github.com/tksmd/ansible into devel 11 years ago
Michael DeHaan 62ea445b47 Add note about IRC library default change. 11 years ago
Michael DeHaan 430969781c Merge pull request #5443 from nirvinehh/devel
irc module: Make default irc color none; add color none
11 years ago
James Tanner 69d40b861f Fixes #6582 Re-add regex to ignore untracked files that were never tracked 11 years ago
James Cammarata 2d4315020d Merge pull request #6571 from bcoca/file_fixes_copydir
fixed issue with directory permissions on copy
11 years ago
James Tanner 6c8980c1a4 Fixes #6567 put the git wrapper script in the module temp dir 11 years ago
Brian Coca 402cd11c52 fixed issue with directory permissions on copy #6552 11 years ago
James Tanner 9efcbd8ef2 Fixes #6548 correct issues from rhn_register refactoring 11 years ago
Michael DeHaan d10de23f39 Merge pull request #6565 from fabianfreyer/devel
Fixed bug that occurred when pkgsite not specified
11 years ago
Michael DeHaan ae42f4d4a5 Merge pull request #6564 from joehack3r/devel
Update example to include delete on termination
11 years ago
Michael DeHaan 43440c1034 Merge pull request #6561 from patrickheeney/slack-url-fix
Fix domain name in slack module
11 years ago
Fabian Freyer a061440828 Fixed bug that occurred when pkgsite not specified 11 years ago
joehack3r e4842b5df2 Update example to include delete on termination 11 years ago
James Tanner 12340279c4 Merge pull request #6220 from trevorah/ansible.git
apt_repository: autoinstall python-apt if not available
11 years ago
patrickheeney 72014bce01 Fix domain name in slack module 11 years ago
James Cammarata e12c462d3d Merge branch 'threatgrid-issues/6341' into devel 11 years ago
Michael DeHaan 2556dfb0bc Merge pull request #6544 from ramondelafuente/feature/notification-slack
A module for notifications through the Slack.com platform
11 years ago
Michael DeHaan 8676f55f1d Merge pull request #6556 from andreaskern/patch-1
add param to note example for ssh-keyscan
11 years ago
James Cammarata f46760ef37 Execute commands through accelerate with shell when needed
This fixes an issue related to the new run_command changes, whereby
Popen fails to run a command when an executable is specified + shell=False
and there are multiple positional arguments (see Popen docs for details)
11 years ago
Michael DeHaan d60fb500dc Merge pull request #6554 from vyrak/keep-head-state
homebrew: state=head includes --HEAD
11 years ago
andreaskern 2385b28de5 add param to note example for ssh-keyscan
hostnames in the known hosts file are typically stored as Hashed values, calling 'ssh-keyscan' with '-H' changes to output to the Hashed format so that the known_hosts file looks more consistent
11 years ago
James Cammarata 9f9c077878 Merge branch 'issues/6341' of https://github.com/threatgrid/ansible into threatgrid-issues/6341 11 years ago
James Tanner 4028f55c04 Fixes #6519 Properly handle state=absent in sysctl module 11 years ago
Matt Bray a351f40fff docker: add tty and stdin_open options
Useful for development environments.  Setting these options to true
allows you to `docker attach` to a docker container started with
ansible.
11 years ago
Ramon de la Fuente e1c622030c mandatory silly mistake 11 years ago
Ramon de la Fuente e15af949a8 A module for notifications through the Slack.com platform
This module can send messages through Slack.com, and supports all options
available in the "incoming webhook integration".

- text
- channel
- username
- icon_url / icon_emoji
- link_names
- parse
11 years ago
Zeekin 2afa7c691d Added AWS modules ec2_scaling_policy and ec2_metricalarm for configuring scaling policies for autoscaling groups, and metric alarms. 11 years ago
vyrak bunleang 5549c2cdd0 prevent state from changing from head to installed
allows for --HEAD to be included in brew install command
11 years ago
Michael DeHaan 950c0ebce6 Merge pull request #6529 from sivel/apt-repository-no-pycurl
Remove dependency on pycurl in apt_repository
11 years ago
James Cammarata d60ac967b9 Merge branch 'file_fixes_clean' of https://github.com/bcoca/ansible into bcoca-file_fixes_clean 11 years ago
Matt Martz 427fe86ae7 remove dependency on pycurl from apt_repository by using module_utils/urls.py instead 11 years ago