Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A CLI front-end the salt-api written in Go.

License

NotificationsYou must be signed in to change notification settings

iamseth/pepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pepper is a small CLI tool written in Go to run Salt commands against the HTTP API. It's very thin and there's almost no logic to the script.

Both PAM and LDAP auth methods are supported.

Installation

go get github.com/iamseth/peppergo install github.com/iamseth/pepper

Usage

NAME:   pepper - pepper<target><function> [ARGUMENTS ...]USAGE:   pepper [global options]command [command options] [arguments...]VERSION:   0.1.0COMMANDS:   help, hShows a list of commands orhelpfor onecommandGLOBAL OPTIONS:   --hostname, -H Salt API hostname. Should include http[s]//. [$SALT_HOST]   --username, -u Salt API username. [$SALT_USER]   --password, -p Salt API password. [$SALT_PASSWORD]   --auth, -a"ldap"Salt authentication method. [$SALT_AUTH]   --help, -hshowhelp   --version, -vprint the version

Examples

pepper -H https://saltmaster -u salt_user -p password -a ldap'*' test.ping

Or, if you set the following environment variables:

$SALT_USER$SALT_HOST$SALT_AUTH$SALT_PASSWORD

you can just do the following:

# Ping all your hostspepper'*' test.ping# Restart Apache on your web serverspepper'web*' cmd.run'service httpd restart'# Run a highstate on your Redis boxespepper'redis*' state.highstate

About

A CLI front-end the salt-api written in Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp