我是SALT新手,我的要求是以编程方式将策略集更新为多个系统。那么我知道SALT可以完成我的任务,我查阅了文档salt.modules.win_lgpo。但我不知道如何在本地计算机上执行它?是否有任何先决条件来执行win\u lgpo模块。我真的很感谢任何帮助或指导
我已经在我的本地系统上尝试过了,我已经在我的系统上安装了SALT。在
C:\salt>salt '*' lgpo.get_policy_info 'Maximum password age' machine
Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased
我想得到上面的策略信息和下面的策略
^{pr2}$我得到以下错误后,一些尝试和错误的尝试从文件
root@hyi01lr0bsaehost92:~# salt-key -L
Accepted Keys:
Win2K_12_R2
Unaccepted Keys:
Rejected Keys:
root@hyi01lr0bsaehost92:~# salt Win2K_12_R2 lgpo.get machine return_full_policy_names=True
Win2K_12_R2:
'lgpo.get' is not available.
root@hyi01lr0bsaehost92:~# salt Win2K_12_R2 test.ping
Win2K_12_R2:
True
root@hyi01lr0bsaehost92:~# salt Win2K_12_R2 secedit.set 'PasswordComplexity' 8
Win2K_12_R2:
'secedit.set' is not available.
root@hyi01lr0bsaehost92:~# salt Win2K_12_R2 secedit.configure section="System Access" setting="MinimumPasswordAge" value="10"
Win2K_12_R2:
'secedit.configure' is not available.
root@hyi01lr0bsaehost92:~# salt Win2K_12_R2 lgpo.get machine return_full_policy_names=True
Win2K_12_R2:
'lgpo.get' is not available.
在我的小兵windows机器上执行后,我遇到了以下错误。盐召——本地saltutil.sync_模块. 还有一个问题,我们是否可以下载模块并安装在像pip这样的机器上?在
C:\salt>salt-call --local saltutil.sync_modules
[INFO ] Loading fresh modules for state activity
[INFO ] Creating module dir 'c:\\salt\\var\\cache\\salt\\minion\\extmods\\modules'
[INFO ] Syncing modules for environment 'base'
[INFO ] Loading cache from salt://_modules, for base)
[INFO ] Caching directory '_modules/' for environment 'base'
local:
目前没有回答
相关问题 更多 >
编程相关推荐