Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
6 years ago
Commit
8bc9cdf19a9c25c7da33295d494cb8c2479a20cc
1 parent
f7bdcd73
remove password
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
scripts/tools/qcloud_servless/mysql_master_failover.py
scripts/tools/qcloud_servless/mysql_slave_failover.py
scripts/tools/qcloud_servless/mysql_master_failover.py
View file @
8bc9cdf
...
...
@@ -3,12 +3,13 @@ import requests
from
requests.auth
import
HTTPBasicAuth
import
json
import
time
import
os
# dingding
DING
=
"https://oapi.dingtalk.com/robot/send?access_token=31cf1a526c98862b7945e561c5a0d857a069350dbee0e807074b83b39fa1e1af"
ansible_url
=
"http://ansible.yohops.com/api/v2"
ansible_user
=
"chunhua.zhang"
ansible_password
=
"Zch@2019"
ansible_password
=
os
.
environ
.
get
(
'ansible_password'
)
JENKINS_UPDATE_VAR_URL
=
"http://jenkins.yohops.com/job/yoho-ansible-roles/buildWithParameters"
JENKINS_TOKEN
=
"607f13cd5f7ff5bdf5813f9745d7da49"
...
...
scripts/tools/qcloud_servless/mysql_slave_failover.py
View file @
8bc9cdf
...
...
@@ -3,7 +3,7 @@ import requests
from
requests.auth
import
HTTPBasicAuth
import
json
import
time
import
os
"""
Author: chunhua.zhang@yoho.cn
...
...
@@ -16,7 +16,8 @@ Author: chunhua.zhang@yoho.cn
DING
=
"https://oapi.dingtalk.com/robot/send?access_token=31cf1a526c98862b7945e561c5a0d857a069350dbee0e807074b83b39fa1e1af"
ansible_url
=
"http://ansible.yohops.com/api/v2"
ansible_user
=
"chunhua.zhang"
ansible_password
=
"Zch@2019"
ansible_password
=
os
.
environ
.
get
(
'ansible_password'
)
JENKINS_UPDATE_VAR_URL
=
"http://jenkins.yohops.com/job/yoho-ansible-roles/buildWithParameters"
JENKINS_TOKEN
=
"607f13cd5f7ff5bdf5813f9745d7da49"
...
...
Please
register
or
login
to post a comment