salt-call state.apply
- Jean-luc KRIKER
Owned by Jean-luc KRIKER
https://docs.saltproject.io/en/latest/ref/cli/salt-call.html
salt-call test.ping | |
test.ping [root@branch1 t128]# salt-call test.ping local: True | |
salt-call state.apply | |
state.apply Expand source
[root@branch1 t128]# salt-call state.apply [WARNING ] top_file_merging_strategy is set to 'merge' and multiple top files were found. Merging order is not deterministic, it may be desirable to either set top_file_merging_strategy to 'same' or use the 'env_order' configuration parameter to specify the merging order. [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Phosphorus". 2048 SHA256:xM0SRXiZuu6XIAuUyj15g2PyAai2QLRfkZFsYxlm1ck 74a6560c-849a-4d03-a9e4-76b2d7a8f867 (RSA) [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Phosphorus". [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Phosphorus". local: ---------- ID: /dev/null Function: file.touch Result: True Comment: Updated times on file /dev/null Started: 11:06:47.454865 Duration: 2.888 ms Changes: ---------- touched: /dev/null ---------- ID: Disable IPSec configuration Function: file.managed Name: /var/lib/128technology/plugins/ipsec/config.json Result: True Comment: onlyif condition is false Started: 11:06:47.458019 Duration: 3352.822 ms Changes: ---------- ID: Stop Mist WAN Assurance Agent Function: service.dead Name: 128T-mist-agent Result: True Comment: The service 128T-mist-agent is already dead Started: 11:06:50.811353 Duration: 59.215 ms Changes: ---------- ID: Stop Mist WAN Assurance Agent Function: file.absent Name: /etc/128technology/system.demon/128T-mist-agent-monitoring.service Result: True Comment: File /etc/128technology/system.demon/128T-mist-agent-monitoring.service is not present Started: 11:06:50.870968 Duration: 2.68 ms Changes: ---------- ID: Stop Mist WAN Path Watcher Function: service.dead Name: 128T-mist-agent-watcher Result: True Comment: The service 128T-mist-agent-watcher is already dead Started: 11:06:50.873846 Duration: 48.802 ms Changes: ---------- ID: Stop Mist WAN Path Watcher Function: file.absent Name: /etc/128technology/system.demon/128T-mist-agent-watcher.service Result: True Comment: File /etc/128technology/system.demon/128T-mist-agent-watcher.service is not present Started: 11:06:50.923033 Duration: 2.66 ms Changes: ---------- ID: fix_rpm_db Function: cmd.run Name: /usr/bin/dcrpm --check-stuck-yum --run-yum-clean Result: True Comment: onlyif condition is true unless condition is true Started: 11:06:50.925902 Duration: 6151.031 ms Changes: ---------- ID: copy_128t-authenticated-alpha.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-alpha.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-alpha.repo is in the correct state Started: 11:06:57.077489 Duration: 24.016 ms Changes: ---------- ID: copy_128t-authenticated-app-data-alpha.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-app-data-alpha.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-app-data-alpha.repo is in the correct state Started: 11:06:57.101719 Duration: 18.002 ms Changes: ---------- ID: copy_128t-authenticated-app-data-beta.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-app-data-beta.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-app-data-beta.repo is in the correct state Started: 11:06:57.119932 Duration: 29.691 ms Changes: ---------- ID: copy_128t-authenticated-app-data-release.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-app-data-release.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-app-data-release.repo is in the correct state Started: 11:06:57.149828 Duration: 27.917 ms Changes: ---------- ID: copy_128t-authenticated-beta.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-beta.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-beta.repo is in the correct state Started: 11:06:57.177980 Duration: 17.896 ms Changes: ---------- ID: copy_128t-authenticated-legacy-release.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-legacy-release.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-legacy-release.repo is in the correct state Started: 11:06:57.196081 Duration: 19.252 ms Changes: ---------- ID: copy_128t-authenticated-plugins-alpha.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-plugins-alpha.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-plugins-alpha.repo is in the correct state Started: 11:06:57.215548 Duration: 50.462 ms Changes: ---------- ID: copy_128t-authenticated-plugins-beta.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-plugins-beta.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-plugins-beta.repo is in the correct state Started: 11:06:57.266316 Duration: 26.538 ms Changes: ---------- ID: copy_128t-authenticated-plugins-release.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-plugins-release.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-plugins-release.repo is in the correct state Started: 11:06:57.293097 Duration: 22.576 ms Changes: ---------- ID: copy_128t-authenticated-prealpha.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-prealpha.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-prealpha.repo is in the correct state Started: 11:06:57.315934 Duration: 19.022 ms Changes: ---------- ID: copy_128t-authenticated-release.repo Function: file.managed Name: /etc/yum.repos.d/128t-authenticated-release.repo Result: True Comment: File /etc/yum.repos.d/128t-authenticated-release.repo is in the correct state Started: 11:06:57.335197 Duration: 19.487 ms Changes: ---------- ID: copy_GPG-RPM-KEY-128T-RELEASE Function: file.managed Name: /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE Result: True Comment: File /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE is in the correct state Started: 11:06:57.354892 Duration: 25.818 ms Changes: ---------- ID: copy_GPG-RPM-KEY-128T-RELEASE-LEGACY Function: file.managed Name: /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-LEGACY Result: True Comment: File /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-LEGACY is in the correct state Started: 11:06:57.380918 Duration: 28.099 ms Changes: ---------- ID: copy_GPG-RPM-KEY-128T-RELEASE-PRELEGACY Function: file.managed Name: /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-PRELEGACY Result: True Comment: File /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-PRELEGACY is in the correct state Started: 11:06:57.409322 Duration: 17.861 ms Changes: ---------- ID: dnf_clean Function: cmd.run Name: dnf clean all Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:06:57.441562 Duration: 0.006 ms Changes: ---------- ID: import_GPG-RPM-KEY-128T-RELEASE Function: cmd.run Name: rpm --import /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:06:57.442374 Duration: 0.004 ms Changes: ---------- ID: import_GPG-RPM-KEY-128T-RELEASE-LEGACY Function: cmd.run Name: rpm --import /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-LEGACY Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:06:57.443120 Duration: 0.004 ms Changes: ---------- ID: import_GPG-RPM-KEY-128T-RELEASE-PRELEGACY Function: cmd.run Name: rpm --import /etc/pki/install128t/GPG-RPM-KEY-128T-RELEASE-PRELEGACY Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:06:57.443922 Duration: 0.004 ms Changes: ---------- ID: enable_128t Function: service.enabled Name: 128T Result: True Comment: Service 128T is already enabled, and is in the desired state Started: 11:06:57.444009 Duration: 162.882 ms Changes: ---------- ID: remove_centos_release_yum4 Function: t128_pkg_overrides.prefer_dnf Result: True Comment: Set preferred package manager to dnf Started: 11:06:57.607670 Duration: 2.726 ms Changes: ---------- pkg_manager: ---------- new: dnf old: yum ---------- ID: remove_centos_release_yum4 Function: pkg.removed Name: centos-release-yum4 Result: True Comment: All specified packages are already absent Started: 11:06:57.640067 Duration: 1395.13 ms Changes: ---------- ID: remove_centos_release_yum4 Function: pkgrepo.absent Name: centos-yum4 Result: True Comment: Package repo centos-yum4 is absent Started: 11:06:59.035593 Duration: 35.885 ms Changes: ---------- ID: Ensure pdc ssh key is synced Function: grains.present Name: pdc_key_location Result: True Comment: Grain is already set Started: 11:06:59.071683 Duration: 2.179 ms Changes: ---------- ID: Ensure pdc ssh key is synced Function: file.absent Name: /etc/pki/128technology/ssh Result: True Comment: File /etc/pki/128technology/ssh is not present Started: 11:06:59.074087 Duration: 2.004 ms Changes: ---------- ID: Ensure pdc ssh key is synced Function: module.run Name: ssh_key.get_pdc_public_key Result: True Comment: Module function ssh_key.get_pdc_public_key executed Started: 11:06:59.076360 Duration: 80632.684 ms Changes: ---------- ret: None ---------- ID: reverse-ssh_conductor1_log-retrieval Function: service.dead Result: True Comment: The named service reverse-ssh_conductor1_log-retrieval is not available Started: 11:08:19.709805 Duration: 20.116 ms Changes: ---------- ID: reverse-ssh_conductor1_log-retrieval_unit Function: file.absent Name: /etc/systemd/system/reverse-ssh_conductor1_log-retrieval.service Result: True Comment: File /etc/systemd/system/reverse-ssh_conductor1_log-retrieval.service is not present Started: 11:08:19.730411 Duration: 3.03 ms Changes: ---------- ID: remove-debug-conductor1_log-retrieval Function: file.replace Name: /var/lib/128technology/services.txt Result: True Comment: No changes needed to be made Started: 11:08:19.733682 Duration: 9.971 ms Changes: ---------- ID: reverse-ssh_conductor1_internal_unit Function: file.managed Name: /etc/systemd/system/reverse-ssh_conductor1_internal.service Result: True Comment: File /etc/systemd/system/reverse-ssh_conductor1_internal.service is in the correct state Started: 11:08:19.743891 Duration: 62.665 ms Changes: ---------- ID: reload_on_reverse-ssh_conductor1_internal_service_unit_changes Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:19.808657 Duration: 0.006 ms Changes: ---------- ID: restart_on_reverse-ssh_conductor1_internal_service_unit_changes Function: module.run Name: service.restart Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:19.809600 Duration: 0.005 ms Changes: ---------- ID: reverse-ssh_conductor1_internal Function: t128_service.started Result: True Comment: The service reverse-ssh_conductor1_internal is already running Started: 11:08:19.809715 Duration: 43.034 ms Changes: ---------- ID: remove-debug-conductor1_internal Function: file.replace Name: /var/lib/128technology/services.txt Result: True Comment: No changes needed to be made Started: 11:08:19.853437 Duration: 5.99 ms Changes: ---------- ID: reverse-ssh-debug-conductor1_internal Function: file.append Name: /var/lib/128technology/services.txt Result: True Comment: File /var/lib/128technology/services.txt is in correct state Started: 11:08:19.859660 Duration: 9.62 ms Changes: ---------- ID: reverse-ssh_conductor1_login_unit Function: file.managed Name: /etc/systemd/system/reverse-ssh_conductor1_login.service Result: True Comment: File /etc/systemd/system/reverse-ssh_conductor1_login.service is in the correct state Started: 11:08:19.869580 Duration: 41.493 ms Changes: ---------- ID: reload_on_reverse-ssh_conductor1_login_service_unit_changes Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:19.912872 Duration: 0.005 ms Changes: ---------- ID: restart_on_reverse-ssh_conductor1_login_service_unit_changes Function: module.run Name: service.restart Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:19.913730 Duration: 0.004 ms Changes: ---------- ID: reverse-ssh_conductor1_login Function: t128_service.started Result: True Comment: The service reverse-ssh_conductor1_login is already running Started: 11:08:19.913830 Duration: 39.341 ms Changes: ---------- ID: remove-debug-conductor1_login Function: file.replace Name: /var/lib/128technology/services.txt Result: True Comment: No changes needed to be made Started: 11:08:19.953867 Duration: 5.917 ms Changes: ---------- ID: reverse-ssh-debug-conductor1_login Function: file.append Name: /var/lib/128technology/services.txt Result: True Comment: File /var/lib/128technology/services.txt is in correct state Started: 11:08:19.959999 Duration: 5.288 ms Changes: ---------- ID: reverse-ssh_requires_fips_ssh Function: t128_pkg_overrides.prefer_dnf Result: True Comment: Set preferred package manager to dnf Started: 11:08:19.965537 Duration: 2.438 ms Changes: ---------- pkg_manager: ---------- new: dnf old: yum ---------- ID: reverse-ssh_requires_fips_ssh Function: pkg.installed Result: True Comment: All specified packages are already installed Started: 11:08:20.005476 Duration: 93.953 ms Changes: ---------- ID: reverse-ssh@conductor_one Function: service.dead Result: True Comment: The named service reverse-ssh@conductor_one is not available Started: 11:08:20.099716 Duration: 24.79 ms Changes: ---------- ID: reverse-ssh@conductor_two Function: service.dead Result: True Comment: The named service reverse-ssh@conductor_two is not available Started: 11:08:20.125301 Duration: 31.781 ms Changes: ---------- ID: reverse_ssh_runtime_directory Function: file.absent Name: /run/128technology/reverse-ssh Result: True Comment: File /run/128technology/reverse-ssh is not present Started: 11:08:20.158663 Duration: 4.423 ms Changes: ---------- ID: reverse_ssh_template_unit Function: file.absent Name: /etc/systemd/system/reverse-ssh@.service Result: True Comment: File /etc/systemd/system/reverse-ssh@.service is not present Started: 11:08:20.163504 Duration: 2.277 ms Changes: ---------- ID: copy_api_key Function: file.managed Name: /etc/128technology/pki/api/api.key Result: True Comment: File /etc/128technology/pki/api/api.key is in the correct state Started: 11:08:20.165985 Duration: 27.186 ms Changes: ---------- ID: installer_repo_rpm Function: cmd.run Name: dnf install -y https://yum.128technology.com/installer/repo.rpm Result: True Comment: unless condition is true Started: 11:08:20.193668 Duration: 110.187 ms Changes: ---------- ID: installer_must_be_present Function: t128_pkg_overrides.prefer_dnf Result: True Comment: Set preferred package manager to dnf Started: 11:08:20.304419 Duration: 3.998 ms Changes: ---------- pkg_manager: ---------- new: dnf old: yum ---------- ID: installer_must_be_present Function: pkg.installed Name: 128T-installer Result: True Comment: All specified packages are already installed Started: 11:08:20.308835 Duration: 56.972 ms Changes: ---------- ID: squid_forwarding_requires_fips_ssh Function: t128_pkg_overrides.prefer_dnf Result: True Comment: Set preferred package manager to dnf Started: 11:08:20.366029 Duration: 2.667 ms Changes: ---------- pkg_manager: ---------- new: dnf old: yum ---------- ID: squid_forwarding_requires_fips_ssh Function: pkg.installed Result: True Comment: All specified packages are already installed Started: 11:08:20.368921 Duration: 55.124 ms Changes: ---------- ID: squid_forwarding_service_unit Function: file.managed Name: /etc/systemd/system/squid-forwarding.service Result: True Comment: File /etc/systemd/system/squid-forwarding.service is in the correct state Started: 11:08:20.424340 Duration: 84.141 ms Changes: ---------- ID: reload_on_squid_forwarding_service_unit_changes Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.510380 Duration: 0.006 ms Changes: ---------- ID: restart_on_squid_service_unit_changes Function: module.run Name: service.restart Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.511875 Duration: 0.006 ms Changes: ---------- ID: squid_forwarding_service Function: t128_service.started Name: squid-forwarding Result: True Comment: The service squid-forwarding is already running Started: 11:08:20.511987 Duration: 44.666 ms Changes: ---------- ID: yum_config.set_proxy_addresses Function: module.run Result: True Comment: Module function yum_config.set_proxy_addresses executed Started: 11:08:20.557145 Duration: 7.925 ms Changes: ---------- ret: True ---------- ID: squid-forwarding-debug Function: file.append Name: /var/lib/128technology/services.txt Result: True Comment: File /var/lib/128technology/services.txt is in correct state Started: 11:08:20.565413 Duration: 5.144 ms Changes: ---------- ID: http_forwarding_requires_fips_ssh Function: t128_pkg_overrides.prefer_dnf Result: True Comment: Set preferred package manager to dnf Started: 11:08:20.570790 Duration: 2.375 ms Changes: ---------- pkg_manager: ---------- new: dnf old: yum ---------- ID: http_forwarding_requires_fips_ssh Function: pkg.installed Result: True Comment: All specified packages are already installed Started: 11:08:20.573480 Duration: 54.322 ms Changes: ---------- ID: httpd_forwarding_service_unit Function: file.managed Name: /etc/systemd/system/httpd-forwarding@.service Result: True Comment: File /etc/systemd/system/httpd-forwarding@.service is in the correct state Started: 11:08:20.628036 Duration: 42.505 ms Changes: ---------- ID: reload_on_httpd_forwarding_service_unit_changes Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.672558 Duration: 0.007 ms Changes: ---------- ID: httpd_forwarding_conductor_one_env_file Function: file.managed Name: /var/lib/128technology/httpd-forwarding/conductor_one Result: True Comment: File /var/lib/128technology/httpd-forwarding/conductor_one is in the correct state Started: 11:08:20.672669 Duration: 5.452 ms Changes: ---------- ID: restart_on_httpd-forwarding@conductor_one_service_unit_changes Function: module.run Name: service.restart Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.679303 Duration: 0.007 ms Changes: ---------- ID: httpd-forwarding@conductor_one Function: t128_service.started Result: True Comment: The service httpd-forwarding@conductor_one is already running Started: 11:08:20.679416 Duration: 43.946 ms Changes: ---------- ID: httpd-forwarding-debug-1 Function: file.append Name: /var/lib/128technology/services.txt Result: True Comment: File /var/lib/128technology/services.txt is in correct state Started: 11:08:20.723817 Duration: 6.103 ms Changes: ---------- ID: conductor_repo_base_url Function: grains.present Result: True Comment: Grain is already set Started: 11:08:20.730163 Duration: 2.832 ms Changes: ---------- ID: conductor_repo_file Function: file.managed Name: /etc/yum.repos.d/128tech-conductor.repo Result: True Comment: File /etc/yum.repos.d/128tech-conductor.repo is in the correct state Started: 11:08:20.733266 Duration: 33.157 ms Changes: ---------- ID: yum_config.clear_offline_repos Function: module.run Result: True Comment: Module function yum_config.clear_offline_repos executed Started: 11:08:20.766681 Duration: 5.978 ms Changes: ---------- ret: True ---------- ID: remove_aggressive_timer_config Function: file.absent Name: /usr/lib/systemd/system/minion-watchdog.service.d/aggressiveTimerConfig.conf Result: True Comment: File /usr/lib/systemd/system/minion-watchdog.service.d/aggressiveTimerConfig.conf is not present Started: 11:08:20.772863 Duration: 2.119 ms Changes: ---------- ID: reload_on_watchdog_service_config_changes Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.776978 Duration: 0.006 ms Changes: ---------- ID: restart_minion_watchdog_on_config_change Function: module.run Name: service.restart Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.777956 Duration: 0.005 ms Changes: ---------- ID: minion-connector Function: service.dead Result: True Comment: The service minion-connector is already dead Started: 11:08:20.778051 Duration: 48.036 ms Changes: ---------- ID: enabled Function: service.enabled Name: salt-minion Result: True Comment: Service salt-minion is already enabled, and is in the desired state Started: 11:08:20.826634 Duration: 34.107 ms Changes: ---------- ID: modify_minion_config Function: file.serialize Name: /etc/salt/minion Result: True Comment: The file /etc/salt/minion is in the correct state Started: 11:08:20.861187 Duration: 12.727 ms Changes: ---------- ID: set_node_ip_grain Function: grains.present Name: node-ip Result: True Comment: Grain is already set Started: 11:08:20.874133 Duration: 2.615 ms Changes: ---------- ID: remove_include_to_old_minion_config Function: file.replace Name: /etc/salt/minion Result: True Comment: No changes needed to be made Started: 11:08:20.876981 Duration: 5.4 ms Changes: ---------- ID: remove_old_minion_config Function: file.absent Name: /etc/128technology/salt/minion Result: True Comment: File /etc/128technology/salt/minion is not present Started: 11:08:20.882602 Duration: 2.341 ms Changes: ---------- ID: salt_log_rotate Function: file.managed Name: /etc/logrotate.d/salt Result: True Comment: File /etc/logrotate.d/salt is in the correct state Started: 11:08:20.885147 Duration: 6.004 ms Changes: ---------- ID: /usr/lib/systemd/system/salt-minion.service.d/restartAlways.conf Function: file.managed Result: True Comment: File /usr/lib/systemd/system/salt-minion.service.d/restartAlways.conf is in the correct state Started: 11:08:20.891514 Duration: 5.263 ms Changes: ---------- ID: /usr/lib/systemd/system/salt-minion.service.d/dnsTimeout.conf Function: file.managed Result: True Comment: File /usr/lib/systemd/system/salt-minion.service.d/dnsTimeout.conf is in the correct state Started: 11:08:20.896994 Duration: 5.379 ms Changes: ---------- ID: /usr/lib/systemd/system/salt-minion.service.d/minionWatchdog.conf Function: file.managed Result: True Comment: File /usr/lib/systemd/system/salt-minion.service.d/minionWatchdog.conf is in the correct state Started: 11:08:20.902598 Duration: 5.303 ms Changes: ---------- ID: service.systemctl_reload Function: module.run Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.912462 Duration: 0.006 ms Changes: ---------- ID: restart_minion_on_config_change Function: cmd.run Name: salt-call --local service.restart salt-minion Result: True Comment: State was not run because none of the onchanges reqs changed Started: 11:08:20.914970 Duration: 0.005 ms Changes: Summary for local ------------- Succeeded: 91 (changed=9) Failed: 0 ------------- Total states run: 91 Total run time: 93.330 s [root@branch1 t128]# | |
salt-call -l debug state.apply | |
salt-call state.apply saltenv=128T | |
salt-call state.apply saltenv=base | |