Commit graph

86 commits

Author SHA1 Message Date
Pedro Algarvio
f4549113b1
Update pre-commit hook versions 2024-02-29 12:30:49 +00:00
Victor Zhestkov
9c483f5499 Update zyppnotify
Blank line removed
2022-05-24 16:11:08 -04:00
Victor Zhestkov
d4d9d550cb Force zyppnotify to prefer Packages.db than Packages if it exists 2022-05-24 16:11:08 -04:00
Victor Zhestkov
353161ff19 Use Python 3 way for printing 2022-05-24 14:45:53 -04:00
Victor Zhestkov
5eabcd8ee4 Blacken 2022-05-24 14:45:53 -04:00
Victor Zhestkov
dbec882589 Check if dpkgnotify is executable (bsc#1186674) (#376)
It prevents fails on removing salt-minion package
when the dpkg configuration is still active
2022-05-24 14:45:53 -04:00
Ricardo Mateus
75a13bf3f5 Notify beacon for Debian/Ubuntu systems (#347)
Signed-off-by: Ricardo Mateus <rmateus@suse.com>
(cherry picked from commit 33d6baebba94cc7a66d5555de984ca98684157a0)
2022-05-24 14:45:53 -04:00
Gareth J. Greenaway
4b2bce83b8 Deprecating and removing salt-unity. 2021-12-07 16:15:56 -05:00
Pedro Algarvio
6abb43d2df Upgrade to black 21.7b0 2021-08-06 13:09:47 -07:00
Daniel A. Wozniak
d9b50659b2 Pyupgrade and drop six 2021-07-06 09:04:28 -04:00
Shubhendra Singh Chauhan
a112a2479c
Fix: code quality issues (#59385)
* Fixed code quality issues using DeepSource

* Removed redundant call

* Removed unnecessary import alias

* Removed unused imports

* Removed duplicate elements during set declaration

* Delete .deepsource.toml

* Update vmctl.py

* Update vmctl.py

* Update vmctl.py
2021-02-16 12:51:45 -05:00
cmcmarrow
b234fda95b fix pre 2020-09-30 09:37:18 -07:00
cmcmarrow
92e09bfe69 fix pre-commit 2020-09-30 09:37:18 -07:00
Erik Johnson
bb03f4a0ee Update scripts/* to explicitly reference Python 3
Since the master branch no longer supports Python 2, and many distros
still default /usr/bin/python to Python 2, this commit changes the
scripts to explicitly call Python 3.
2020-05-07 16:58:40 -07:00
Blacken Salt
0b2a5613b3
Blacken salt 2020-04-03 13:05:41 -05:00
Pedro Algarvio
f08253bd7e
Move the salt-unity implementation to salt.scripts 2020-02-01 16:51:58 +00:00
Bo Maryniuk
11a94cad12 Remove an empty line 2018-09-13 12:07:43 +02:00
Bo Maryniuk
adb832424d Use SHA256 algorithm for zyppnotify plugin 2018-09-13 12:01:04 +02:00
Bo Maryniuk
27001cf4cc Use SHA256 algorithm for yumnotify plugin 2018-09-13 12:00:55 +02:00
Erik Johnson
3184168365 Use explicit unicode strings + break up salt.utils
This PR is part of what will be an ongoing effort to use explicit
unicode strings in Salt. Because Python 3 does not suport Python 2's raw
unicode string syntax (i.e. `ur'\d+'`), we must use
`salt.utils.locales.sdecode()` to ensure that the raw string is unicode.
However, because of how `salt/utils/__init__.py` has evolved into the
hulking monstrosity it is today, this means importing a large module in
places where it is not needed, which could negatively impact
performance. For this reason, this PR also breaks out some of the
functions from `salt/utils/__init__.py` into new/existing modules under
`salt/utils/`. The long term goal will be that the modules within this
directory do not depend on importing `salt.utils`.

A summary of the changes in this PR is as follows:

* Moves the following functions from `salt.utils` to new locations
  (including a deprecation warning if invoked from `salt.utils`):
  `to_bytes`, `to_str`, `to_unicode`, `str_to_num`, `is_quoted`,
  `dequote`, `is_hex`, `is_bin_str`, `rand_string`,
  `contains_whitespace`, `clean_kwargs`, `invalid_kwargs`, `which`,
  `which_bin`, `path_join`, `shlex_split`, `rand_str`, `is_windows`,
  `is_proxy`, `is_linux`, `is_darwin`, `is_sunos`, `is_smartos`,
  `is_smartos_globalzone`, `is_smartos_zone`, `is_freebsd`, `is_netbsd`,
  `is_openbsd`, `is_aix`
* Moves the functions already deprecated by @rallytime to the bottom of
  `salt/utils/__init__.py` for better organization, so we can keep the
  deprecated ones separate from the ones yet to be deprecated as we
  continue to break up `salt.utils`
* Updates `salt/*.py` and all files under `salt/client/` to use explicit
  unicode string literals.
* Gets rid of implicit imports of `salt.utils` (e.g. `from salt.utils
  import foo` becomes `import salt.utils.foo as foo`).
* Renames the `test.rand_str` function to `test.random_hash` to more
  accurately reflect what it does
* Modifies `salt.utils.stringutils.random()` (née `salt.utils.rand_string()`)
  such that it returns a string matching the passed size. Previously
  this function would get `size` bytes from `os.urandom()`,
  base64-encode it, and return the result, which would in most cases not
  be equal to the passed size.
2017-08-08 13:33:43 -05:00
Pablo Suárez Hernández
4257ba5af9 Adding salt-minion watchdog for sysV systems (rhel6 and sles11) 2017-06-20 17:28:40 +01:00
Bo Maryniuk
a27415c4cc Add YUM plugin
* Add plugin for Yum-Salt integration
* Add configuration for the yumnotify plugin
* Fixes wrong 'enabled' opts for yumnotify plugin
2017-06-20 17:28:39 +01:00
Bo Maryniuk
1c817bb6c9 Add zypp-notify plugin
* Add unit test to the libzypp drift detector plugin
2017-06-20 17:18:31 +01:00
C. R. Oldham
3be90cc9f4 Rescue proxy_auto_tests PR from git rebase hell 2017-05-05 17:04:00 -06:00
Anthony Shaw
e32ba10365
add 2.6 support 2016-07-29 10:00:28 +10:00
Anthony Shaw
bbb5efb308 refactor the code to not use cookiecutter (1) 2016-07-27 09:39:54 +10:00
Anthony Shaw
aacd253c4c
explain what the command does 2016-07-25 13:59:07 +10:00
Anthony Shaw
df2d4f7798
name the arguments and allow description to be set on command line 2016-07-25 13:45:13 +10:00
Anthony Shaw
9dac0c76c7
take args from command line 2016-07-25 10:54:39 +10:00
Anthony Shaw
ee3ea218f8 renamed to extend, read module name and description at prompt 2016-07-25 09:40:02 +10:00
Anthony Shaw
ad77f799df
renamed the quickstart to extend 2016-07-25 09:01:09 +10:00
Anthony Shaw
d3016f0055
ask basic question 2016-07-24 20:59:49 +10:00
Anthony Shaw
c11f2349b1
import cookiecutter if installed and ask a basic question 2016-07-24 20:34:36 +10:00
C. R. Oldham
abdbbb6325 Begin modifying proxy to be called from command line. 2015-08-13 15:22:43 -06:00
rallytime
abfae94e1d Started changing Beryllium references to 2015.8.0 2015-07-08 10:01:03 -06:00
Joseph Hall
8e1bebfc92 Add versionadded 2015-06-23 09:31:21 -06:00
Joseph Hall
4a95b11652 Initial commit of Salt Package Manager 2015-06-23 09:31:21 -06:00
Sergey Kizunov
57fba60eda Make extensionless scripts runable in Windows
Previously, to make these run on Windows, I added the '.py'
extension. For example 'salt-master' => 'salt-master.py'

If this wasn't done, you would get an exception that looks like this
when spawning an addition process:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    File "C:\salt\bin\lib\multiprocessing\forking.py",
    line 380, in main
        prepare(preparation_data)
          File "C:\salt\bin\lib\multiprocessing\forking.py",
          line 489, in prepare
              file, path_name, etc = imp.find_module(main_name, dirs)
              ImportError: No module named salt-master

Instead of adding the '.py' extension, I found another work-around that
seems to avoid the issue. The details are described in the file comments.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-05-15 20:04:55 -05:00
Justin Findlay
8605281629 mv zsh completion to pkg/
fix #19892
2015-02-04 13:50:35 -07:00
Colton Myers
9a89057f83 Merge branch '2014.7' into merge-forward
Conflicts:
	salt/transport/__init__.py
2014-11-13 12:40:24 -07:00
Mathieu Le Marec - Pasquet
dafb765ad6 factorize call 2014-11-11 17:43:05 +01:00
steve
d13c7275a7 show_timeouts, new default 2014-08-14 13:10:52 -04:00
Chris Rebert
177c168a21 Fix numerous typos found via Lintian
Thanks https://github.com/Debian/lintian/tree/master/data/spelling !
2014-08-11 10:46:43 -07:00
Seth House
53bab586f4 Merged salt-api into Salt
Woot!

The conflicts below are intentional because they contained salt-api-isms
that needed to be included into the corresponding Salt files.

Conflicts:
	debian/changelog
	debian/control
	doc/conf.py
	doc/index.rst
	opt_requirements.txt
	salt/config.py
	salt/loader.py
2014-06-18 22:13:56 -06:00
Pedro Algarvio
7bd8b1360f Remove remaining exsel code 2014-05-29 01:32:54 +01:00
Daniel Wallace
8eb99c846b Add zshell completion for salt salt-call and salt-cp
I will do bash completion soonish
2014-05-19 00:41:09 -05:00
Thomas Jackson
963effa0ea rest_tornado
An async implementation of the salt api
2014-04-14 21:12:07 -07:00
Thomas S Hatch
b483ff7323 Add salt-unity script
This script allows all salt commands to be called from a single top level
shell script
2014-02-26 15:15:36 -07:00
Thomas S Hatch
5de4e73d4d Modernize the salt-cloud script 2013-11-08 14:11:27 -07:00
Joseph Hall
62a8e31809 Pointing salt-cloud script to new correct location 2013-11-08 14:09:18 -07:00