Sha256: 9d96b0efae961c4662635e831c7ef8f0f2df7d5a6780fca3fa4cbba8727755f8
Contents?: true
Size: 1.71 KB
Versions: 4
Compression:
Stored size: 1.71 KB
Contents
# frozen_string_literal: true require 'foreman_remote_execution' module ForemanAnsible # Dependencies related with the remote execution plugin class Engine < ::Rails::Engine config.to_prepare do RemoteExecutionProvider.register( :Ansible, ForemanAnsible::AnsibleProvider ) ForemanAnsible::Engine.register_rex_feature end def self.register_rex_feature RemoteExecutionFeature.register( :ansible_run_host, N_('Run Ansible roles'), :description => N_('Runs an Ansible playbook which contains all'\ ' the roles defined for a host'), :host_action_button => true ) RemoteExecutionFeature.register( :ansible_run_playbook, N_('Run playbook'), :description => N_('Run an Ansible playbook against given hosts'), :provided_inputs => %w[playbook] ) RemoteExecutionFeature.register( :ansible_enable_web_console, N_('Enable web console'), :description => N_('Run an Ansible playbook to enable web console on given hosts'), :host_action_button => true ) RemoteExecutionFeature.register( :ansible_run_capsule_upgrade, N_('Upgrade Capsules on given hosts'), :description => N_('Upgrade Capsules on given Capsule server hosts'), :proxy_selector_override => ::RemoteExecutionProxySelector::INTERNAL_PROXY ) RemoteExecutionFeature.register( :ansible_run_capsule_update, N_('Update Capsules on given hosts'), :description => N_('Update Capsules on given Capsule server hosts'), :proxy_selector_override => ::RemoteExecutionProxySelector::INTERNAL_PROXY ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems