From a3f11bff64069e61df895d8bb9d5d80fdde0e7eb Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 11 Dec 2012 16:25:11 -0500 Subject: set up an 'initial' run stage to happen before the 'main' run stage and put the site_config::hosts to be in the initial run stage to make sure the hostname is set before anything else. --- puppet/modules/site_config/manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'puppet/modules/site_config/manifests/init.pp') diff --git a/puppet/modules/site_config/manifests/init.pp b/puppet/modules/site_config/manifests/init.pp index 268ff2fc..bab186d0 100644 --- a/puppet/modules/site_config/manifests/init.pp +++ b/puppet/modules/site_config/manifests/init.pp @@ -13,5 +13,11 @@ class site_config { include site_config::resolvconf # configure /etc/hosts - include site_config::hosts + stage { 'initial': + before => Stage['main'], + } + + class { 'site_config::hosts': + stage => initial, + } } -- cgit v1.2.3