To understand how the start_server
script works, see the MIQ guides on minimal server mode.
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
#!/usr/bin/env ruby | |
# gems | |
# * octokit | |
require 'octokit' | |
require 'io/console' | |
REPO = "ManageIQ/manageiq" |
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
describe ManageIQ::Providers::Lenovo::PhysicalInfraManager::RefreshParser do | |
it "converts ems inventory to hashes" do | |
node = double("Fake Node", :uuid => "uuid", :hostname => "host", :macAddress => "mac", :description => "description") | |
connection = double("Fake connection", :discover_nodes => [node]) | |
ems = double("Fake Ems", :name => "Fake Lenovo", :id => 123, :connect => connection) | |
parser = described_class.new(ems) | |
hashes = parser.ems_inv_to_hashes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/ems_common.rb b/app/controllers/ems_common.rb | |
index 4ecc903..b6f6a79 100644 | |
--- a/app/controllers/ems_common.rb | |
+++ b/app/controllers/ems_common.rb | |
@@ -596,6 +596,7 @@ module EmsCommon | |
end | |
@edit[:openstack_api_versions] = retrieve_openstack_api_versions | |
+ @edit[:nuage_api_versions] = retrieve_nuage_api_versions | |
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 8cc5af18af1db13f07bb537c49fd2b0a844122c5 Mon Sep 17 00:00:00 2001 | |
From: Greg Blomquist <[email protected]> | |
Date: Fri, 3 Jun 2016 11:59:18 -0400 | |
Subject: [PATCH] PAUSED: Use `git resume` to continue working. | |
--- | |
.../layouts/angular-bootstrap/_endpoints_angular.html.haml | 14 ++++++++++++-- | |
.../layouts/angular/_multi_auth_credentials.html.haml | 4 ++++ | |
app/views/shared/views/ems_common/angular/_form.html.haml | 10 ++++++++++ | |
3 files changed, 26 insertions(+), 2 deletions(-) |
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 | |
USAGE="$0 -f [FORMAT] | |
FORMAT long|med|short | |
" | |
DB="vmdb_development" | |
FORMAT="short" |
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
verify_credentials_with_ssh calls connect_ssh: https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L857 | |
connect_ssh calls MiqSshUtil#shell_with_ssu: https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L1139 | |
MiqSshUtil#shell_with_su calls #new: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L217 | |
MiqSshUtil#new calls #run_session: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L114 | |
MiqSshUtil#run_session calls MiqSockUtil#getFullyQualifiedDomainName: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L256-L258 |
- Remove the worker class name from class_names.rb
- Start your sever normally
- Make sure your provider is added to your appliance (for provider-specific workers like refreshers and event catchers)
- Run rails console (see rails script below)
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
1. Install HA Proxy package | |
#> yum install haproxy | |
2. Generate the self-signed cert | |
#> mkdir -p /etc/pki/haproxy | |
#> umask 077 && openssl genrsa -out /etc/pki/haproxy/haproxy.key 1024 | |
#> umask 022 && openssl req -key /etc/pki/haproxy/haproxy.key \ | |
-out /etc/pki/haproxy/haproxy.crt \ |