Add cloudcmd

This commit is contained in:
Robert Baker
2019-02-01 00:10:30 -07:00
parent ff7c291fc1
commit fb9f5419a3
2 changed files with 97 additions and 0 deletions

61
apps/cloudcmd.yml Normal file
View File

@@ -0,0 +1,61 @@
#!/bin/bash
#
# Title: PlexGuide (Reference Title File)
# Author(s): Admin9705
# URL: https://plexguide.com - http://github.plexguide.com
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# FACTS #######################################################################
- name: 'Set Known Facts'
set_fact:
pgrole: 'cloudcmd'
intport: '8000'
extport: '7999'
image: 'coderaiser/cloudcmd'
# CORE (MANDATORY) ############################################################
- name: 'Including cron job'
include_tasks: '/opt/plexguide/containers/_core.yml'
# LABELS ######################################################################
- name: 'Adding Traefik'
set_fact:
pg_labels:
traefik.enable: 'true'
traefik.port: '{{intport}}'
traefik.frontend.auth.forward.address: '{{gauth}}'
traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'
- name: 'Setting PG Volumes'
set_fact:
pg_volumes:
- /:/SERVER
- /opt/appdata/{{pgrole}}:/root/
- name: 'Setting PG ENV'
set_fact:
pg_env:
PUID: 1000
PGID: 1000
# MAIN DEPLOYMENT #############################################################
- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
published_ports:
- '{{ports.stdout}}{{extport}}:{{intport}}'
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started
labels: '{{pg_labels}}'

View File

@@ -0,0 +1,36 @@
{
"name": "",
"auth": true,
"username": "plex",
"password": "33449a17f325d04d86acfa00452b372c90742df5f9a10fee21673d9f384ab4bf536bce786034205b6496b559cece641f461c84df6a4eff220d1e66de09a29bde",
"algo": "sha512WithRSAEncryption",
"editor": "edward",
"packer": "tar",
"diff": true,
"zip": true,
"localStorage": true,
"buffer": true,
"dirStorage": false,
"online": true,
"open": false,
"cache": true,
"keysPanel": true,
"port": 8000,
"ip": null,
"root": "/SERVER",
"prefix": "",
"progress": true,
"htmlDialogs": true,
"contact": true,
"confirmCopy": true,
"confirmMove": true,
"configDialog": true,
"onePanelMode": false,
"console": true,
"syncConsolePath": false,
"terminal": "true",
"terminalPath": "gritty",
"showConfig": false,
"vim": false,
"columns": "name-size-date-owner-mode"
}