Browse Source

updated mpd files

master
erin sims 2 years ago
parent
commit
671e34aee7
9 changed files with 61 additions and 109 deletions
  1. +30
    -20
      hosts
  2. +1
    -1
      playbooks/create_droplet.yml
  3. +1
    -1
      playbooks/delete_droplet.yml
  4. +0
    -27
      playbooks/mpdb.conf
  5. +11
    -0
      playbooks/mpdb.conf.j2
  6. +9
    -1
      playbooks/mpdb.yaml
  7. +0
    -38
      playbooks/mpdf.conf
  8. +6
    -20
      playbooks/mpdf.conf.j2
  9. +3
    -1
      playbooks/mpdf.yaml

+ 30
- 20
hosts View File

@@ -2,8 +2,10 @@ athena ansible_host=167.71.188.165
Zeus ansible_host=68.183.50.72 Zeus ansible_host=68.183.50.72
Hades ansible_host=104.131.0.100 Hades ansible_host=104.131.0.100
Atreyu ansible_host=159.65.178.119 Atreyu ansible_host=159.65.178.119
mpdf1 ansible_host=167.99.123.56
mpdb1 ansible_host=143.198.21.87
mpdf1 ansible_host=157.245.126.201
mpdf2 ansible_host=68.183.151.54
mpdb1 ansible_host=157.245.116.105
mpdb2 ansible_host=159.65.241.29


[ams1] [ams1]


@@ -27,7 +29,9 @@ Zeus
Hades Hades
Atreyu Atreyu
mpdf1 mpdf1
mpdf2
mpdb1 mpdb1
mpdb2


[sfo1] [sfo1]


@@ -39,11 +43,22 @@ mpdb1


[tor1] [tor1]


[Saltmaster]
[Git]
Zeus

[www_apache]
Zeus Zeus


[controller]
Atreyu

[mpdf]
mpdf1
mpdf2

[mpdb] [mpdb]
mpdb1 mpdb1
mpdb2


[matrix] [matrix]
athena athena
@@ -51,31 +66,19 @@ athena
[synapse] [synapse]
athena athena


[consul]
athena
Hades

[prometheus]
[salt_minion]
athena athena

[Git]
Zeus Zeus


[www_apache]
[Saltmaster]
Zeus Zeus


[mpdf]
mpdf1

[salt_minion]
[consul]
athena athena
Zeus

[salt_minon]
Hades Hades


[controller]
Atreyu
[prometheus]
athena


[alertmanager] [alertmanager]
athena athena
@@ -84,13 +87,20 @@ athena
athena athena
Atreyu Atreyu
mpdf1 mpdf1
mpdf2
mpdb1 mpdb1
mpdb2


[nextcloud] [nextcloud]
Zeus Zeus


[salt_minon]
Hades

[Thrace_Test] [Thrace_Test]
mpdb2
mpdb1 mpdb1
mpdf2
mpdf1 mpdf1
Atreyu Atreyu
Hades Hades


+ 1
- 1
playbooks/create_droplet.yml View File

@@ -5,7 +5,7 @@
vars: vars:
mpdf: mpdf:
- 'nyc3-mpdf' - 'nyc3-mpdf'
count: 1
count: 2
mpdb: mpdb:
- 'nyc3-mpdb' - 'nyc3-mpdb'
tasks: tasks:


+ 1
- 1
playbooks/delete_droplet.yml View File

@@ -5,7 +5,7 @@
vars: vars:
mpdf: mpdf:
- 'nyc3-mpdf' - 'nyc3-mpdf'
count: 1
count: 3
mpdb: mpdb:
- 'nyc3-mpdb' - 'nyc3-mpdb'
tasks: tasks:


+ 0
- 27
playbooks/mpdb.conf View File

@@ -1,27 +0,0 @@
Server side /etc/mpd.conf:


audio_output {

type "httpd" name "My HTTP Stream"

encoder "vorbis" # optional, vorbis or lame

port "8000" #

bind_to_address "your-server-IP-addr-here" # optional, IPv4 or IPv6

quality "5.0" # do not define if bitrate is d$

always_on "yes"

tags "yes"

format "44100:16:1"

max_clients "0" # optional 0=no limit

}




+ 11
- 0
playbooks/mpdb.conf.j2 View File

@@ -0,0 +1,11 @@
hostname "{{ server_ip_remote }}"
name "{{ server_name_remote }}"
password "{{ password_remote }}"
portnumber {{ port_numberi_remote }}"
useauth "{{ use_auth_remote }}"
music_directory "{{ music_directory_remote }}"

database {
plugin "proxy"
host "fileserver.local"
}

+ 9
- 1
playbooks/mpdb.yaml View File

@@ -2,7 +2,15 @@
gather_facts: false gather_facts: false
vars: vars:
tasks: tasks:
- name: Install mpd on hosts
- name: Install mpdb on hosts
apt: apt:
name: mpd name: mpd
state: present state: present
- name: setup config on hosts
template:
src: mpdf.conf.j2
dest: /etc/mpd.conf
owner: root
group: root
notify:
- restart mpd

+ 0
- 38
playbooks/mpdf.conf View File

@@ -1,38 +0,0 @@
[Default]

hostname="localhost"

name="Default"

password=""

portnumber="6600"

useauth="0"

music directory=""

db update time="12345678901"

[]

[Remote]

hostname="your-server-IP-addr-here"

name="Remote"

password=""

portnumber="8000"

useauth="0"

music directory=""

db update time="12345678901"

[]




+ 6
- 20
playbooks/mpdf.conf.j2 View File

@@ -1,21 +1,7 @@
[Default]
hostname="{{ hostname }}"
name="{{ default }}"
password="{{ password }}"
portnumber="{{ port }}"
useauth=" {{ use_auth }}"
music directory="{{ music_directory }}"
db update time="12345678901"
[]
[Remote]
hostname="{{ server_ip_remote }}"
name="{{ server_name_remote }}"
password="{{ password_remote }}"
portnumber="{{ port_numberi_remote }}"
useauth="{{ use_auth_remote }}"
music directory= "{{ music_directory_remote }}"
db update time="12345678901"
[]


hostname "{{ hostname }}"
name "{{ default }}"
password "{{ password }}"
portnumber "{{ port }}"
useauth "{{ use_auth }}"
music directory "{{ music_directory }}"



+ 3
- 1
playbooks/mpdf.yaml View File

@@ -2,7 +2,7 @@
gather_facts: false gather_facts: false
vars: vars:
tasks: tasks:
- name: Install mpd on hosts
- name: Install mpdf on hosts
apt: apt:
name: mpd name: mpd
state: present state: present
@@ -10,5 +10,7 @@
template: template:
src: mpdf.conf.j2 src: mpdf.conf.j2
dest: /etc/mpd.conf dest: /etc/mpd.conf
owner: root
group: root
notify: notify:
- restart mpd - restart mpd

Loading…
Cancel
Save