Page MenuHomeDevCentral

D4024.id10504.diff
No OneTemporary

D4024.id10504.diff

diff --git a/roles/devserver/userland-software/files/tex/fonts.conf b/roles/devserver/userland-software/files/tex/fonts.conf
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/files/tex/fonts.conf
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Fonts configuration :: TeX Live
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Project: Nasqueron
+ License: Trivial work, not eligible to copyright
+ Source file: roles/devserver/userland-software/files/tex/fonts.conf
+ _____________________________________________________________
+
+ <auto-generated>
+ This file is managed by our rOPS SaltStack repository.
+
+ Changes to this file may cause incorrect behavior
+ and will be lost if the state is redeployed.
+ </auto-generated>
+-->
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <dir>{{ dir }}/opentype</dir>
+ <dir>{{ dir }}/truetype</dir>
+ <dir>{{ dir }}/type1</dir>
+</fontconfig>
diff --git a/roles/devserver/userland-software/init.sls b/roles/devserver/userland-software/init.sls
--- a/roles/devserver/userland-software/init.sls
+++ b/roles/devserver/userland-software/init.sls
@@ -27,4 +27,5 @@
- .notifications
- .phabricator
- .psysh
+ - .tex
- .wordpress
diff --git a/roles/devserver/userland-software/misc.sls b/roles/devserver/userland-software/misc.sls
--- a/roles/devserver/userland-software/misc.sls
+++ b/roles/devserver/userland-software/misc.sls
@@ -33,7 +33,6 @@
- pkgs:
- antiword
- odt2txt
- - texlive-full
devserver_software_misc_security:
pkg.installed:
diff --git a/roles/devserver/userland-software/tex.sls b/roles/devserver/userland-software/tex.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/tex.sls
@@ -0,0 +1,40 @@
+# -------------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs with context %}
+
+# -------------------------------------------------------------
+# Software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+devserver_software_tex:
+ pkg.installed:
+ - name: texlive-full
+
+# -------------------------------------------------------------
+# TeX Live - Fonts
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ dirs.etc }}/fonts/conf.avail/09-texlive.conf:
+ file.managed:
+ - source: salt://roles/devserver/userland-software/files/tex/fonts.conf
+ - template: jinja
+ - context:
+ dir: {{ dirs.share }}/texmf-dist/fonts
+ - watch_in:
+ cmd: devserver_software_misc_tex_fonts
+
+{{ dirs.etc }}/fonts/conf.d/09-texlive.conf:
+ file.symlink:
+ - target: ../conf.avail/09-texlive.conf
+
+devserver_software_misc_tex_fonts:
+ cmd.run:
+ - name: |
+ fc-cache -fs
+ touch {{ dirs.share }}/texmf-dist/fonts/.deployed
+ - creates: {{ dirs.share }}/texmf-dist/fonts/.deployed

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 24, 05:30 (17 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3557657
Default Alt Text
D4024.id10504.diff (3 KB)

Event Timeline