module ForemanAcd

Module required to start the Foreman Rails engine

The ForemanAcd module

Constants

VERSION

Public Class Methods

acd_base_path() click to toggle source
# File lib/foreman_acd.rb, line 7
def self.acd_base_path
  '/var/lib/foreman/foreman_acd/'
end
ansible_playbook_path() click to toggle source
# File lib/foreman_acd.rb, line 11
def self.ansible_playbook_path
  File.join(acd_base_path, 'ansible-playbooks')
end
proxy_setting() click to toggle source
# File lib/foreman_acd.rb, line 15
def self.proxy_setting
  HttpProxy.default_global_content_proxy&.full_url ||
    Setting[:http_proxy]
end
register_rex_feature() click to toggle source
# File lib/foreman_acd/engine.rb, line 72
def self.register_rex_feature
  return unless ForemanAcd.with_remote_execution?
  RemoteExecutionFeature.register(
    :run_acd_ansible_playbook,
    N_('Run playbook for ACD'),
    {
      :description => N_('Run an Ansible playbook to configure ACD application'),
      :provided_inputs => %w[application_name playbook_name playbook_path inventory_path]
    }
  )
end
with_katello?() click to toggle source
# File lib/foreman_acd/engine.rb, line 62
def self.with_katello?
  defined?(::Katello)
end
with_remote_execution?() click to toggle source
# File lib/foreman_acd/engine.rb, line 66
def self.with_remote_execution?
  RemoteExecutionFeature
rescue StandardError
  false
end