Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
Forked from rca/net.conf
Created February 11, 2013 08:21
Show Gist options
  • Save inthecloud247/4753226 to your computer and use it in GitHub Desktop.
Save inthecloud247/4753226 to your computer and use it in GitHub Desktop.
addr={{ pillar['shoe']['network'].addr }}
#!py
from somewhere import Network
def run():
# the grains variable is available inside the run() function.
return {
'shoe': {
'mirror': 'http://apt:3142/archive.ubuntu.com/ubuntu',
'network': Network(grains['nodename']),
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment