![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维专栏
运维知识
影子浅笑
挺好的
展开
-
salt 常用模块
##先看一个简单的例子:salt: pkg.latest: - name: salt service.running: - names: #多个值,一行一个,且为names,复数 - salt-master - salt-minion - require: - pkg: salt - watch: - file: /etc/salt/minion/etc/salt/minio原创 2020-06-17 16:06:12 · 546 阅读 · 0 评论 -
SaltStack中 Syndic架构
一、salt 架构目前百度还有的知识都是单独master上述架构比较好搭建都按着默认参数配置即可,但是上述弊端主master 挂了之后,影响使用,本次介绍是双master.架构如下:mastersyndicminionsalt-master1sa-syndic1sa-minion1salt-master2sa-syndic2sa-minion2node1\node2node3\node4node5\node6在两个主master 上配置:原创 2020-06-12 10:55:09 · 320 阅读 · 0 评论 -
token 认证
1、python3#python 3.7import timeimport hmacimport hashlibimport base64import urllib.requesttimestamp = int(round(time.time() * 1000))secret = 'this is secret'secret_enc = secret.encode('utf-8')string_to_sign = '{}\n{}'.format(timestamp, secret)s原创 2020-05-20 14:21:20 · 690 阅读 · 0 评论 -
zabbix监控用户密码剩余过期天数
1、前提 开发突然登录不上了设备,查看是密码过期了,所以针对用户密码剩余过期天数做个监控2、例如chage 查看密码剩余过期天数[root@liantong-jtfwq ~]# chage --list root 或 chage -l rootLast password change : Feb 25, 2019 // 上次密码修改的时间Password expires原创 2020-05-20 14:15:48 · 2119 阅读 · 0 评论