mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
3f17ad62cd
commit 5b9d29e08fba6402efccaa1ca56d834ff58f4b55 Merge: 7286f3a 111561f Author: Michael DeHaan <michael.dehaan@gmail.com> Date: Sun Jul 15 14:34:10 2012 -0400 Merge branch 'devel' of https://github.com/pas256/ansible into pasec2 commit 111561f7829b517fb0b7577a0e2147292bdba58f Author: Peter Sankauskas <pas256@gmail.com> Date: Mon Jul 16 16:13:48 2012 -0700 Reading the config file from the same directory as the script, and fixing typo in security group name commit e63659d04e65c0be3db833038f55a21d2ec511a9 Author: Peter Sankauskas <pas256@gmail.com> Date: Mon Jul 16 10:56:59 2012 -0700 Adding list of variables to documentation commit d0aecf025e23cf26f3df5a253639b0ec425b7223 Author: Peter Sankauskas <pas256@gmail.com> Date: Fri Jul 13 15:35:00 2012 -0700 Finished EC2 external inventory script commit 136b8a50824b7f964f162fad153784899d6dd634 Author: Peter Sankauskas <pas256@gmail.com> Date: Thu Jul 12 18:01:44 2012 -0700 Almost done, just a few more types to deal with commit 09f92052ce2e21a2c216692a20ce1bb03eacc2d9 Author: Peter Sankauskas <pas256@gmail.com> Date: Tue Jul 10 23:43:30 2012 -0700 Adding region options to config, and getting host details happening, but need to figure out complex types commit a940c9b8fb9258043ec4f4a37fef80fdbcfcda7b Author: Peter Sankauskas <pas256@gmail.com> Date: Tue Jul 10 18:06:05 2012 -0700 Converting to a class, commenting methods, reading settings from a config file, and starting to work on the host variables commit 43eb3214a6bdd65d3ef3961183252932b6984004 Author: Peter Sankauskas <pas256@gmail.com> Date: Mon Jul 9 13:11:27 2012 -0700 First pass of the Ansible EC2 inventory script
42 lines
1.7 KiB
INI
42 lines
1.7 KiB
INI
# Ansible EC2 external inventory script settings
|
|
#
|
|
|
|
[ec2]
|
|
|
|
# AWS regions to make calls to. Set this to 'all' to make request to all regions
|
|
# in AWS and merge the results together. Alternatively, set this to a comma
|
|
# separated list of regions. E.g. 'us-east-1,us-west-1,us-west-2'
|
|
regions = all
|
|
|
|
# When generating inventory, Ansible needs to know how to address a server.
|
|
# Each EC2 instance has a lot of variables associated with it. Here is the list:
|
|
# http://docs.pythonboto.org/en/latest/ref/ec2.html#module-boto.ec2.instance
|
|
# Below are 2 variables that are used as the address of a server:
|
|
# - destination_variable
|
|
# - vpc_destination_variable
|
|
|
|
# This is the normal destination variable to use. If you are running Ansible
|
|
# from outside EC2, then 'public_dns_name' makes the most sense. If you are
|
|
# running Ansible from within EC2, then perhaps you want to use the internal
|
|
# address, and should set this to 'private_dns_name'.
|
|
destination_variable = public_dns_name
|
|
|
|
# For server inside a VPC, using DNS names may not make sense. When an instance
|
|
# has 'subnet_id' set, this variable is used. If the subnet is public, setting
|
|
# this to 'ip_address' will return the public IP address. For instances in a
|
|
# private subnet, this should be set to 'private_ip_address', and Ansible must
|
|
# be run from with EC2.
|
|
vpc_destination_variable = ip_address
|
|
|
|
# API calls to EC2 are slow. For this reason, we cache the results of an API
|
|
# call. Set this to the path you want cache files to be written to. Two files
|
|
# will be written to this directory:
|
|
# - ansible-ec2.cache
|
|
# - ansible-ec2.index
|
|
cache_path = /tmp
|
|
|
|
# The number of seconds a cache file is considered valid. After this many
|
|
# seconds, a new API call will be made, and the cache file will be updated.
|
|
cache_max_age = 300
|
|
|
|
|