Dotfiles/site-modules/core/manifests/language_tool.pp
Ade Attwood 55e3e98701 chore: add languagetool back in
I am sure this was installed before, it must have been removed when I started
making the repo public.

Anyway this adds it all back and also sets up the emacs package for using it
when writing.
2022-02-19 14:43:14 +00:00

16 lines
612 B
Puppet

# Module to install the languagetool service locally for creating spelling and
# grammar checking
class core::language_tool {
file { "${user_home}/.local/share/LanguageTool":
ensure => 'directory'
}
archive { 'LanguageTool-5.6.zip':
path => '/tmp/LanguageTool-5.6.zip',
source => 'https://languagetool.org/download/LanguageTool-5.6.zip',
extract => true,
extract_path => "${user_home}/.local/share/LanguageTool",
creates => "${user_home}/.local/share/LanguageTool/LanguageTool-5.6",
require => File["${user_home}/.local/share/LanguageTool"],
}
}