Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. # Ansible EC2 external inventory script settings
  2. #
  3.  
  4. [ec2]
  5.  
  6. # to talk to a private eucalyptus instance uncomment these lines
  7. # and edit edit eucalyptus_host to be the host name of your cloud controller
  8. #eucalyptus = True
  9. #eucalyptus_host = clc.cloud.domain.org
  10.  
  11. # AWS regions to make calls to. Set this to 'all' to make request to all regions
  12. # in AWS and merge the results together. Alternatively, set this to a comma
  13. # separated list of regions. E.g. 'us-east-1,us-west-1,us-west-2'
  14. regions = all
  15. regions_exclude = us-gov-west-1,cn-north-1
  16.  
  17. # When generating inventory, Ansible needs to know how to address a server.
  18. # Each EC2 instance has a lot of variables associated with it. Here is the list:
  19. # http://docs.pythonboto.org/en/latest/ref/ec2.html#module-boto.ec2.instance
  20. # Below are 2 variables that are used as the address of a server:
  21. # - destination_variable
  22. # - vpc_destination_variable
  23.  
  24. # This is the normal destination variable to use. If you are running Ansible
  25. # from outside EC2, then 'public_dns_name' makes the most sense. If you are
  26. # running Ansible from within EC2, then perhaps you want to use the internal
  27. # address, and should set this to 'private_dns_name'.
  28. destination_variable = public_dns_name
  29.  
  30. # For server inside a VPC, using DNS names may not make sense. When an instance
  31. # has 'subnet_id' set, this variable is used. If the subnet is public, setting
  32. # this to 'ip_address' will return the public IP address. For instances in a
  33. # private subnet, this should be set to 'private_ip_address', and Ansible must
  34. # be run from with EC2.
  35. vpc_destination_variable = ip_address
  36.  
  37. route53 = False
  38.  
  39. # API calls to EC2 are slow. For this reason, we cache the results of an API
  40. # call. Set this to the path you want cache files to be written to. Two files
  41. # will be written to this directory:
  42. # - ansible-ec2.cache
  43. # - ansible-ec2.index
  44. cache_path = /tmp
  45.  
  46. # The number of seconds a cache file is considered valid. After this many
  47. # seconds, a new API call will be made, and the cache file will be updated.
  48. cache_max_age = 15
  49. dynamodb_cache_max_age = 600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement