1# Ansible Packet.net external inventory script settings 2# 3 4[packet] 5 6# Packet projects to get info for. Set this to 'all' to get info for all 7# projects in Packet and merge the results together. Alternatively, set 8# this to a comma separated list of projects. E.g. 'project-1,project-3,project-4' 9projects = all 10projects_exclude = 11 12# By default, packet devices in all state are returned. Specify 13# packet device states to return as a comma-separated list. 14# device_states = active, inactive, queued, provisioning 15 16# items per page to retrieve from packet api at a time 17items_per_page = 999 18 19# API calls to Packet are costly. For this reason, we cache the results of an API 20# call. Set this to the path you want cache files to be written to. Two files 21# will be written to this directory: 22# - ansible-packet.cache 23# - ansible-packet.index 24cache_path = ~/.ansible/tmp 25 26# The number of seconds a cache file is considered valid. After this many 27# seconds, a new API call will be made, and the cache file will be updated. 28# To disable the cache, set this value to 0 29cache_max_age = 300 30 31# Organize groups into a nested/hierarchy instead of a flat namespace. 32nested_groups = False 33 34# Replace - tags when creating groups to avoid issues with ansible 35replace_dash_in_groups = True 36 37# The packet inventory output can become very large. To manage its size, 38# configure which groups should be created. 39group_by_device_id = True 40group_by_hostname = True 41group_by_facility = True 42group_by_project = True 43group_by_operating_system = True 44group_by_plan_type = True 45group_by_tags = True 46group_by_tag_none = True 47 48# If you only want to include hosts that match a certain regular expression 49# pattern_include = staging-* 50 51# If you want to exclude any hosts that match a certain regular expression 52# pattern_exclude = staging-* 53 54