--- /dev/null
+class miniflux($database_url, $polling_frequency, $batch_size, $polling_parser_error_limit) {
+ file {'/etc/yum.repos.d/miniflux.repo':
+ content => "[miniflux]
+name=Miniflux Repository
+baseurl=https://repo.miniflux.app/yum/
+enabled=1
+gpgcheck=0
+",
+ }
+ ->
+ package {'miniflux':}
+ ->
+ file {'/etc/miniflux.conf':
+ content => "LISTEN_ADDR=0.0.0.0:8080
+RUN_MIGRATIONS=1
+DATABASE_URL=$database_url
+POLLING_FREQUENCY=$polling_frequency
+BATCH_SIZE=$batch_size
+POLLING_PARSING_ERROR_LIMIT=$polling_parser_error_limit
+",
+ }
+ ~>
+ service {'miniflux':
+ ensure => running,
+ enable => true,
+ }
+}
proxmox::proxy_host {'weight.pdp7.net':
target => 'https://k8s-prod.h1.int.pdp7.net/',
}
+
+ proxmox::proxy_host {'miniflux.pdp7.net':
+ target => 'http://miniflux.h1.int.pdp7.net:8080/',
+ }
}
--- /dev/null
+node 'miniflux.h1.int.pdp7.net' {
+ class {'miniflux':
+ database_url => "host=pg.h1.int.pdp7.net user=miniflux dbname=miniflux sslmode=disable",
+ polling_frequency => 60,
+ batch_size => 100,
+ polling_parser_error_limit => 0,
+ }
+}
local all all peer
host weight k8s_prod k8s-prod.h1.int.pdp7.net trust
host weight grafana grafana.h2.int.pdp7.net trust
+ host miniflux miniflux miniflux.h1.int.pdp7.net trust
| EOT
,
}
+
+ package {'postgresql15-contrib':} # hstore for miniflux
}