摘要:
1.Grains的二次开发 在master上添加Grains,且同步给minion。注意:只能从master同步给minion,而不能从master通过syndic同步给minion。 在master的file_roots目录下建_grains,在_grains目录下写grains的py文件,用re 阅读全文
摘要:
1.gradle的默认local仓库路径为:~/.gradle/caches/modules-2/files-2.1 阅读全文
摘要:
配置文件 1.master配置文件 timeout: 5 与minion链接超时时间,生产环境可以配置的长一些如timeout: 30 即超时时间为30s。 2.minion配置文件 多master配置,列表形式。需要所有master文件都是一样的: 1)/etc/salt/pki/master/中 阅读全文
摘要:
1.按照下面文档,手动也激活不了 https://support.huaweicloud.com/intl/zh-cn/my-kualalumpur-1-usermanual-ecs/zh-cn_topic_0043474374.html 原因:KMS主机地址需要换一个ip地址进行注册 处理过程: 阅读全文
摘要:
1.在nexus做salt官方的yum源代理 http://xxxx/repository/gw-yum-proxys 代理https://repo.saltproject.io/salt/py3/ 2.在yum仓库里上传repo文件及salt.sh安装文件 latest.repo 文件 [salt 阅读全文
摘要:
官网教程:https://docs.saltproject.io/en/latest/topics/states/index.html 注意:配置管理表示的是状态,是可以多次运行的,比如执行某个命令如创建目录,如果不添加相关限制参数,那么每次执行都会执行创建这个目录。配置文件即sls文件,以.sls 阅读全文
摘要:
1.报错 error Unexpected console statement no-console百度得知是eslint校验问题处理方法:1)在代码中增加eslint忽略文件(貌似不生效) cat .eslintignore build/*.js src/assets public dist sr 阅读全文
摘要:
1.使salt可以使用配置文件进行配置 配置文件的位置的配置在/etc/salt/master中的file_roots字段,将base的注释打开,重启salt-master生效 # file_roots: # base: # - /srv/salt/ # dev: # - /srv/salt/dev 阅读全文
摘要:
1.nacos日志报错com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: ErrCode:500, ErrMsg:User limit of inotify watches reached 解决:这个错误是由于 Linux 中 阅读全文
摘要:
1.pod报错:unable to ensure pod container exists: failed to create container for [kubepods burstable pod7e45f702-c697-4b39-b34b-db8792445622] : mkdir /sy 阅读全文