From 8dc8af0e070a2435193c711e92b77d12d0d301be Mon Sep 17 00:00:00 2001 From: timekills Date: Wed, 16 Jan 2019 03:44:38 +0430 Subject: [PATCH 1/5] Create mcmyadmin.yml Includes McMyadmin front end and built-in Minecraft server. ----------------------------------------------- In order to access McMyAdmin you have to change the default username: From SSH into the server: 1. docker exec -it mcmyadmin2 /bin/bash 2. ./minecraft/MCMA2_Linux_x86_64 /quit 3. ./minecraft/MCMA2_Linux_x86_64 -setpass changme -configonly 3. exit 4. docker stop mcmyadmin2 5. docker start mcmyadmin2 6. login with username admin and password password 6a. Yes. That's not a typo - the login will still be admin and the password will still be password until you change them in the web interface. 7. Change the password for the admin user from the McMyAdmin web interface 8. You can add a new user and delete "admin" if you want from the web interface. 9. DO NOT add "minecraft.tld" to your DNS provider if you want people to go to minecraft.tld as the game server name. 10. You can run servers on the default port (25565) and up to two additional servers on ports 25566 and 25567 --- apps/mcmyadmin.yml | 86 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 apps/mcmyadmin.yml diff --git a/apps/mcmyadmin.yml b/apps/mcmyadmin.yml new file mode 100644 index 0000000..a178085 --- /dev/null +++ b/apps/mcmyadmin.yml @@ -0,0 +1,86 @@ +#!/bin/bash +# +# Title: McMyadmin2 +# Author(s): timekills +# URL: https://plexguide.com - http://github.plexguide.com +# GNU: General Public License v3.0 +################################################################################ +--- +- hosts: localhost + gather_facts: false + tasks: + # CORE (MANDATORY) DO NOT CHANGE ########################################### + + - name: 'Set Known Facts' + set_fact: + pgrole: 'mcmyadmin2' + intport: '8080' + extport: '8088' + image: 'linuxserver/mcmyadmin2' + + - name: 'Including cron job' + include_tasks: '/opt/plexguide/containers/_core.yml' + + # EXTRA FUNCTIONS REQUIRED BY THE ROLE ##################################### + + - name: 'Create scripts directory for {{pgrole}}' + file: + path: /opt/appdata/{{pgrole}}/scripts + state: directory + owner: 1000 + group: 1000 + mode: 0755 + + - name: 'Create plugins directory for {{pgrole}}' + file: + path: /opt/appdata/{{pgrole}}/plugins + state: directory + owner: 1000 + group: 1000 + mode: 0755 + + # LABELS #### KEEPS BOTTOM CLEAN ########################################### + - name: 'Adding Traefik' + set_fact: + pg_labels: + traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.enable: 'true' + traefik.port: '{{intport}}' + traefik.frontend.rule: 'Host:mcmyadmin.{{domain.stdout}},{{tldset}}' + + - name: 'Setting PG Volumes' + set_fact: + pg_volumes: + - '/opt/appdata/{{pgrole}}/mcmyadmin:/minecraft' + - '/opt/appdata/{{pgrole}}/Minecraft:/Minecraft' + - '{{path.stdout}}:{{path.stdout}}' + - '/mnt:/mnt' + - '/etc/localtime:/etc/localtime:ro' + + - name: 'Setting PG ENV' + set_fact: + pg_env: + PUID: 1000 + PGID: 1000 + + # MAIN SCRIPT ############################################################## + + - name: 'Deploying {{pgrole}}' + docker_container: + name: '{{pgrole}}' + image: '{{image}}' + pull: yes + published_ports: + - '{{ports.stdout}}{{extport}}:{{intport}}' + - '25565:25565/tcp' + - '25566:25566/tcp' + - '25567:25567/tcp' + volumes: '{{pg_volumes}}' + env: '{{pg_env}}' + restart_policy: unless-stopped + networks: + - name: plexguide + aliases: + - '{{pgrole}}' + state: started + labels: '{{pg_labels}}' From 6208ab5af6bf0e64f4194adf69ec2425ca34da05 Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Wed, 16 Jan 2019 05:57:06 -0500 Subject: [PATCH 2/5] update --- .DS_Store | Bin 6148 -> 8196 bytes .gitignore | 1 + 2 files changed, 1 insertion(+) diff --git a/.DS_Store b/.DS_Store index 512932864056adf4d3cce77f3c376fc3d2ed10ee..4747cff0a0ca37b2347fc65bba3ef72677e23381 100644 GIT binary patch literal 8196 zcmeHMU2GLa6rS(W!Y*CtQma(#hFeR8l1f`z3q-58KU51PZMZFM0lD3KccH7>-Ewzt z3;of?#3w=H8$vWjebL4@1$|Us{ChCcgh0ZJKA=A6113shjAwTC-V{pTh-t!3GjnF< zoHJ+6*>7g>1EbJ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HaiqerKM{FXITZfPs;Lfdxb} OL2LkvZI0)e!wdj5xfTil diff --git a/.gitignore b/.gitignore index 9bea433..43322df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store +.DS_Store From e8590c0378b6dcb619e202abe29c6ac8bd7d31de Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Wed, 16 Jan 2019 06:00:06 -0500 Subject: [PATCH 3/5] update useless files --- templates/cleanup-radarr.sh | 5 ----- templates/cleanup-sonarr.sh | 5 ----- 2 files changed, 10 deletions(-) delete mode 100644 templates/cleanup-radarr.sh delete mode 100644 templates/cleanup-sonarr.sh diff --git a/templates/cleanup-radarr.sh b/templates/cleanup-radarr.sh deleted file mode 100644 index b95d408..0000000 --- a/templates/cleanup-radarr.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -if [ -d "$radarr_moviefile_sourcefolder" ] && [ "$(basename $radarr_moviefile_sourcefolder)" = "deluge_extracted" ] ; then - /bin/rm -rf $radarr_moviefile_sourcefolder -fi diff --git a/templates/cleanup-sonarr.sh b/templates/cleanup-sonarr.sh deleted file mode 100644 index f805109..0000000 --- a/templates/cleanup-sonarr.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -if [ -d "$sonarr_episodefile_sourcefolder" ] && [ "$(basename $sonarr_episodefile_sourcefolder)" = "deluge_extracted" ] ; then - /bin/rm -rf $sonarr_episodefile_sourcefolder -fi From 929032b0f7fe142305701d9d314ba44006d6614e Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Wed, 16 Jan 2019 06:03:59 -0500 Subject: [PATCH 4/5] fixes --- apps/nzbthrottle.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/nzbthrottle.yml b/apps/nzbthrottle.yml index e2b5042..f06e48f 100644 --- a/apps/nzbthrottle.yml +++ b/apps/nzbthrottle.yml @@ -21,21 +21,21 @@ - name: 'Including cron job' include_tasks: '/opt/plexguide/containers/_core.yml' - - name: Checking {{pgrole}}'s json existance + - name: 'Checking {{pgrole}}'s json existance' stat: path: '/opt/plexguide/containers/templates/{{pgrole}}/config.json' register: jsoncheck - name: 'Copying file for {{pgrole}}' copy: - src: /opt/plexguide/containers/templates/{{pgrole}}.json - dest: /opt/appdata/{{pgrole}}/{{pgrole}}json + src: '/opt/plexguide/containers/templates/{{pgrole}}/config.json' + dest: '/opt/appdata/{{pgrole}}/{{pgrole}}/config.json' directory_mode: yes force: yes owner: 1000 group: 1000 mode: 0755 - when: not nzbthrottle.stat.exists + when: not jsoncheck.stat.exists # LABELS ###################################################################### - name: 'Adding Traefik' From 0c4cb04f4c421e811f1c8f3ff59b1717c3c24b43 Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Wed, 16 Jan 2019 06:14:24 -0500 Subject: [PATCH 5/5] update --- apps/{ => templates/broken}/nzbthrottle.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename apps/{ => templates/broken}/nzbthrottle.yml (100%) diff --git a/apps/nzbthrottle.yml b/apps/templates/broken/nzbthrottle.yml similarity index 100% rename from apps/nzbthrottle.yml rename to apps/templates/broken/nzbthrottle.yml