Last active
August 29, 2015 14:10
-
-
Save johanek/459fa02df48511566a26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import salt.config | |
import salt.loader | |
import salt.utils | |
__opts__ = salt.config.minion_config('/etc/salt/minion') | |
__salt__ = salt.loader.minion_mods(__opts__) | |
statemods = salt.loader.states(__opts__, __salt__) | |
print sorted(list(statemods.keys())) | |
>>> ['alias.absent', 'alias.present', 'alternatives.auto', 'alternatives.install', 'alternatives.remove', 'alternatives.set', 'apache.configfile', 'archive.closing', 'archive.extracted', 'at.absent', 'at.present', 'blockdev.formatted', 'blockdev.tuned', 'boto_asg.absent', 'boto_asg.present', 'boto_cloudwatch_alarm.absent', 'boto_cloudwatch_alarm.present', 'boto_elasticache.absent', 'boto_elasticache.present', 'boto_elb.absent', 'boto_elb.present', 'boto_iam_role.absent', 'boto_iam_role.present', 'boto_lc.absent', 'boto_lc.present', 'boto_route53.absent', 'boto_route53.present', 'boto_secgroup.absent', 'boto_secgroup.present', 'boto_sqs.absent', 'boto_sqs.present', 'buildout.installed', 'cloud.absent', 'cloud.present', 'cloud.profile', 'cloud.volume_absent', 'cloud.volume_attached', 'cloud.volume_detached', 'cloud.volume_present', 'cmd.call', 'cmd.mod_run_check', 'cmd.mod_watch', 'cmd.run', 'cmd.script', 'cmd.wait', 'cmd.wait_call', 'cmd.wait_script', 'cmd.watch', 'composer.installed', 'cron.absent', 'cron.env_absent', 'cron.env_present', 'cron.file', 'cron.present', 'debconfmod.set', 'debconfmod.set_file', 'disk.status', 'environ.setenv', 'eselect.set', 'event.fire_master', 'event.mod_watch', 'event.send', 'event.wait', 'file.absent', 'file.accumulated', 'file.append', 'file.blockreplace', 'file.comment', 'file.copy', 'file.directory', 'file.exists', 'file.managed', 'file.missing', 'file.mknod', 'file.mod_run_check_cmd', 'file.patch', 'file.prepend', 'file.recurse', 'file.rename', 'file.replace', 'file.sed', 'file.serialize', 'file.symlink', 'file.touch', 'file.uncomment', 'gem.installed', 'gem.removed', 'git.config', 'git.latest', 'git.mod_run_check', 'git.present', 'gnomedesktop.desktop_interface', 'gnomedesktop.desktop_lockdown', 'gnomedesktop.wm_preferences', 'grains.absent', 'grains.append', 'grains.list_absent', 'grains.list_present', 'grains.present', 'group.absent', 'group.present', 'host.absent', 'host.present', 'incron.absent', 'incron.present', 'influxdb_database.absent', 'influxdb_database.present', 'influxdb_user.absent', 'influxdb_user.present', 'ini.options_absent', 'ini.options_present', 'ini.sections_absent', 'ini.sections_present', 'keyboard.system', 'keyboard.xorg', 'kmod.absent', 'kmod.present', 'layman.absent', 'layman.present', 'libvirt.keys', 'locale.present', 'locale.system', 'lxc.absent', 'lxc.cloned', 'lxc.created', 'lxc.edited_conf', 'lxc.set_pass', 'lxc.started', 'lxc.stopped', 'makeconf.absent', 'makeconf.present', 'mdadm.absent', 'mdadm.present', 'modjk.worker_activated', 'modjk.worker_disabled', 'modjk.worker_recover', 'modjk.worker_stopped', 'modjk_worker.activate', 'modjk_worker.disable', 'modjk_worker.stop', 'module.mod_watch', 'module.run', 'module.wait', 'module.watch', 'mongodb_database.absent', 'mount.mod_watch', 'mount.mounted', 'mount.swap', 'mount.unmounted', 'openstack_config.absent', 'openstack_config.present', 'pip.installed', 'pip.removed', 'pkgng.update_packaging_site', 'postgres_database.absent', 'postgres_database.present', 'postgres_extension.absent', 'postgres_extension.present', 'postgres_group.absent', 'postgres_group.present', 'postgres_user.absent', 'postgres_user.present', 'powerpath.license_absent', 'powerpath.license_present', 'process.absent', 'pyenv.absent', 'pyenv.install_pyenv', 'pyenv.installed', 'quota.mode', 'rbenv.absent', 'rbenv.install_rbenv', 'rbenv.installed', 'rvm.gemset_present', 'rvm.installed', 'salt.function', 'salt.state', 'salt.wait_for_event', 'schedule.absent', 'schedule.present', 'serverdensity_device.monitored', 'service.dead', 'service.disabled', 'service.enabled', 'service.mod_watch', 'service.running', 'smtp.send_msg', 'ssh_auth.absent', 'ssh_auth.present', 'ssh_known_hosts.absent', 'ssh_known_hosts.present', 'stateconf.context', 'stateconf.set', 'status.loadavg', 'supervisord.dead', 'supervisord.mod_watch', 'supervisord.running', 'svn.dirty', 'svn.export', 'svn.latest', 'test.configurable_test_state', 'test.fail_with_changes', 'test.fail_without_changes', 'test.mod_watch', 'test.succeed_with_changes', 'test.succeed_without_changes', 'timezone.system', 'user.absent', 'user.present', 'virtualenv.manage', 'virtualenv.managed', 'webutil.user_exists'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment