Class: Wakame::Triggers::MaintainSshKnownHosts

Inherits:
Wakame::Trigger show all
Defined in:
lib/wakame/triggers/maintain_ssh_known_hosts.rb

Defined Under Namespace

Classes: UpdateKnownHosts

Constant Summary

Constants included from AttributeHelper

AttributeHelper::CLASS_TYPE_KEY, AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES

Instance Method Summary collapse

Methods inherited from Wakame::Trigger

#agent_monitor, #cleanup, #command_queue, #master, #trigger_action

Methods included from AttributeHelper

#dump_attrs, #retrieve_attr_attribute

Methods included from FilterChain

included, #run_filter

Instance Method Details

#register_hooks(cluster_id) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/wakame/triggers/maintain_ssh_known_hosts.rb', line 35

def register_hooks(cluster_id)
  event_subscribe(Event::AgentMonitored) { |event|
    trigger_action(UpdateKnownHosts.new)
  }

  event_subscribe(Event::AgentUnMonitored) { |event|
    trigger_action(UpdateKnownHosts.new)
  }
end