* Added abunch of required packages to tools/striker-manage-install-target to support installing offline nodes, DR hosts and Striker dashboards.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 5 years ago
parent ed048a5483
commit 2ca19699b8
  1. 2
      html/skins/alteeve/pxe.txt
  2. 5
      rpm/SPECS/anvil.spec
  3. 4
      share/words.xml
  4. 40
      tools/anvil-update-issue
  5. 8
      tools/striker-initialize-host
  6. 68
      tools/striker-manage-install-target

@ -73,7 +73,9 @@ selinux --permissive
%packages
@^minimal-environment
alteeve-el8-repo
perl
rsync
vim
%end

@ -3,7 +3,7 @@
%define anvilgroup admin
Name: anvil
Version: 3.0
Release: 25%{?dist}
Release: 26%{?dist}
Summary: Alteeve Anvil! complete package.
License: GPLv2+
@ -287,6 +287,9 @@ firewall-cmd --add-service=postgresql --permanent
%changelog
* tbd Madison Kelly <mkelly@alteeve.ca> 3.0-26
-
* Mon Sep 23 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-25
- Fixed a couple bugs found in the previous release.

@ -972,7 +972,7 @@ Here we will inject 't_0006', which injects 't_0001' which has a variable: [#!st
<key name="job_0024">Connected!</key>
<key name="job_0025">Unable to connect to: [#!variable!target!#]. Will keep trying for another: [#!variable!timeout!#] seconds...</key>
<key name="job_0026">Unable to connect, the job has failed.</key>
<key name="job_0027">'Initialize host' job: [#!data!switches::job-uuid!#] picked up.</key>
<key name="job_0027">'Initialize host' job: [#!variable!switches::job-uuid!#] picked up.</key>
<key name="job_0028">Adding repositories.</key>
<key name="job_0029">Added the repository for this dashboard.</key>
<key name="job_0030">Red Hat subscription information provides, attempting to register now.</key>
@ -993,7 +993,7 @@ Failure! The return code: [#!variable!return_code!#] was received ('0' was expec
<key name="job_0041">Removing conflicting packages.</key>
<key name="job_0042">Will now install: [#!variable!package!#].</key>
<key name="job_0043">Verifying installation.</key>
<key name="job_0044">[ Failed ] - There may be more information in #!data!path::configs::anvil.conf!#.</key>
<key name="job_0044">[ Failed ] - There may be more information in #!data!path::log::file!#.</key>
<key name="job_0045">Success!</key>
<key name="job_0046">Adding our database connection information to the target's anvil.conf file!</key>
<key name="job_0047">Finished! The target should be ready for initial configuration shortly. If it isn't, please check that the 'anvil-daemon' daemon is running.</key>

@ -0,0 +1,40 @@
#!/usr/bin/perl
#
# This parses the current IP addresses on the local system and writes them to /etc/issue so that they're seen
# by a user at the login prompt. This is meant to be useful during the initialization and setup stages, so
# it's expected to run before the Anvil::Tools module is installed. As such, it doesn't use those modules.
#
use strict;
use warnings;
use IO::Handle;
my $shell_call = "/usr/sbin/ip ip list all";
my $issue = '\S
Kernel \r on an \m
';
my $interface = "";
open (my $file_handle, $shell_call.$redirect."; ".$anvil->data->{path}{exe}{echo}." return_code:\$? |") or $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 0, secure => $secure, priority => "err", key => "log_0014", variables => { shell_call => $shell_call, error => $! }});
while(<$file_handle>)
{
chomp;
my $line = $_;
$line =~ s/\n$//;
$line =~ s/\r$//;
if ($line =~ /^\d+: (.*?): </)
{
$interface = $1
print "In interface: [".$interface."]\n";
}
next if not $interface;
if ($line =~ / inet (\d+\.\d+\.\d+\.\d+)\//)
{
my $ip = $1;
print "- IP: [".$ip."]\n";
}
}
close $file_handle;
exit(0);

@ -194,14 +194,14 @@ EOF
# We'll attach subscriptions if this is set
my $subscribe = 1;
my ($output, $error, $return_code) = $anvil->Remote->call({
debug => 3,
debug => 2,
shell_call => $anvil->data->{path}{exe}{'subscription-manager'}." identity",
password => $anvil->data->{data}{password},
port => $anvil->data->{data}{ssh_port},
target => $anvil->data->{data}{host_ip_address},
remote_user => "root",
});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => {
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => {
output => $output,
error => $error,
return_code => $return_code,
@ -220,7 +220,7 @@ EOF
my $bash_password = $anvil->data->{data}{rh_password};
$bash_password =~ s/'/\\\'/g;
my ($output, $error, $return_code) = $anvil->Remote->call({
debug => 3,
debug => 2,
shell_call => $anvil->data->{path}{exe}{'subscription-manager'}." register --username ".$anvil->data->{data}{rh_user}." --password '".$bash_password."' --auto-attach --force",
password => $anvil->data->{data}{password},
port => $anvil->data->{data}{ssh_port},
@ -592,7 +592,7 @@ sub get_job_details
$anvil->data->{data}{say_target} = "root\@".$anvil->data->{data}{host_ip_address}.":".$anvil->data->{data}{ssh_port};
# Update that we've picked the job up.
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, 'print' => 1, key => "job_0027"});
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, 'print' => 1, key => "job_0027,!!job-uuid!".$anvil->data->{switches}{'job-uuid'}."!!"});
update_progress($anvil, 0, "clear");
update_progress($anvil, 1, "job_0027");

@ -1151,6 +1151,7 @@ sub load_packages
"basesystem.noarch",
"bash-completion.noarch",
"bash.x86_64",
"binutils.x86_64",
"bind-export-libs.x86_64",
"bind-libs-lite.x86_64",
"bind-libs.x86_64",
@ -1207,6 +1208,7 @@ sub load_packages
"corosync.x86_64",
"corosynclib.x86_64",
"cpio.x86_64",
"cpp.x86_64",
"cracklib-dicts.x86_64",
"cracklib.x86_64",
"createrepo_c-libs.x86_64",
@ -1262,6 +1264,7 @@ sub load_packages
e => [
"e2fsprogs-libs.x86_64",
"e2fsprogs.x86_64",
"edk2-ovmf.noarch",
"elfutils-default-yama-scope.noarch",
"elfutils-libelf.x86_64",
"elfutils-libs.x86_64",
@ -1271,6 +1274,7 @@ sub load_packages
"evolution-data-server-langpacks.noarch",
"evolution-data-server.x86_64",
"expat.x86_64",
"expect.x86_64",
],
f => [
"fence-agents-all.x86_64",
@ -1300,6 +1304,7 @@ sub load_packages
"fence-agents-ipmilan.noarch",
"fence-agents-kdump.x86_64",
"fence-agents-mpath.noarch",
"fence-agents-redfish.x86_64",
"fence-agents-rhevm.noarch",
"fence-agents-rsa.noarch",
"fence-agents-rsb.noarch",
@ -1329,6 +1334,7 @@ sub load_packages
g => [
"gawk.x86_64",
"GConf2.x86_64",
"gcc.x86_64",
"gcr.x86_64",
"gdbm-libs.x86_64",
"gdbm.x86_64",
@ -1347,8 +1353,16 @@ sub load_packages
"glib-networking.x86_64",
"glib2.x86_64",
"glibc-common.x86_64",
"glibc-devel.x86_64",
"glibc-langpack-en.x86_64",
"glibc.x86_64",
"glibc-devel.x86_64",
"glibc-headers.x86_64",
"glusterfs.x86_64",
"glusterfs-api.x86_64",
"glusterfs-cli.x86_64",
"glusterfs-client-xlators.x86_64",
"glusterfs-libs.x86_64",
"glx-utils.x86_64",
"gmp.x86_64",
"gnome-bluetooth-libs.x86_64",
@ -1364,6 +1378,7 @@ sub load_packages
"gnome-session.x86_64",
"gnome-settings-daemon.x86_64",
"gnome-shell.x86_64",
"gnome-terminal.x86_64",
"gnome-themes-standard.x86_64",
"gnupg2-smime.x86_64",
"gnupg2.x86_64",
@ -1441,6 +1456,7 @@ sub load_packages
"iscsi-initiator-utils-iscsiuio.x86_64",
"iscsi-initiator-utils.x86_64",
"isns-utils-libs.x86_64",
"isl.x86_64",
"iso-codes.noarch",
"iwl100-firmware.noarch",
"iwl1000-firmware.noarch",
@ -1470,6 +1486,7 @@ sub load_packages
"kbd-misc.noarch",
"kbd.x86_64",
"kernel-core.x86_64",
"kernel-headers.x86_64",
"kernel-modules.x86_64",
"kernel-tools-libs.x86_64",
"kernel-tools.x86_64",
@ -1576,6 +1593,16 @@ sub load_packages
"libkcapi-hmaccalc.x86_64",
"libkcapi.x86_64",
"libknet1.x86_64",
"libknet1-compress-bzip2-plugin.x86_64",
"libknet1-compress-lz4-plugin.x86_64",
"libknet1-compress-lzma-plugin.x86_64",
"libknet1-compress-lzo2-plugin.x86_64",
"libknet1-compress-plugins-all.x86_64",
"libknet1-compress-zlib-plugin.x86_64",
"libknet1-crypto-nss-plugin.x86_64",
"libknet1-crypto-openssl-plugin.x86_64",
"libknet1-crypto-plugins-all.x86_64",
"libknet1-plugins-all.x86_64",
"libksba.x86_64",
"libldb.x86_64",
"libmaxminddb.x86_64",
@ -1586,6 +1613,7 @@ sub load_packages
"libmodulemd.x86_64",
"libmodulemd1.x86_64",
"libmount.x86_64",
"libmpc.x86_64",
"libndp.x86_64",
"libnetfilter_conntrack.x86_64",
"libnfnetlink.x86_64",
@ -1606,6 +1634,7 @@ sub load_packages
"libpipeline.x86_64",
"libpkgconf.x86_64",
"libplist.x86_64",
"libpmem.x86_64",
"libpng.x86_64",
"libpq.x86_64",
"libproxy.x86_64",
@ -1674,14 +1703,15 @@ sub load_packages
"libvirt-daemon-driver-nwfilter.x86_64",
"libvirt-daemon-driver-qemu.x86_64",
"libvirt-daemon-driver-secret.x86_64",
"libvirt-daemon-driver-storage.x86_64",
"libvirt-daemon-driver-storage-core.x86_64",
"libvirt-daemon-driver-storage-disk.x86_64",
"libvirt-daemon-driver-storage-gluster.x86_64",
"libvirt-daemon-driver-storage-iscsi.x86_64",
"libvirt-daemon-driver-storage-logical.x86_64",
"libvirt-daemon-driver-storage-mpath.x86_64",
"libvirt-daemon-driver-storage-rbd.x86_64",
"libvirt-daemon-driver-storage-scsi.x86_64",
"libvirt-daemon-driver-storage.x86_64",
"libvirt-daemon-kvm.x86_64",
"libvirt-daemon.x86_64",
"libvirt-docs.x86_64",
@ -1701,6 +1731,7 @@ sub load_packages
"libwsman1.x86_64",
"libxcb.x86_64",
"libxcrypt.x86_64",
"libxcrypt-devel.x86_64",
"libxkbcommon-x11.x86_64",
"libxkbcommon.x86_64",
"libxkbfile.x86_64",
@ -1798,10 +1829,11 @@ sub load_packages
p => [
"p11-kit-trust.x86_64",
"p11-kit.x86_64",
"pacemaker.x86_64",
"pacemaker-cli.x86_64",
"pacemaker-cluster-libs.x86_64",
"pacemaker-libs.x86_64",
"pacemaker.x86_64",
"pacemaker-schemas.noarch",
"PackageKit-glib.x86_64",
"PackageKit.x86_64",
"pam.x86_64",
@ -1813,10 +1845,14 @@ sub load_packages
"pcre.x86_64",
"pcre2.x86_64",
"pcs.x86_64",
"perl-aliased.noarch",
"perl-Algorithm-C3.noarch",
"perl-Algorithm-Diff.noarch",
"perl-B-Hooks-EndOfScope.noarch",
"perl-CGI.noarch",
"perl-Capture-Tiny.noarch",
"perl-Carp.noarch",
"perl-Class-C3.noarch",
"perl-Class-Data-Inheritable.noarch",
"perl-Class-Method-Modifiers.noarch",
"perl-Compress-Raw-Bzip2.x86_64",
@ -1825,8 +1861,10 @@ sub load_packages
"perl-DBI.x86_64",
"perl-Data-Dump.noarch",
"perl-Data-Dumper.x86_64",
"perl-Data-Dumper-Concise.noarch",
"perl-Data-OptList.noarch",
"perl-Date-Manip.noarch",
"perl-Devel-ArgNames.noarch",
"perl-Devel-Caller.x86_64",
"perl-Devel-GlobalDestruction.noarch",
"perl-Devel-LexAlias.x86_64",
@ -1844,14 +1882,19 @@ sub load_packages
"perl-Encode.x86_64",
"perl-Errno.x86_64",
"perl-Eval-Closure.noarch",
"perl-Eval-WithLexicals.noarch",
"perl-Exception-Class.noarch",
"perl-Exporter.noarch",
"perl-Exporter-Declare.noarch",
"perl-File-BaseDir",
"perl-File-DesktopEntry",
"perl-File-Listing.noarch",
"perl-File-DesktopEntry",
"perl-File-MimeInfo.noarch",
"perl-File-Path.noarch",
"perl-File-Temp.noarch",
"perl-Filter.x86_64",
"perl-Filter-Simple.noarch",
"perl-Future.noarch",
"perl-Getopt-Long.noarch",
"perl-HTML-FromText.noarch",
"perl-HTML-Parser.x86_64",
@ -1862,18 +1905,23 @@ sub load_packages
"perl-HTTP-Message.noarch",
"perl-HTTP-Negotiate.noarch",
"perl-HTTP-Tiny.noarch",
"perl-Import-Into.noarch",
"perl-IO.x86_64",
"perl-IO-Compress.noarch",
"perl-IO-HTML.noarch",
"perl-IO-Socket-IP.noarch",
"perl-IO-Socket-SSL.noarch",
"perl-IO.x86_64",
"perl-IO-Tty.x86_64",
"perl-IPC-SysV.x86_64",
"perl-JSON.noarch",
"perl-JSON-PP.noarch",
"perl-LWP-MediaTypes.noarch",
"perl-Log-Contextual.noarch",
"perl-Log-Dispatch-FileRotate.noarch",
"perl-Log-Dispatch.noarch",
"perl-Log-Journald.x86_64",
"perl-Log-Log4perl.noarch",
"perl-Meta-Builder.noarch",
"perl-MIME-Base64.x86_64",
"perl-MIME-Lite.noarch",
"perl-MIME-Types.noarch",
@ -1885,14 +1933,17 @@ sub load_packages
"perl-Math-Complex.noarch",
"perl-Module-Implementation.noarch",
"perl-Module-Runtime.noarch",
"perl-Moo.noarch",
"perl-Mozilla-CA.noarch",
"perl-NTLM.noarch",
"perl-Net-HTTP.noarch",
"perl-Net-Netmask.noarch",
"perl-Net-OpenSSH.noarch",
"perl-Net-SMTP-SSL.noarch",
"perl-Net-SSH2.x86_64",
"perl-Net-SSLeay.x86_64",
"perl-NetAddr-IP.x86_64",
"perl-Object-Remote.noarch",
"perl-Package-Generator.noarch",
"perl-Package-Stash-XS.x86_64",
"perl-Package-Stash.noarch",
@ -1910,17 +1961,22 @@ sub load_packages
"perl-Ref-Util.noarch",
"perl-Role-Tiny.noarch",
"perl-Scalar-List-Utils.x86_64",
"perl-SelfLoader.noarch",
"perl-Socket.x86_64",
"perl-Socket6.x86_64",
"perl-Specio.noarch",
"perl-Storable.x86_64",
"perl-strictures.noarch",
"perl-String-ShellQuote.noarch",
"perl-Sub-Exporter-Progressive.noarch",
"perl-Sub-Exporter.noarch",
"perl-Sub-Identify.x86_64",
"perl-Sub-Install.noarch",
"perl-Sub-Quote.noarch",
"perl-Sys-Syslog.x86_64",
"perl-Term-ANSIColor.noarch",
"perl-Term-Cap.noarch",
"perl-Text-Balanced.noarch",
"perl-TermReadKey.x86_64",
"perl-Test-Simple.noarch",
"perl-Text-Diff.noarch",
@ -2054,7 +2110,9 @@ sub load_packages
'q' => [
"qemu-guest-agent.x86_64",
"qemu-img.x86_64",
"qemu-kvm.x86_64",
"qemu-kvm-block-curl.x86_64",
"qemu-kvm-block-gluster.x86_64",
"qemu-kvm-block-iscsi.x86_64",
"qemu-kvm-block-rbd.x86_64",
"qemu-kvm-block-ssh.x86_64",
@ -2146,6 +2204,7 @@ sub load_packages
"systemd.x86_64",
],
t => [
"tcl.x86_64",
"teamd.x86_64",
"telnet.x86_64",
"tftp-server.x86_64",
@ -2184,6 +2243,7 @@ sub load_packages
"webkit2gtk3-plugin-process-gtk2.x86_64",
"webkit2gtk3.x86_64",
"webrtc-audio-processing.x86_64",
"wget.x86_64",
"which.x86_64",
"woff2.x86_64",
"wpa_supplicant.x86_64",

Loading…
Cancel
Save