Centos 7 Kickstart rpm download issues

Issues related to applications and software problems
awest
Posts: 3
Joined: 2017/06/19 17:35:00

Centos 7 Kickstart rpm download issues

Postby awest » 2017/06/19 17:48:46

So I am attempting to create a testing Kickstart file for servers/computers in the office. The issue i am running into is that i am trying to create a kickstart file that downloads and launches certain applications without using the internet at all, The problem im running into is I am able to download everything I need on my virtual machine and it is operating effeciently but when i move the rpm files over to my host computer into the packages folder and rerun my Kickstart.cfg file it tells me that the file or package does not exist.

The big thing is I just need to figure out the dependices for the applications i am trying to download and also not have to download the "ENTIRE" 2TB Epel-release file for the 8 applications that i need here is my KS file.

Now I already have the applications .RPM in my KS config Packages folder but i believe and am not sure how or if i need to create a repository folder to make it work within the Kickstart file.

#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# License agreement
eula --agreed
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network --bootproto=dhcp --device=enp0s3 --hostname=localhost
# Reboot after installation
reboot
# Root password
rootpw --plaintext Passw0rd
# System services
services --disabled="chronyd" --enabled="NetworkManager,sshd"
# System timezone
timezone America/New_York --isUtc --nontp
user --groups=wheel --name=admin --password=Passw0rd --gecos="admin"
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=lvm
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=sda

%post

#Shut off Centos 7 Firewalld
systemctl disable firewalld
systemctl stop firewalld
sed -i 's/Ciphers/\#Ciphers/' /etc/ssh/sshd_config
echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc" >> /etc/ssh/sshd_config
%end

%packages --ignoremissing
@^gnome-desktop-environment
@base
@core
@desktop-debugging
@development
@dial-up
@directory-client
@fonts
@gnome-apps
@gnome-desktop
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@java-platform
@multimedia
@network-file-system-client
@networkmanager-submodules
@print-client
@security-tools
@x11
centos-release-openstack
git
kexec-tools
kexec-tools
libxml2
libxslt-devel
libzip-devel
openscap
openscap-scanner
python
python-devel
python-glanceclient
python-heatclient
python-lxml
python-muranoclient
python-neutroclient
python-pip
python-swiftclient
scap-security-guide

%end

%addon org_fedora_oscap
content-type = scap-security-guide
profile = stig-rhel7-server-upstream
%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end





the applications that i need that wont work and are giving me the does not exist when i run my Virtual machine are :
python-devel
python-glanceclient
python-heatclient
python-lxml
python-muranoclient
python-neutroclient
python-pip
python-swiftclient
scap-security-guide

User avatar
TrevorH
Forum Moderator
Posts: 21213
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 Kickstart rpm download issues

Postby TrevorH » 2017/06/19 18:26:24

Can you not just add the EPEL repo to your kickstart with a "repo" line or is that forbidden?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

awest
Posts: 3
Joined: 2017/06/19 17:35:00

Re: Centos 7 Kickstart rpm download issues

Postby awest » 2017/06/19 18:48:38

TrevorH wrote:Can you not just add the EPEL repo to your kickstart with a "repo" line or is that forbidden?


Trying it now

User avatar
TrevorH
Forum Moderator
Posts: 21213
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 Kickstart rpm download issues

Postby TrevorH » 2017/06/19 19:01:39

As long as your network works and you can resolve DNS you should be fine.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

awest
Posts: 3
Joined: 2017/06/19 17:35:00

Re: Centos 7 Kickstart rpm download issues

Postby awest » 2017/06/19 19:58:52

So i tried it the problem is with what i am trying to do I cannot have internet but I am downloading all the dependincies onto my test KS file now and seeing if this fixes my issues.