Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
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
Railgun
tun
Commits
5206e6d1
Commit
5206e6d1
authored
Feb 08, 2020
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts
parent
9f996970
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
ansible/install.yaml
ansible/install.yaml
+10
-1
ansible/protocols/wg/wg.yaml
ansible/protocols/wg/wg.yaml
+1
-9
ansible/protocols/wgfrp/wgfrp.yaml
ansible/protocols/wgfrp/wgfrp.yaml
+1
-1
ansible/scripts/postup.sh
ansible/scripts/postup.sh
+0
-0
ansible/scripts/predown.sh
ansible/scripts/predown.sh
+0
-0
update.sh
update.sh
+5
-0
No files found.
ansible/install.yaml
View file @
5206e6d1
...
...
@@ -5,7 +5,16 @@
file
:
path
:
/tmp/nextgen
state
:
directory
-
name
:
postup
copy
:
src
:
scripts/postup.sh
dest
:
'
/etc/wireguard/postup.sh'
mode
:
u+x
-
name
:
predown
copy
:
src
:
scripts/predown.sh
dest
:
'
/etc/wireguard/predown.sh'
mode
:
u+x
-
name
:
'
loop
through
list
from
a
variable'
include_tasks
:
'
protocols/{{item.protocol}}/{{item.protocol}}.yaml'
vars
:
...
...
ansible/protocols/wg/wg.yaml
View file @
5206e6d1
-
name
:
conf
template
:
src
:
wg.conf.j2
dest
:
'
/tmp/nextgen/{{conn.name}}.conf'
-
name
:
postup
copy
:
src
:
postup.sh
dest
:
'
/tmp/nextgen/postup.sh'
-
name
:
predown
copy
:
src
:
predown.sh
dest
:
'
/tmp/nextgen/predown.sh'
\ No newline at end of file
dest
:
'
/etc/wireguard/{{conn.name}}.conf'
ansible/protocols/wgfrp/wgfrp.yaml
View file @
5206e6d1
-
name
:
placeholder foo
debug
:
msg
:
'
An
item:
{{params.key}}
'
msg
:
'
wgfrp
'
ansible/
protocols/wg
/postup.sh
→
ansible/
scripts
/postup.sh
100644 → 100755
View file @
5206e6d1
File moved
ansible/
protocols/wg
/predown.sh
→
ansible/
scripts
/predown.sh
100644 → 100755
View file @
5206e6d1
File moved
update.sh
View file @
5206e6d1
#!/usr/bin/env bash
set
-e
echo
"现在会真正去部署了,请务必带 --limit 运行。"
echo
"现在开放测试的节点:south.mycard.moe,yuzurisa.mycard.moe,hk-hkg-alql2.mycard.moe"
read
-p
'确认无误后按回车继续'
mkdir
-p
result
npm run inventory
cd
ansible
||
exit
...
...
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