diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 22:54:05 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 22:54:05 +0100 |
commit | 428fcf14be3943fc01d234a5e622c7f8706bcb73 (patch) | |
tree | d144b72d85d60ec8490687cdf6f3a037d9622f88 /modules/base_installation/manifests | |
parent | aea8c51549e56f6d0ced3072fae9d61b6a87e6e4 (diff) | |
download | Puppet-428fcf14be3943fc01d234a5e622c7f8706bcb73.tar.gz Puppet-428fcf14be3943fc01d234a5e622c7f8706bcb73.tar.zst Puppet-428fcf14be3943fc01d234a5e622c7f8706bcb73.zip |
Make puppet apply non-critical part at reboot
Diffstat (limited to 'modules/base_installation/manifests')
-rw-r--r-- | modules/base_installation/manifests/cronie.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/base_installation/manifests/cronie.pp b/modules/base_installation/manifests/cronie.pp index 918bce3..4df0e37 100644 --- a/modules/base_installation/manifests/cronie.pp +++ b/modules/base_installation/manifests/cronie.pp | |||
@@ -23,5 +23,11 @@ class base_installation::cronie inherits base_installation { | |||
23 | user => root, | 23 | user => root, |
24 | minute => '*/20' | 24 | minute => '*/20' |
25 | } | 25 | } |
26 | cron { 'puppet-apply-reboot': | ||
27 | ensure => present, | ||
28 | command => "cd $base_installation::puppet_code_path ; puppet apply --test $base_installation::puppet_code_path/manifests/site.pp", | ||
29 | user => root, | ||
30 | special => "reboot" | ||
31 | } | ||
26 | } | 32 | } |
27 | } | 33 | } |