# Ansible ServiceNow external inventory script settings [defaults] # Specify the number of seconds to use the inventory cache before it is # considered stale. If not defined, defaults to 0 seconds. #cache_max_age = 3600 # Specify the directory used for storing the inventory cache. If not defined, # caching will be disabled. #cache_dir = .cache/ansible [auth] # The ServiceNow instance URI. The URI should be the fully-qualified domain name, e.g. 'your-instance.servicenow.com'. # This setting may also be defined via the SN_INSTANCE environment variable. instance = myinstance.service-now.com # The ServiceNow instance user name. The user acount should have enough rights to read the cmdb_ci_server table. # This setting may also be defined with the SN_USERNAME environment variable. user = iruser # The ServiceNow instance user password. # This setting may also be defined with the SN_PASSWORD environment variable. password = icanhasaccess [config] # The ServiceNow table to query (e.g. cmdb_ci_server, cmdb_ci_netgear, cmdb_ci_win_server, etc.). #table = cmdb_ci_server # NB: Do not use quotes or spaces in config parameter values. # Comma seperated string providing additional table columns to use as groups. Groups can overlap with fields. #groups = manufacturer,os # Comma seperated string providing additional table columns to add as host vars to each inventory host. #fields = manufacturer,os,os_version # Comma seperated string providing ability to define selection preference order # This setting will default to 'host_name,fqdn,ip_address' if unset. #selection_order = host_name,fqdn,ip_address # Filter results with sysparm_query encoded query string syntax. # # References: https://docs.servicenow.com/bundle/newyork-platform-user-interface/page/use/using-lists/task/t_GenEncodQueryStringFilter.html#t_GenEncodQueryStringFilter # https://docs.servicenow.com/bundle/newyork-platform-user-interface/page/use/common-ui-elements/reference/r_OpAvailableFiltersQueries.html #filter_results = operational_status=1^fqdnENDSWITH.somedomain.com^manufacturerSTARTSWITHAcme # Proxy configuration # This setting may also be defined with the SN_PROXY environment variable. #proxy = http://myproxy.mydomain.com:8080