Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
playbooks
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
nanahira
playbooks
Commits
4ad8c69a
Commit
4ad8c69a
authored
Mar 02, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pter
parent
96c78515
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
57 deletions
+134
-57
pter-old.yml
pter-old.yml
+65
-0
pter.yml
pter.yml
+69
-57
No files found.
pter-old.yml
0 → 100644
View file @
4ad8c69a
---
-
hosts
:
pter
remote_user
:
root
vars
:
pter_release
:
v0.6.12
roles
:
-
name
:
nodejs
vars
:
nodejs_version
:
10
tasks
:
-
name
:
apt
apt
:
update_cache
:
true
state
:
latest
name
:
curl,wget,build-essential,tar,unzip,python,rsync
when
:
ansible_os_family == 'Debian'
-
name
:
yum
yum
:
state
:
latest
update_cache
:
true
name
:
curl,wget,gcc,gcc-c++,make,tar,unzip,python,rsync
when
:
ansible_os_family == 'RedHat'
-
name
:
directories
file
:
path
:
'
/srv/{{item}}'
state
:
directory
with_items
:
-
daemon
-
daemon-data
-
name
:
download daemon
unarchive
:
src
:
'
https://github.com/pterodactyl/daemon/releases/download/{{pter_release}}/daemon.tar.gz'
dest
:
/srv/daemon
creates
:
/srv/daemon/src
remote_src
:
true
extra_opts
:
-
--strip-components=1
notify
:
launch
-
name
:
npm install
npm
:
path
:
/srv/daemon
ci
:
true
production
:
true
-
name
:
core.json
template
:
src
:
files/pter/pter.json.j2
dest
:
/srv/daemon/config/core.json
notify
:
launch
-
name
:
certs
synchronize
:
src
:
'
{{
cert_path
}}/'
dest
:
/srv/certs
delete
:
yes
copy_links
:
yes
verify_host
:
no
recursive
:
yes
checksum
:
yes
archive
:
no
notify
:
launch
handlers
:
-
name
:
launch
shell
:
'
pm2
start
src/index.js
--name
daemon
&&
pm2
save
&&
pm2
startup'
args
:
chdir
:
/srv/daemon
ignore_errors
:
true
pter.yml
View file @
4ad8c69a
---
-
hosts
:
pter
remote_user
:
root
vars
:
pter_release
:
v0.6.12
roles
:
-
name
:
nodejs
vars
:
nodejs_version
:
10
tasks
:
-
name
:
apt
apt
:
update_cache
:
true
state
:
latest
name
:
curl,wget,build-essential,tar,unzip,python,rsync
when
:
ansible_os_family == 'Debian'
-
name
:
yum
yum
:
state
:
latest
update_cache
:
true
name
:
curl,wget,gcc,gcc-c++,make,tar,unzip,python,rsync
when
:
ansible_os_family == 'RedHat'
-
name
:
directories
-
name
:
set template
set_fact
:
config_content
:
debug
:
false
uuid
:
'
{{uuid}}'
token_id
:
'
{{token_id}}'
token
:
'
{{token}}'
api
:
host
:
0.0.0.0
port
:
'
{{https_port}}'
ssl
:
enabled
:
true
cert
:
'
/certs/fullchain.pem'
key
:
'
/certs/privkey.pem'
upload_limit
:
100
system
:
data
:
'
{{data_path}}'
sftp
:
bind_port
:
'
{{sftp_port}}'
allowed_mounts
:
[]
remote
:
'
{{remote}}'
docker_compose_content
:
version
:
'
2.4'
services
:
pterodactyl
:
restart
:
always
image
:
ccarney16/pterodactyl-daemon:v1.6.1
network_mode
:
host
environment
:
TZ
:
Asia/Shanghai
volumes
:
-
/etc/localtime:/etc/localtime:ro
-
/var/run/docker.sock:/var/run/docker.sock
-
./certs:/certs:ro
-
./config.yml:/etc/pterodactyl/config.yml
-
'
{{data_path}}:{{data_path}}'
-
name
:
directory
file
:
path
:
'
/srv/{{item}}
'
path
:
'
{{ansible_user_dir}}/pterodactyl/certs
'
state
:
directory
recurse
:
true
-
name
:
config file
copy
:
content
:
'
{{config_content
|
to_yaml}}'
dest
:
'
{{ansible_user_dir}}/pterodactyl/config.yml'
notify
:
restart_pterodactyl
-
name
:
docker-compose.yml
copy
:
content
:
'
{{docker_compose_content
|
to_yaml}}'
dest
:
'
{{ansible_user_dir}}/pterodactyl/docker-compose.yml'
-
name
:
cert file
copy
:
src
:
'
../certs/{{cert_domain}}/{{item}}.pem'
dest
:
'
{{ansible_user_dir}}/pterodactyl/certs/{{item}}.pem'
mode
:
'
0644'
with_items
:
-
daemon
-
daemon-data
-
name
:
download daemon
unarchive
:
src
:
'
https://github.com/pterodactyl/daemon/releases/download/{{pter_release}}/daemon.tar.gz'
dest
:
/srv/daemon
creates
:
/srv/daemon/src
remote_src
:
true
extra_opts
:
-
--strip-components=1
notify
:
launch
-
name
:
npm install
npm
:
path
:
/srv/daemon
ci
:
true
production
:
true
-
name
:
core.json
template
:
src
:
files/pter/pter.json.j2
dest
:
/srv/daemon/config/core.json
notify
:
launch
-
name
:
certs
synchronize
:
src
:
'
{{
cert_path
}}/'
dest
:
/srv/certs
delete
:
yes
copy_links
:
yes
verify_host
:
no
recursive
:
yes
checksum
:
yes
archive
:
no
notify
:
launch
-
fullchain
-
privkey
notify
:
restart_pterodactyl
-
name
:
docker-compose up -d
docker_compose
:
project_src
:
'
{{ansible_user_dir}}/pterodactyl'
remove_orphans
:
true
pull
:
true
handlers
:
-
name
:
launch
shell
:
'
pm2
start
src/index.js
--name
daemon
&&
pm2
save
&&
pm2
startup'
args
:
chdir
:
/srv/daemon
ignore_errors
:
true
-
name
:
restart_pterodactyl
include_tasks
:
'
handlers/docker.yaml'
vars
:
handler
:
type
:
docker
path
:
'
{{ansible_user_dir}}/pterodactyl'
services
:
-
pterodactyl
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