aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-11 01:13:22 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-11 02:53:50 +0200
commitcbb2c25bf2f71c7840bd599739e8d2569b159c8a (patch)
tree581d0858d98669f19811f8d4b1ce1a07e0498bee /manifests
parent7a7f654494ce996d3abd2c753b98883da8d3d875 (diff)
downloadPuppet-cbb2c25bf2f71c7840bd599739e8d2569b159c8a.tar.gz
Puppet-cbb2c25bf2f71c7840bd599739e8d2569b159c8a.tar.zst
Puppet-cbb2c25bf2f71c7840bd599739e8d2569b159c8a.zip
Add etckeeper
Diffstat (limited to 'manifests')
-rw-r--r--manifests/install_ovh.pp45
1 files changed, 41 insertions, 4 deletions
diff --git a/manifests/install_ovh.pp b/manifests/install_ovh.pp
index d1e109f..581e289 100644
--- a/manifests/install_ovh.pp
+++ b/manifests/install_ovh.pp
@@ -1,13 +1,50 @@
1node default { 1node default {
2 include stdlib 2 include stdlib
3 3
4 class { 'ovh_cleanup': } 4 stage { 'base_configuration':
5 class { 'base_packages': } 5 before => Stage['main']
6 class { 'locales': } 6 }
7 class { 'cron_puppet': } 7 stage { 'base_installation':
8 before => Stage['base_configuration']
9 }
10 stage { 'preparation':
11 before => Stage['base_installation']
12 }
13
14 class { 'etckeeper':
15 stage => 'preparation'
16 }
17 class { 'ovh_cleanup':
18 stage => 'preparation'
19 }
20 etckeeper::run { 'post_preparation_stage':
21 reason => "Post puppet preparation stage",
22 stages => [Stage['preparation']]
23 }
24
25 class { 'base_packages':
26 stage => "base_installation"
27 }
28 etckeeper::run { 'post_base_installation_stage':
29 reason => "Post puppet base installation stage",
30 stages => [Stage['base_installation']]
31 }
32
33 class { 'locales':
34 stage => "base_configuration"
35 }
36 class { 'cron_puppet':
37 stage => "base_configuration"
38 }
8 class { 'base_configuration': 39 class { 'base_configuration':
40 stage => "base_configuration",
9 hostname => 'new.immae.eu' 41 hostname => 'new.immae.eu'
10 } 42 }
43 etckeeper::run { 'post_base_configuration_stage':
44 reason => "Post puppet base configuration stage",
45 stages => [Stage['base_configuration']]
46 }
47
11 class { 'aur': } 48 class { 'aur': }
12 49
13 reboot { 'after_run': 50 reboot { 'after_run':