Skip to content

Instantly share code, notes, and snippets.

@chuyskywalker
Created January 5, 2014 08:00
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 chuyskywalker/8265649 to your computer and use it in GitHub Desktop.
Save chuyskywalker/8265649 to your computer and use it in GitHub Desktop.
goofy:
- cmd.run:
- name: echo hello
[vagrant@vagrant-centos65 ~]$ time sudo salt-call --local state.highstate
[INFO ] Loading fresh modules for state activity
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO ] Syncing modules for environment 'base'
[INFO ] Loading cache from salt://_modules, for base)
[INFO ] Caching directory '_modules/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO ] Syncing states for environment 'base'
[INFO ] Loading cache from salt://_states, for base)
[INFO ] Caching directory '_states/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO ] Syncing grains for environment 'base'
[INFO ] Loading cache from salt://_grains, for base)
[INFO ] Caching directory '_grains/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO ] Syncing renderers for environment 'base'
[INFO ] Loading cache from salt://_renderers, for base)
[INFO ] Caching directory '_renderers/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO ] Syncing returners for environment 'base'
[INFO ] Loading cache from salt://_returners, for base)
[INFO ] Caching directory '_returners/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/outputters'
[INFO ] Syncing outputters for environment 'base'
[INFO ] Loading cache from salt://_outputters, for base)
[INFO ] Caching directory '_outputters/' for environment 'base'
[INFO ] Loading fresh modules for state activity
[INFO ] Executing state cmd.run for echo Hello there
[INFO ] Executing command 'echo Hello there' in directory '/root'
[INFO ] {'pid': 2927, 'retcode': 0, 'stderr': '', 'stdout': 'Hello there'}
local:
----------
State: - cmd
Name: echo Hello there
Function: run
Result: True
Comment: Command "echo Hello there" run
Changes: pid: 2927
retcode: 0
stderr:
stdout: Hello there
Summary
------------
Succeeded: 1
Failed: 0
------------
Total: 1
real 1m1.851s
user 0m0.996s
sys 0m0.226s
base:
'*':
- goofy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment