Skip to content

Instantly share code, notes, and snippets.

@silenius
Created June 29, 2015 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silenius/8ddcba01025d9f2a2c44 to your computer and use it in GitHub Desktop.
Save silenius/8ddcba01025d9f2a2c44 to your computer and use it in GitHub Desktop.
jcigar@dev:/usr/local/etc/salt/states/_modules/ > salt sandbox saltutil.sync_modules
sandbox:
- modules.__init__
- modules.bbpf.__init__
jcigar@dev:/usr/local/etc/salt/states/_modules/ > ll
total 8
-rw-r--r-- 1 root wheel 58 Jun 29 11:36 __init__.py
drwxr-xr-x 2 root wheel 512 Jun 29 11:36 bbpf
jcigar@dev:/usr/local/etc/salt/states/_modules/ > cat __init__.py
from __future__ import absolute_import
from . import bbpf
jcigar@dev:/usr/local/etc/salt/states/_modules/ > cd bbpf
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > ll
total 12
-rw-r--r-- 1 root wheel 61 Jun 29 11:36 __init__.py
-rw-r--r-- 1 root wheel 1350 Jun 29 11:15 pgsql.py
-rw-r--r-- 1 root wheel 3792 Jun 29 11:16 webapp.py
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > cat __init__.py
from __future__ import absolute_import
from . import webapp
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > grep 'webapp_config' webapp.py
def webapp_config(name):
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ > salt sandbox bbpf.webapp.webapp_config fada
sandbox:
'bbpf.webapp.webapp_config' is not available.
jcigar@dev:/usr/local/etc/salt/states/_modules/bbpf/ >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment