diff options
Diffstat (limited to 'modules/shiori')
-rw-r--r-- | modules/shiori/files/shiori.service | 13 | ||||
-rw-r--r-- | modules/shiori/manifests/init.pp | 65 |
2 files changed, 0 insertions, 78 deletions
diff --git a/modules/shiori/files/shiori.service b/modules/shiori/files/shiori.service deleted file mode 100644 index 6c8de29..0000000 --- a/modules/shiori/files/shiori.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Bookmark server - -[Service] -User=shiori -Environment=SHIORI_DIR=/var/www/shiori -Environment=PORT=8080 -EnvironmentFile=-/etc/conf.d/shiori -ExecStart=shiori serve -p $PORT -Restart=always - -[Install] -WantedBy=multi-user.target 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 -} |