diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-07 23:39:33 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-07 23:39:33 +0200 |
commit | 40bf43ddb47f24a0f0d1acf9763cd9344f814c57 (patch) | |
tree | 6361a2a96406d0e32fc0c2164915f23d0ed14c16 /manifests/pgadmin.pp | |
parent | Hopefully fix uwsgi + pgadmin. (diff) | |
download | profiles-40bf43ddb47f24a0f0d1acf9763cd9344f814c57.tar.gz profiles-40bf43ddb47f24a0f0d1acf9763cd9344f814c57.tar.xz |
Remove profiles::pgadmin.
Diffstat (limited to 'manifests/pgadmin.pp')
-rw-r--r-- | manifests/pgadmin.pp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/manifests/pgadmin.pp b/manifests/pgadmin.pp deleted file mode 100644 index 12e6c32..0000000 --- a/manifests/pgadmin.pp +++ /dev/null @@ -1,39 +0,0 @@ -class profiles::pgadmin ( - String $server_name = "pgadmin.${fqdn}", -) { - - ensure_packages(['pgadmin4']) - - uwsgi::vassal { 'pgAdmin': - path => '/usr/lib/pgadmin4/web/pgAdmin4.wsgi', - } - - include ::nginx - - nginx::resource::server { $server_name: - ipv6_enable => true, - ipv6_listen_options => '', - ssl => false, - use_default_location => false, - } - - nginx::resource::location { 'pgadmin /': - server => $server_name, - location => '/', - location_allow => [ - '127.0.0.1', - '::1', - "${facts['network6']}/${extlib::netmask_to_cidr($facts['netmask6'])}", - "${facts['network']}/${extlib::netmask_to_cidr($facts['netmask'])}", - ], - location_deny => [ 'all' ], - # TODO centralize this setting - uwsgi => 'unix:/run/uwsgi/emperor.sock', - } - - # file { '/etc/pgadmin/config_system.py': - # content => @("EOF") - # SQLITE_PATH = ${sqlite_path} - # | EOF - # } -} |