Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
mycard-deploy
Commits
100ae516
Commit
100ae516
authored
Apr 07, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
4743394a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
README.md
README.md
+15
-0
inventory.example.yaml
inventory.example.yaml
+8
-3
nextgen-router-install.sh
nextgen-router-install.sh
+1
-0
No files found.
README.md
0 → 100644
View file @
100ae516
# mycard-deploy
MyCard 服务器初始化工具合集
## 如何使用
1.
`git submodule update --init && cd nextgen-router && ./prepare.sh`
1.
复制
`inventory.example.yaml`
到
`inventory.yaml`
,修改配置。
1.
`./init.sh --limit <主机名>`
1.
`ansible <主机名> -m shell -b -a reboot`
1.
**可选。**
如果主机作为路由器,那么
inventory.example.yaml
View file @
100ae516
...
...
@@ -23,14 +23,19 @@ mycard:
reboot
:
true
pip_executable_install
:
pip
registry
:
https://registry.mycard.moe
china_mirror_docker
:
tru
e
china_mirror_pip
:
tru
e
china_mirror_omf
:
tru
e
china_mirror_docker
:
fals
e
china_mirror_pip
:
fals
e
china_mirror_omf
:
fals
e
cpufreq_policy
:
none
vm_agents_status
:
present
customization
:
true
nvidia_driver_version
:
null
cloud_kernel
:
auto
# or enabled / disabled
xanmod
:
false
#railgun: # MyCard 内网机器建议打开这里
# destination: chnroute
# remoteGatewayId: 31
rcloud
:
hosts
:
...
...
nextgen-router-install.sh
View file @
100ae516
#!/bin/bash
ansible-playbook nextgen-router/install.yaml
"
$@
"
ansible-playbook nextgen-router/mcnetwork-install.yaml
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment