summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-03-19 05:07:07 -0400
committerJesse Luehrs <doy@tozt.net>2019-03-19 05:07:07 -0400
commit8285609c3484774f58be61189b05859c10464567 (patch)
tree3848dea56b4a7dfd606bb8bddfe8a2246ba35d4d
parent0bbfc6e44596b3f269d83aa0118dab4b1f05c8ad (diff)
downloadpuppet-tozt-8285609c3484774f58be61189b05859c10464567.tar.gz
puppet-tozt-8285609c3484774f58be61189b05859c10464567.zip
only pull docker images on mail
-rw-r--r--manifests/mail.pp6
-rw-r--r--modules/base/manifests/init.pp6
2 files changed, 7 insertions, 5 deletions
diff --git a/manifests/mail.pp b/manifests/mail.pp
index 1f5adf7..15063cf 100644
--- a/manifests/mail.pp
+++ b/manifests/mail.pp
@@ -3,7 +3,11 @@ node 'mail', 'mail.localdomain' {
include mail::persistent
Class['mail::persistent'] -> Class['base']
- include base
+ class { 'base':
+ extra_script => "
+ (cd /media/persistent && sudo docker-compose pull -q)
+ ";
+ }
include mail::operatingsystem
Class['mail::operatingsystem'] -> Package<| provider == "pacman" |>
diff --git a/modules/base/manifests/init.pp b/modules/base/manifests/init.pp
index 9d64856..c898da5 100644
--- a/modules/base/manifests/init.pp
+++ b/modules/base/manifests/init.pp
@@ -1,8 +1,6 @@
-class base {
+class base($extra_script="") {
class { 'base::bootstrap':
- extra_script => "
- (cd /media/persistent && sudo docker-compose pull -q)
- ",
+ extra_script => $extra_script;
}
contain base::operatingsystem
contain base::services