diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-08-23 23:50:51 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-08-23 23:50:51 -0400 |
commit | b984eb2ca0430b7a438b256496b0c03e9e7757d4 (patch) | |
tree | e539858340c97d5a1ca2399319aee99704f4ac90 /modules/tozt | |
parent | 7deeb6364cb8af05a01ee2d0a6b0cfa41ad124ce (diff) | |
download | puppet-tozt-b984eb2ca0430b7a438b256496b0c03e9e7757d4.tar.gz puppet-tozt-b984eb2ca0430b7a438b256496b0c03e9e7757d4.zip |
move ynab-export to my homedir
because i don't install the rust toolchain for root
Diffstat (limited to 'modules/tozt')
-rw-r--r-- | modules/tozt/files/ynab-export | 2 | ||||
-rw-r--r-- | modules/tozt/manifests/metabase.pp | 18 |
2 files changed, 12 insertions, 8 deletions
diff --git a/modules/tozt/files/ynab-export b/modules/tozt/files/ynab-export index c7f906a..e3b3ebe 100644 --- a/modules/tozt/files/ynab-export +++ b/modules/tozt/files/ynab-export @@ -1,4 +1,4 @@ #!/bin/sh set -eu -/opt/ynab-export/bin/load +/home/doy/coding/ynab-export/bin/load diff --git a/modules/tozt/manifests/metabase.pp b/modules/tozt/manifests/metabase.pp index e6ab163..d7a45cd 100644 --- a/modules/tozt/manifests/metabase.pp +++ b/modules/tozt/manifests/metabase.pp @@ -21,24 +21,28 @@ class tozt::metabase { } file { - "/root/.config/ynab": + "/home/doy/.config/ynab": ensure => directory, - require => Conf::User["root"]; + require => Conf::User["doy"]; "/etc/cron.hourly/ynab-export": mode => '0755', source => "puppet:///modules/tozt/ynab-export", require => Exec["clone ynab-export"]; } - secret { "/root/.config/ynab/api-key": + secret { "/home/doy/.config/ynab/api-key": source => "ynab", - require => File["/root/.config/ynab"]; + require => File["/home/doy/.config/ynab"]; } exec { "clone ynab-export": command => "/usr/bin/git clone git://github.com/doy/ynab-export", - cwd => "/opt", - creates => "/opt/ynab-export", - require => Class['git']; + user => "doy", + cwd => "/home/doy/coding", + creates => "/home/doy/coding/ynab-export", + require => [ + Class["git"], + File["/home/doy/coding"], + ], } } |