This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fedora:30 as base | |
ARG RUBY_MODULE="ruby:2.6" | |
ARG NODEJS_MODULE="nodejs:11" | |
ARG HOME=/home/foreman | |
RUN echo "tsflags=nodocs" >> /etc/dnf/dnf.conf && dnf -y upgrade && dnf -y module install ${RUBY_MODULE} ${NODEJS_MODULE} && dnf -y install mysql-libs mariadb-connector-c postgresql-libs ruby{,gems} rubygem-{rake,bundler} nc hostname && dnf clean all && rm -rf /var/cache/dnf/ | |
WORKDIR $HOME | |
RUN groupadd -r foreman -f -g 1001 && useradd -u 1001 -r -g foreman -d $HOME -s /sbin/nologin -c "Foreman Application User" foreman && chown -R 1001:1001 $HOME | |
COPY entrypoint.sh /usr/bin/ | |
RUN chmod +x /usr/bin/entrypoint.sh | |
ENTRYPOINT entrypoint.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js | |
index 26f716169..4cb088a7f 100644 | |
--- a/app/assets/javascripts/application.js | |
+++ b/app/assets/javascripts/application.js | |
@@ -1,8 +1,6 @@ | |
//= require jquery.turbolinks | |
//= require turbolinks | |
-//= require jquery.ui.autocomplete | |
//= require jquery.ui.spinner | |
-//= require scoped_search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## usage | |
#./nmap-ansible-facts.sh 192.168.0.0/24 | |
#! /bin/bash -x | |
NETWORK=$1 | |
tmpfile=$(mktemp /tmp/foreman-ansible-import.XXXXXX) | |
nmap -p 22 -Pn -R -oG - $1 | awk '/open/{print $2}' > $tmpfile | |
ansible -u root -k -i $tmpfile all -m setup | |
\rm -rf $tmpfile% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::RecordNotFound: Couldn't find Setting with [WHERE "settings"."name" = ?] | |
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:343:in `raise_record_not_found_exception!' | |
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:132:in `first!' | |
/home/foreman/app/models/setting.rb:111:in `[]=' | |
/home/foreman/db/seeds.d/050-taxonomies.rb:34:in `block (3 levels) in <top (required)>' | |
/home/foreman/vendor/ruby/2.5.0/gems/audited-4.8.0/lib/audited/auditor.rb:353:in `without_auditing' | |
/home/foreman/db/seeds.d/050-taxonomies.rb:8:in `block (2 levels) in <top (required)>' | |
/home/foreman/db/seeds.d/050-taxonomies.rb:7:in `each' | |
/home/foreman/db/seeds.d/050-taxonomies.rb:7:in `block in <top (required)>' | |
/home/foreman/app/models/concerns/foreman/thread_session.rb:104:in `as' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/assets/javascripts/proxy_status/logs.js b/app/assets/javascripts/proxy_status/logs.js | |
deleted file mode 100644 | |
index 0df7e900e..000000000 | |
--- a/app/assets/javascripts/proxy_status/logs.js | |
+++ /dev/null | |
@@ -1,98 +0,0 @@ | |
-function filterLogsReset() { | |
- var table = $('#table-proxy-status-logs').DataTable(); | |
- table.search('').draw(); | |
-} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/smart_proxies/logs/_failed_modules.html.erb b/app/views/smart_proxies/logs/_failed_modules.html.erb | |
index a986d25ef..999a7c500 100644 | |
--- a/app/views/smart_proxies/logs/_failed_modules.html.erb | |
+++ b/app/views/smart_proxies/logs/_failed_modules.html.erb | |
@@ -1,6 +1,6 @@ | |
<% if modules.present? %> | |
<% modules.each do |module_name, error_message| %> | |
- <a href="#logs" onclick="filterLogsByMessage('<%= module_name %>')" data-toggle="tooltip" data-placement="top" title="<%= error_message %>"><%= Feature.name_map[module_name] || module_name.humanize %></a> | |
+ <a href="#logs" onclick="tfm.smartProxy.filterLogsByMessage('<%= module_name %>')" data-toggle="tooltip" data-placement="top" title="<%= error_message %>"><%= Feature.name_map[module_name] || module_name.humanize %></a> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/audits_controller.rb b/app/controllers/audits_controller.rb | |
index 4c8ecb34e..ae8ee85de 100644 | |
--- a/app/controllers/audits_controller.rb | |
+++ b/app/controllers/audits_controller.rb | |
@@ -4,8 +4,13 @@ class AuditsController < ReactController | |
before_action :setup_search_options, :only => :index | |
def index | |
- @audits = resource_base_search_and_page.preload(:user) | |
- @host = resource_finder(Host.authorized(:view_hosts), params[:host_id]) if params[:host_id] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/audits_controller.rb b/app/controllers/audits_controller.rb | |
index 4c8ecb34e..ae8ee85de 100644 | |
--- a/app/controllers/audits_controller.rb | |
+++ b/app/controllers/audits_controller.rb | |
@@ -4,8 +4,13 @@ class AuditsController < ReactController | |
before_action :setup_search_options, :only => :index | |
def index | |
- @audits = resource_base_search_and_page.preload(:user) | |
- @host = resource_finder(Host.authorized(:view_hosts), params[:host_id]) if params[:host_id] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
cd ~/git/foreman | |
export FOREMAN_APIPIE_LANGS=en | |
export RAILS_ENV=production | |
export WEBPACK_BUILD_SERVER=fdev-backup | |
git pull && | |
( | |
gem install bundler && bundle update && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
RUN echo "tsflags=nodocs" >> /etc/yum.conf && \ | |
yum -y install epel-release && \ | |
curl -sL https://rpm.nodesource.com/setup_10.x | bash - && \ | |
yum -y install which crudini git git-annex obal tito mock scl-utils-build nodejs jq && \ | |
yum clean all | |
RUN git clone https://github.com/theforeman/foreman-packaging -b rpm/develop |