Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move layman cache to infra lib folder

this make upgrading layman a whole lot easier
  • Loading branch information...
commit a7e8e3c55534033f44c0afdc602adb64ce56d959 1 parent b34958a
@hairmare hairmare authored
View
5 modules/infra/manifests/gentoo.pp
@@ -3,4 +3,9 @@
include infra
+ file {
+ "/var/lib/infra/":
+ ensure => directory;
+ }
+
}
View
4 modules/layman/manifests/init.pp
@@ -14,12 +14,14 @@
"/etc/cron.daily/layman":
content => "/usr/bin/layman -S",
mode => '0755';
+ "/var/lib/infra/layman":
+ ensure => directory;
}
exec {
"sync layman repos":
command => "/usr/bin/layman -L && touch /var/lib/puppet/state/eix.stale",
- onlyif => "/bin/ls -al /var/lib/layman/cache*xml && exit 1 || exit 0",
+ onlyif => "/bin/ls -al /var/lib/infra/layman/cache*xml && exit 1 || exit 0",
require => File["/etc/layman/layman.cfg"]
}
View
2  modules/layman/templates/gentoo_layman.cfg
@@ -1,6 +1,6 @@
[MAIN]
-storage : /var/lib/layman
+storage : /var/lib/infra/layman
cache : %(storage)s/cache
Please sign in to comment.
Something went wrong with that request. Please try again.