diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-24 02:22:17 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-29 22:46:14 +0200 |
commit | 7fed35a408b9ec37454169425823785b5fc8978b (patch) | |
tree | 28371d43ac304f99fb0a5305124858db69ef2137 /manifests/install_ovh_from_scratch.pp | |
parent | ba2cf1b5d938810077b0fd73844faf432e8e8f9d (diff) | |
download | Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.gz Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.zst Puppet-7fed35a408b9ec37454169425823785b5fc8978b.zip |
Refactor base installation module
Diffstat (limited to 'manifests/install_ovh_from_scratch.pp')
-rw-r--r-- | manifests/install_ovh_from_scratch.pp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/manifests/install_ovh_from_scratch.pp b/manifests/install_ovh_from_scratch.pp index 4888cfc..f5224fa 100644 --- a/manifests/install_ovh_from_scratch.pp +++ b/manifests/install_ovh_from_scratch.pp | |||
@@ -1,20 +1,8 @@ | |||
1 | node default { | 1 | node default { |
2 | include stdlib | 2 | include stdlib |
3 | 3 | ||
4 | stage { 'base_configuration': } | 4 | class { 'base_installation': |
5 | stage { 'base_packages': } | 5 | stage => "setup", |
6 | Stage["setup"] | 6 | grub_device => "/dev/sdb", |
7 | -> Stage['base_packages'] | ||
8 | -> Stage['base_configuration'] | ||
9 | -> Stage['main'] | ||
10 | |||
11 | class { 'base_packages': | ||
12 | stage => "base_packages" | ||
13 | } | ||
14 | class { 'base_configuration': | ||
15 | stage => "base_configuration", | ||
16 | code_path => "/etc/puppetlabs/code", | ||
17 | device => "/dev/sdb", | ||
18 | hostname => 'new.immae.eu', | ||
19 | } | 7 | } |
20 | } | 8 | } |