summaryrefslogtreecommitdiff
path: root/modules/shiori/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shiori/manifests/init.pp')
-rw-r--r--modules/shiori/manifests/init.pp65
1 files changed, 0 insertions, 65 deletions
diff --git a/modules/shiori/manifests/init.pp b/modules/shiori/manifests/init.pp
deleted file mode 100644
index 69d5fde..0000000
--- a/modules/shiori/manifests/init.pp
+++ /dev/null
@@ -1,65 +0,0 @@
-class shiori (
- $port = 8080,
- $dir = '/var/www/shiori',
-) {
-
-
- # on arch this is available through the aur
- package { 'shiori-bin':
- ensure => installed,
- }
-
- user { 'shiori':
- ensure => present,
- system => true,
- home => $dir,
- }
-
- file { $dir:
- ensure => directory,
- owner => shiori,
- group => shiori,
- mode => '0750',
- }
-
- file { [
- "${dir}/archive",
- "${dir}/thumb",
- ] :
- ensure => directory,
- owner => shiori,
- group => shiori,
- mode => '0770',
- }
-
- file { "${dir}/shiori.db":
- owner => 'shiori',
- group => 'shiori',
- mode => '0660',
- }
-
- file { '/etc/systemd/system/shiori.service':
- ensure => file,
- source => 'puppet:///modules/shiori/shiori.service',
- }
-
- file { '/etc/conf.d/shiori':
- ensure => 'file',
- content => @("EOF")
- # This file is managed by Puppet.
- PORT=${port}
- SHIORI_DIR=${dir}
- | EOF
- }
-
- service { 'shiori':
- ensure => running,
- enable => true,
- require => [
- File['/etc/systemd/system/shiori.service'],
- File['/etc/conf.d/shiori'],
- ],
- }
-
- # Users could be managed here, through shioris HTTP API
-}