Skip to main content

A recipe to provide facts about the context a buildout is running in

Project description

Introduction

This package provides information about the host you are running buildout on.

Exposed Parameters

hostname

The hostname of the machine buildout is running on, as returned by socket.gethostname()

fqdn

The fully qualified domain of the machine buildout is running on, as return by socket.getfqdn(). If no fqdn is available, this will be the same as hostname.

interface.X.address

The IP address of the network interface X.

user.name

The name of the account running buildout

user.uid

The uid running buildout. Numerical.

user.gid

The gid running buildout. Numerical.

user.home

The home directory of the user running buildout

vcs.type

The type of checkout that buildout is being run from. Supports Git or SVN, otherwise will be ‘unknown’.

vcs.branch

The branch or that that buildout is being run from. Will be ‘unknown’ for unsupported VCS.

Using facts

This example uses the missingbits echo recipe to print information about the current machine:

[buildout]
parts = echo

[facts]
recipe = isotoma.recipe.facts

[echo]
recipe = missingbits:echo
echo =
    The hostname is ${facts:hostname}
    The fdqn is ${facts:fdqn}
    The main IP address is ${facts:interface.eth0.address}
    The VCS type is ${facts:vcs.type} and branch is ${facts:vcs.branch}
    The user is ${facts:user.name} and their home dir is ${facts:user.home}

Changelog

0.0.3 (2011-08-30)

  • Set user.name, user.home, user.uid and user.gid facts

  • Set vcs.branch and vcs.type even if the cwd isn’t Git or SVN.

0.0.2 (2011-08-22)

  • Add Git branch detection

0.0.1 (2011-08-11)

  • Detect information about vcs

0.0.0 (2011-08-09)

  • Initial version

  • Ability to get fqdn, hostname and ip addresses (by eth name)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isotoma.recipe.facts-0.0.3.zip (8.4 kB view details)

Uploaded Source

File details

Details for the file isotoma.recipe.facts-0.0.3.zip.

File metadata

File hashes

Hashes for isotoma.recipe.facts-0.0.3.zip
Algorithm Hash digest
SHA256 113a6c1899a3c7ab3556ecfd8b14b1b02a4f68a4bcfab81cf3f08b907816f5c8
MD5 b1ac8a9666b6c1e27fa6377a15814201
BLAKE2b-256 c2edacec871aa0f84005caac28b96b58fed2efc161cd0db4ef7f7a0f7ec3eaac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page