forked from saltstack/salt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into develop
* upstream/develop: (35 commits) Typo mine not mind Refactor command construction for a better readibility Revert "Py3 for integration test" Py3 for integration test Match overriden method Immediate shutdown Increase the speed of test suite startup Support remote port forwarding with salt-ssh Esxi dvs (saltstack#34352) suggest a sane default interval need a format without spaces change to use a ctime string network_settings.py: fix documentation Beacon network docs (saltstack#34386) Enable all privileges Handle users that aren't admin Fix runas function for System Account NamespacedDictWrapper: implement human readable representation Be more explicit with salt.utils imports and usage Add salt.utils import to wheel.key.py ...
- Loading branch information
Showing
28 changed files
with
749 additions
and
171 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ beacon modules | |
load | ||
memusage | ||
network_info | ||
network_settings | ||
pkg | ||
proxy_example | ||
ps | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
============================= | ||
salt.beacons.network_settings | ||
============================= | ||
|
||
.. automodule:: salt.beacons.network_settings | ||
:members: |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
''' | ||
The status beacon is intended to send a basic health check event up to the | ||
master, this allows for event driven routines based on presence to be set up. | ||
The intention of this beacon is to add the config options to add monitoring | ||
stats to the health beacon making it a one stop shop for gathering systems | ||
health and status data | ||
.. versionadded:: Carbon | ||
''' | ||
|
||
# Import python libs | ||
from __future__ import absolute_import | ||
import datetime | ||
|
||
|
||
def validate(config): | ||
''' | ||
Validate the the config is a dict | ||
''' | ||
if not isinstance(config, dict): | ||
return False, ('Configuration for status beacon must be a dictionary.') | ||
return True, 'Valid beacon configuration' | ||
|
||
|
||
def beacon(config): | ||
''' | ||
Just say that we are ok! | ||
''' | ||
ctime = datetime.datetime.utcnow().isoformat() | ||
return [{'tag': ctime}] |
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
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
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
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
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
Oops, something went wrong.