Sha256: 9ec69e0216fad1224f2d65e6577121fcbae69019fbf83ee361fb101c6631450c
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
class Setting::RemoteExecution < Setting def self.load_defaults # Check the table exists return unless super self.transaction do [ self.set('remote_execution_fallback_proxy', N_("Search the host for any proxy with Remote Execution, useful when the host has no subnet or the subnet does not have an execution proxy"), false), self.set('remote_execution_global_proxy', N_("Search for remote execution proxy outside of the proxies assigned to the host. " + "If locations or organizations are enabled, the search will be limited to the host's " + "organization or location."), true), self.set('remote_execution_ssh_user', N_("Default user to use for SSH. You may override per host by setting a parameter called remote_execution_ssh_user."), 'root'), ].each { |s| self.create! s.update(:category => "Setting::RemoteExecution") } end true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_remote_execution-0.1.1 | app/models/setting/remote_execution.rb |
foreman_remote_execution-0.1.0 | app/models/setting/remote_execution.rb |