Compare commits
No commits in common. "2f548f24317d4af802a9efb011642c29a219e2b0" and "72cf4e570cdd6ac1aa6076907ed8df7dedd0d188" have entirely different histories.
2f548f2431
...
72cf4e570c
|
@ -60,9 +60,6 @@ define sunetdrive::app_type (
|
||||||
} else {
|
} else {
|
||||||
$php_memory_limit_mb = 512
|
$php_memory_limit_mb = 512
|
||||||
}
|
}
|
||||||
if $::facts['dockerhost2'] == 'yes' {
|
|
||||||
$hostnet = 'yes'
|
|
||||||
}
|
|
||||||
|
|
||||||
# These are encrypted values from local.eyaml
|
# These are encrypted values from local.eyaml
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,6 @@ class sunetdrive::proxysql (
|
||||||
$mysql_user = safe_hiera('mysql_user')
|
$mysql_user = safe_hiera('mysql_user')
|
||||||
|
|
||||||
$transaction_persistent = 1
|
$transaction_persistent = 1
|
||||||
if $::facts['dockerhost2'] == 'yes' {
|
|
||||||
$hostnet = 'yes'
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/usr/local/bin/proxysql':
|
file { '/usr/local/bin/proxysql':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|
|
@ -25,11 +25,7 @@ $CONFIG = array (
|
||||||
'csrf.disabled' => true,
|
'csrf.disabled' => true,
|
||||||
'datadirectory' => '/var/www/html/data',
|
'datadirectory' => '/var/www/html/data',
|
||||||
'davstorage.request_timeout' => 86401,
|
'davstorage.request_timeout' => 86401,
|
||||||
<%- if @hostnet -%>
|
|
||||||
'dbhost' => '127.0.0.1',
|
|
||||||
<%- else -%>
|
|
||||||
'dbhost' => '<%= @dbhost %>',
|
'dbhost' => '<%= @dbhost %>',
|
||||||
<%- end -%>
|
|
||||||
'dbname' => '<%= @dbname %>',
|
'dbname' => '<%= @dbname %>',
|
||||||
'dbpassword' => '<%= @mysql_user_password %>',
|
'dbpassword' => '<%= @mysql_user_password %>',
|
||||||
'dbport' => '3306',
|
'dbport' => '3306',
|
||||||
|
|
|
@ -6,9 +6,6 @@ services:
|
||||||
image: docker.sunet.se/drive/nextcloud-custom:<%= @nextcloud_version %>
|
image: docker.sunet.se/drive/nextcloud-custom:<%= @nextcloud_version %>
|
||||||
restart: always
|
restart: always
|
||||||
container_name: nextcloud_app_1
|
container_name: nextcloud_app_1
|
||||||
<%- if @hostnet -%>
|
|
||||||
network_mode: host
|
|
||||||
<%- end -%>
|
|
||||||
environment:
|
environment:
|
||||||
- NC_PASS=<%= @admin_password%>
|
- NC_PASS=<%= @admin_password%>
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -31,24 +28,18 @@ services:
|
||||||
<% if @location =~ /^kau/ -%>
|
<% if @location =~ /^kau/ -%>
|
||||||
- /mnt:/opt/tmp/
|
- /mnt:/opt/tmp/
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- if ! @hostnet -%>
|
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- proxysql_proxysql
|
- proxysql_proxysql
|
||||||
<%- end -%>
|
|
||||||
dns:
|
dns:
|
||||||
- 89.46.20.75
|
- 89.46.20.75
|
||||||
- 89.46.21.29
|
- 89.46.21.29
|
||||||
- 89.32.32.32
|
- 89.32.32.32
|
||||||
<%- if !@hostnet -%>
|
|
||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
<%- end -%>
|
|
||||||
command: sh -c 'tail -f /var/www/html/data/nextcloud.log | tee -a /proc/1/fd/2 & apachectl -D FOREGROUND'
|
command: sh -c 'tail -f /var/www/html/data/nextcloud.log | tee -a /proc/1/fd/2 & apachectl -D FOREGROUND'
|
||||||
tty: true
|
tty: true
|
||||||
|
|
||||||
<%- if !@hostnet -%>
|
|
||||||
networks:
|
networks:
|
||||||
proxysql_proxysql:
|
proxysql_proxysql:
|
||||||
external: true
|
external: true
|
||||||
<%- end -%>
|
|
||||||
|
|
|
@ -5,24 +5,18 @@ services:
|
||||||
proxysql:
|
proxysql:
|
||||||
image: docker.sunet.se/drive/proxysql:<%= @proxysql_version %>
|
image: docker.sunet.se/drive/proxysql:<%= @proxysql_version %>
|
||||||
container_name: proxysql_proxysql_1
|
container_name: proxysql_proxysql_1
|
||||||
<%- if @hostnet -%>
|
|
||||||
network_mode: host
|
|
||||||
<%- else -%>
|
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
- 6032:6032
|
- 6032:6032
|
||||||
- 6080:6080
|
- 6080:6080
|
||||||
<%- end -%>
|
|
||||||
environment:
|
environment:
|
||||||
INITIALIZE: 1
|
INITIALIZE: 1
|
||||||
dns:
|
dns:
|
||||||
- 89.46.20.75
|
- 89.46.20.75
|
||||||
- 89.46.21.29
|
- 89.46.21.29
|
||||||
- 89.32.32.32
|
- 89.32.32.32
|
||||||
<%- if !@hostnet -%>
|
|
||||||
networks:
|
networks:
|
||||||
- proxysql
|
- proxysql
|
||||||
<%- end -%>
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- proxysql:/var/lib/proxysql
|
- proxysql:/var/lib/proxysql
|
||||||
|
@ -32,8 +26,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
proxysql:
|
proxysql:
|
||||||
|
|
||||||
<%- if !@hostnet -%>
|
|
||||||
networks:
|
networks:
|
||||||
proxysql:
|
proxysql:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
<%- end -%>
|
|
||||||
|
|
Loading…
Reference in a new issue