Page MenuHomePhabricator
Paste P5758

hiera_lookup example
ActivePublic

Authored by hashar on Jul 18 2017, 10:22 PM.
Tags
None
Referenced Files
F8795104: hiera_lookup example
Jul 18 2017, 10:22 PM
Subscribers
None
hashar@deployment-puppetmaster02:/var/lib/git/operations/puppet$ ./utils/hiera_lookup -v --fqdn=deployment-tin.deployment-prep.eqiad.wmflabs realm
DEBUG: 2017-07-18 22:22:24 +0000: Looking up realm
DEBUG: 2017-07-18 22:22:24 +0000: Fetching http://labs-puppetmaster-eqiad.wikimedia.org:8100/v1/deployment-prep/node/deployment-tin.deployment-prep.eqiad.wmflabs
DEBUG: 2017-07-18 22:22:24 +0000: Looking up realm
DEBUG: 2017-07-18 22:22:24 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=ids&titles=Hiera:Hosts/deployment-tin
WARN: 2017-07-18 22:22:24 +0000: Page Hiera:Hosts/deployment-tin is non-existent
DEBUG: 2017-07-18 22:22:24 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&titles=Hiera:Hosts/deployment-tin
DEBUG: 2017-07-18 22:22:24 +0000: Page Hiera:Hosts/deployment-tin is non-existent, setting defaults {}
DEBUG: 2017-07-18 22:22:24 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=ids&titles=Hiera:Deployment-prep/host/deployment-tin
DEBUG: 2017-07-18 22:22:24 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&titles=Hiera:Deployment-prep/host/deployment-tin
DEBUG: 2017-07-18 22:22:24 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=ids&titles=Hiera:Deployment-prep
DEBUG: 2017-07-18 22:22:25 +0000: Fetching https://wikitech.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&titles=Hiera:Deployment-prep
DEBUG: 2017-07-18 22:22:25 +0000: Looking up realm
DEBUG: 2017-07-18 22:22:25 +0000: Loading info from labs/hosts/deployment-tin for realm
DEBUG: 2017-07-18 22:22:25 +0000: The source is: labs/hosts/deployment-tin
DEBUG: 2017-07-18 22:22:25 +0000: Cannot find datafile /var/lib/git/operations/puppet/hieradata/labs/hosts/deployment-tin.yaml, skipping
DEBUG: 2017-07-18 22:22:25 +0000: Searching for realm in
DEBUG: 2017-07-18 22:22:25 +0000: Loading info from labs/deployment-prep/host/deployment-tin for realm
DEBUG: 2017-07-18 22:22:25 +0000: The source is: labs/deployment-prep/host/deployment-tin
DEBUG: 2017-07-18 22:22:25 +0000: Searching for realm in /var/lib/git/operations/puppet/hieradata/labs/deployment-prep/host/deployment-tin.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Loading file /var/lib/git/operations/puppet/hieradata/labs/deployment-prep/host/deployment-tin.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Loading info from labs/deployment-prep/common for realm
DEBUG: 2017-07-18 22:22:25 +0000: The source is: labs/deployment-prep/common
DEBUG: 2017-07-18 22:22:25 +0000: Searching for realm in /var/lib/git/operations/puppet/hieradata/labs/deployment-prep/common.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Loading file /var/lib/git/operations/puppet/hieradata/labs/deployment-prep/common.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Loading info from labs for realm
DEBUG: 2017-07-18 22:22:25 +0000: The source is: labs
DEBUG: 2017-07-18 22:22:25 +0000: Searching for realm in /var/lib/git/operations/puppet/hieradata/labs.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Loading file /var/lib/git/operations/puppet/hieradata/labs.yaml
DEBUG: 2017-07-18 22:22:25 +0000: Found realm in labs
labs
hashar@deployment-puppetmaster02:/var/lib/git/operations/puppet$