X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=manifests%2Finstall_ovh.pp;h=581e289affe811ecaa46b71a33be516e9040b57c;hb=cbb2c25bf2f71c7840bd599739e8d2569b159c8a;hp=cd2063adf72d6a5aa7366a8bdad9eb89189d83fe;hpb=16745a6252d7fe9472bffb2873212bd6b64c4f07;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/manifests/install_ovh.pp b/manifests/install_ovh.pp index cd2063a..581e289 100644 --- a/manifests/install_ovh.pp +++ b/manifests/install_ovh.pp @@ -1,10 +1,51 @@ node default { include stdlib - class { 'ovh_cleanup': } - class { 'locales': } - class { 'base_packages': } - class { 'cron_puppet': } + stage { 'base_configuration': + before => Stage['main'] + } + stage { 'base_installation': + before => Stage['base_configuration'] + } + stage { 'preparation': + before => Stage['base_installation'] + } + + class { 'etckeeper': + stage => 'preparation' + } + class { 'ovh_cleanup': + stage => 'preparation' + } + etckeeper::run { 'post_preparation_stage': + reason => "Post puppet preparation stage", + stages => [Stage['preparation']] + } + + class { 'base_packages': + stage => "base_installation" + } + etckeeper::run { 'post_base_installation_stage': + reason => "Post puppet base installation stage", + stages => [Stage['base_installation']] + } + + class { 'locales': + stage => "base_configuration" + } + class { 'cron_puppet': + stage => "base_configuration" + } + class { 'base_configuration': + stage => "base_configuration", + hostname => 'new.immae.eu' + } + etckeeper::run { 'post_base_configuration_stage': + reason => "Post puppet base configuration stage", + stages => [Stage['base_configuration']] + } + + class { 'aur': } reboot { 'after_run': apply => 'finished'