github.com/ylsGit/go-ethereum@v1.6.5/tests/files/ansible/ec2.ini (about) 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 = us-east-1 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 # To tag instances on EC2 with the resource records that point to them from 38 # Route53, uncomment and set 'route53' to True. 39 route53 = False 40 41 # To exclude RDS instances from the inventory, uncomment and set to False. 42 #rds = False 43 44 # Additionally, you can specify the list of zones to exclude looking up in 45 # 'route53_excluded_zones' as a comma-separated list. 46 # route53_excluded_zones = samplezone1.com, samplezone2.com 47 48 # By default, only EC2 instances in the 'running' state are returned. Set 49 # 'all_instances' to True to return all instances regardless of state. 50 all_instances = False 51 52 # By default, only RDS instances in the 'available' state are returned. Set 53 # 'all_rds_instances' to True return all RDS instances regardless of state. 54 all_rds_instances = False 55 56 # API calls to EC2 are slow. For this reason, we cache the results of an API 57 # call. Set this to the path you want cache files to be written to. Two files 58 # will be written to this directory: 59 # - ansible-ec2.cache 60 # - ansible-ec2.index 61 cache_path = ~/.ansible/tmp 62 63 # The number of seconds a cache file is considered valid. After this many 64 # seconds, a new API call will be made, and the cache file will be updated. 65 # To disable the cache, set this value to 0 66 cache_max_age = 300 67 68 # Organize groups into a nested/hierarchy instead of a flat namespace. 69 nested_groups = False 70 71 # If you only want to include hosts that match a certain regular expression 72 # pattern_include = stage-* 73 74 # If you want to exclude any hosts that match a certain regular expression 75 # pattern_exclude = stage-* 76 77 # Instance filters can be used to control which instances are retrieved for 78 # inventory. For the full list of possible filters, please read the EC2 API 79 # docs: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html#query-DescribeInstances-filters 80 # Filters are key/value pairs separated by '=', to list multiple filters use 81 # a list separated by commas. See examples below. 82 83 # Retrieve only instances with (key=value) env=stage tag 84 # instance_filters = tag:env=stage 85 86 # Retrieve only instances with role=webservers OR role=dbservers tag 87 # instance_filters = tag:role=webservers,tag:role=dbservers 88 89 # Retrieve only t1.micro instances OR instances with tag env=stage 90 # instance_filters = instance-type=t1.micro,tag:env=stage 91 92 # You can use wildcards in filter values also. Below will list instances which 93 # tag Name value matches webservers1* 94 # (ex. webservers15, webservers1a, webservers123 etc) 95 # instance_filters = tag:Name=webservers1*