From 43ad2350228c5c854490353495d9b61c62e212d6 Mon Sep 17 00:00:00 2001 From: Richard Su Date: Mon, 14 Nov 2011 14:32:19 -0800 Subject: [PATCH] Ensure logout is called after all provider adds in ec2 profile. Thanks ecks for the tip. --- recipes/aeolus/manifests/profiles/ec2.pp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/recipes/aeolus/manifests/profiles/ec2.pp b/recipes/aeolus/manifests/profiles/ec2.pp index a7aa351..0cec35f 100644 --- a/recipes/aeolus/manifests/profiles/ec2.pp +++ b/recipes/aeolus/manifests/profiles/ec2.pp @@ -62,8 +62,6 @@ url => 'http://localhost:3002/api', require => Aeolus::Conductor::Login["admin"] } - - aeolus::conductor::hwp{"hwp1": memory => "512", cpu => "1", @@ -71,8 +69,8 @@ architecture => "x86_64", require => Aeolus::Conductor::Login["admin"] } + Aeolus::Conductor::Provider <| |> -> Aeolus::Conductor::Logout <| |> + aeolus::conductor::logout{"admin": - require => [Aeolus::Conductor::Provider['ec2-us-east-1'], - Aeolus::Conductor::Provider['ec2-us-west-1'], - Aeolus::Conductor::Hwp['hwp1']] } + require => [Aeolus::Conductor::Hwp['hwp1']] } }