Skip to content

Instantly share code, notes, and snippets.

@gbkersey
Last active December 12, 2015 07:48
Show Gist options
  • Save gbkersey/4739234 to your computer and use it in GitHub Desktop.
Save gbkersey/4739234 to your computer and use it in GitHub Desktop.
vars:
"svc_states[smb]" string => "on";
"svc_states[nmb]" string => "on";
"services" slist => getindices("svc_states");
methods:
"any" usebundle => service_startup("$(services)","$(svc_states[$(services)])");
bundle agent service_startup(s,state)
{
# do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment