Re: func/overlord

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, 15 Apr 2010, John Eckersberg wrote:

func/overlord/cmd_modules/ping.py |    2 ++
1 file changed, 2 insertions(+)

New commits:
commit 3559219fa9bf9174921fc7296fe0afc4a2bd06a2
Author: John Eckersberg <jeckersb@xxxxxxxxxx>
Date:   Thu Apr 15 15:04:00 2010 -0400

   Use PuppetMinions for ping if configured as such

diff --git a/func/overlord/cmd_modules/ping.py b/func/overlord/cmd_modules/ping.py
index dd24d8f..7ce6c00 100644
--- a/func/overlord/cmd_modules/ping.py
+++ b/func/overlord/cmd_modules/ping.py
@@ -50,6 +50,8 @@ class Ping(base_command.BaseCommand):
        # to make things look more speedy.

        minion_set = client.Minions(self.server_spec, port=self.port)
+        if minion_set.overlord_config.puppet_minions:
+            minion_set = client.PuppetMinions(self.server_spec, port=self.port)
        servers = minion_set.get_all_hosts()


Can you get the minion class from within the overlord instance?

this is in client under the overlord object

        self.overlord_query = OverlordQuery()
        if self.config.puppet_minions:
            self._mc = PuppetMinions
        else:
            self._mc = Minions


so overlordinstance._mc will be your minions class - whichever config is in use.

-sv

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux