added upgrade state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-07-02 21:38:43 +02:00
parent d1728d5280
commit 1f868d9aa9

30
states/upgrade/init.sls Normal file
View File

@ -0,0 +1,30 @@
---
upgrade_pkg_refresh:
module.run:
- name: pkg.refresh_db
upgrade_pkg_upgrade:
module.run:
- name: pkg.upgrade
upgrade_pkg_upgrade_dist:
module.run:
- name: pkg.upgrade
- dist: true
upgrade_pip_upgrade:
module.run:
- name: pip.install
- pkgs: salt,pip
- upgrade: true
upgrade_rust_upgrade:
module.run:
- name: cmd.run
- cmd: /home/paul/.cargo/bin/rustup update
- runas: paul
upgrade_pkg_autoremove:
module.run:
- name: pkg.autoremove
- dist: true