summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-29 23:00:15 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-29 23:00:15 +0200
commitb785f1d23b4f68716bc041a863a2ffd925f33ded (patch)
tree7242e8f05b2c0b4c360ac738644cf9b92380e916 /manifests
parentReplace list of tex packages with texlive group. (diff)
downloadprofiles-b785f1d23b4f68716bc041a863a2ffd925f33ded.tar.gz
profiles-b785f1d23b4f68716bc041a863a2ffd925f33ded.tar.xz
Add redshift.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/redshift.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/redshift.pp b/manifests/redshift.pp
new file mode 100644
index 0000000..c2137c7
--- /dev/null
+++ b/manifests/redshift.pp
@@ -0,0 +1,18 @@
+# @summary Configures redshift
+class profiles::redshift {
+
+ ensure_packages(['redshift'])
+
+ file { '/etc/systemd/user/redshift.service':
+ source => "puppet:///modules/${module_name}/redshift.service",
+ }
+
+ $flags = @(EOF)
+ FLAGS=-l 58.411291:15.566336
+ | EOF
+
+ file { '/etc/default/redshift':
+ content => $flags,
+ replace => false,
+ }
+}