Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Kickstart file for conn01
- #version=DEVEL
- install
- #url --url=http://mirrors.sonic.net/centos/7/os/x86_64/
- url --url=http://192.168.122.1/centos7-base/
- lang en_US.UTF-8
- keyboard us
- network --hostname conn01 --onboot yes --device eth0 --bootproto static --ip 192.168.122.107 --netmask 255.255.255.0 --gateway 192.168.122.1 --ipv6 auto --nameserver 8.8.8.8
- rootpw ScalTempP@$$
- firewall --disabled
- authconfig --enableshadow --passalgo=sha512
- selinux --permissive
- timezone --utc America/Los_Angeles
- bootloader --location=mbr --driveorder=vda --append="crashkernel=auto console=ttyS0,115200"
- clearpart --all --initlabel
- zerombr
- part / --fstype="ext4" --grow --size=1
- part swap --recommended
- repo --name="CentOS" --baseurl=http://192.168.122.1/centos7-base/ --cost=100
- reboot
- %packages --nobase
- @core
- wget
- openssh-clients
- createrepo
- acl
- alsa-lib
- apr
- apr-util
- at
- atk
- attr
- audit-libs
- autogen-libopts
- avahi-libs
- basesystem
- bash
- bc
- bind-libs
- bind-license
- bind-utils
- binutils
- bzip2
- bzip2-libs
- ca-certificates
- cairo
- centos-logos
- centos-release
- chkconfig
- coreutils
- cpio
- cracklib
- cracklib-dicts
- cronie
- cronie-anacron
- cronie-noanacron
- crontabs
- cryptsetup-libs
- cups-client
- cups-libs
- curl
- cyrus-sasl
- cyrus-sasl-lib
- dbus
- dbus-glib
- dbus-libs
- dejavu-fonts-common
- dejavu-sans-mono-fonts
- device-mapper
- device-mapper-libs
- dialog
- diffutils
- dmidecode
- dracut
- e2fsprogs-libs
- ed
- elfutils-libelf
- elfutils-libs
- expat
- file
- file-libs
- filesystem
- findutils
- flac-libs
- fontconfig
- fontpackages-filesystem
- freetype
- fuse
- fuse-libs
- gawk
- GConf2
- gd
- gdbm
- gdk-pixbuf2
- gettext
- gettext-libs
- ghostscript
- ghostscript-fonts
- giflib
- glib2
- glibc
- glibc-common
- gmp
- gnupg2
- gnutls
- gpgme
- graphite2
- graphviz
- grep
- groff-base
- gsm
- gssproxy
- gtk2
- gzip
- hardlink
- harfbuzz
- hesiod
- hicolor-icon-theme
- hostname
- httpd
- httpd-tools
- hwdata
- info
- initscripts
- iproute
- iptables
- iputils
- jasper-libs
- java-1.6.0-openjdk
- java-1.7.0-openjdk
- java-1.7.0-openjdk-devel
- java-1.7.0-openjdk-headless
- java-1.8.0-openjdk-headless
- java-1.8.0-openjdk-headless-debug
- javapackages-tools
- jbigkit-libs
- json-c
- keyutils
- keyutils-libs
- kmod
- kmod-libs
- kpartx
- krb5-libs
- lcms2
- less
- libacl
- libarchive
- libassuan
- libasyncns
- libattr
- libbasicobjects
- libblkid
- libcap
- libcap-ng
- libcollection
- libcom_err
- libcroco
- libcurl
- libdb
- libdb-utils
- libdrm
- libedit
- libestr
- libevent
- libffi
- libfontenc
- libgcc
- libgcrypt
- libgomp
- libgpg-error
- libICE
- libidn
- libini_config
- libjpeg-turbo
- libldb
- libmnl
- libmount
- libnetfilter_conntrack
- libnfnetlink
- libnfsidmap
- libntlm
- libogg
- libpath_utils
- libpciaccess
- libpipeline
- libpng
- libpwquality
- libref_array
- librsvg2
- libselinux
- libselinux-utils
- libsemanage
- libsepol
- libSM
- libsmbclient
- libsndfile
- libssh2
- libstdc++
- libtalloc
- libtasn1
- libtdb
- libtevent
- libthai
- libtiff
- libtirpc
- libtool-ltdl
- libunistring
- libunwind
- libuser
- libutempter
- libuuid
- libverto
- libverto-tevent
- libvorbis
- libwbclient
- libX11
- libX11-common
- libXau
- libXaw
- libxcb
- libXcomposite
- libXcursor
- libXdamage
- libXext
- libXfixes
- libXfont
- libXft
- libXi
- libXinerama
- libxml2
- libxml2-python
- libXmu
- libXpm
- libXrandr
- libXrender
- libxshmfence
- libxslt
- libXt
- libXtst
- libXxf86vm
- libyaml
- lksctp-tools
- lm_sensors-libs
- logrotate
- lua
- lzo
- m2crypto
- m4
- mailcap
- mailx
- make
- man-db
- mariadb-libs
- mesa-libEGL
- mesa-libgbm
- mesa-libGL
- mesa-libglapi
- mod_ssl
- mod_wsgi
- mozjs17
- ncurses
- ncurses-base
- ncurses-libs
- net-snmp
- net-snmp-agent-libs
- net-snmp-libs
- nettle
- nfs-utils
- nspr
- nss
- nss-softokn
- nss-softokn-freebl
- nss-sysinit
- nss-tools
- nss-util
- ntp
- ntpdate
- openldap
- openssl
- openssl-libs
- p11-kit
- p11-kit-trust
- pam
- pango
- parted
- passwd
- patch
- pciutils
- pciutils-libs
- pcre
- pcsc-lite-libs
- perl
- perl-Carp
- perl-constant
- perl-Data-Dumper
- perl-Encode
- perl-Exporter
- perl-File-Path
- perl-File-Temp
- perl-Filter
- perl-Getopt-Long
- perl-HTTP-Tiny
- perl-libs
- perl-macros
- perl-parent
- perl-PathTools
- perl-Pod-Escapes
- perl-podlators
- perl-Pod-Perldoc
- perl-Pod-Simple
- perl-Pod-Usage
- perl-Scalar-List-Utils
- perl-Socket
- perl-Storable
- perl-Text-ParseWords
- perl-threads
- perl-threads-shared
- perl-Time-HiRes
- perl-Time-Local
- pinentry
- pixman
- pkgconfig
- policycoreutils
- polkit
- polkit-pkla-compat
- poppler-data
- popt
- postfix
- procmail
- procps-ng
- psmisc
- pth
- pulseaudio-libs
- pygpgme
- pyliblzma
- pyOpenSSL
- pytalloc
- python
- python-babel
- python-backports
- python-backports-ssl_match_hostname
- python-beaker
- python-chardet
- python-dateutil
- python-devel
- python-iniparse
- python-javapackages
- python-jinja2
- python-kitchen
- python-libs
- python-lxml
- python-magic
- python-mako
- python-markupsafe
- python-paste
- python-pyasn1
- python-pycurl
- python-requests
- python-setproctitle
- python-setuptools
- python-six
- python-sqlalchemy
- python-tempita
- python-tornado
- python-urlgrabber
- python-urllib3
- python-virtualenv
- pyxattr
- PyYAML
- qrencode-libs
- quota
- quota-nls
- readline
- redhat-lsb-core
- redhat-lsb-submod-security
- rpcbind
- rpm
- rpm-build-libs
- rpm-libs
- rpm-python
- rrdtool
- rrdtool-python
- rsync
- rsyslog
- samba-client-libs
- samba-common
- samba-common-libs
- samba-common-tools
- samba-libs
- samba-test-libs
- samba-winbind
- samba-winbind-modules
- sed
- sendmail
- setup
- shadow-utils
- shared-mime-info
- snappy
- sos
- spax
- sqlite
- systemd
- systemd-libs
- systemd-python
- systemd-sysv
- sysvinit-tools
- tar
- tcp_wrappers
- tcp_wrappers-libs
- time
- tmux
- trousers
- ttmkfdir
- tzdata
- tzdata-java
- urw-fonts
- ustr
- util-linux
- virt-what
- which
- xorg-x11-fonts-Type1
- xorg-x11-font-utils
- xz
- xz-libs
- yum
- yum-metadata-parser
- yum-plugin-fastestmirror
- yum-utils
- zlib
- %end
- %post --log=/root/ks-post.log
- echo "Writing hosts file..."
- cat > /etc/hosts << EOF
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
- 192.168.122.100 super01 supervisor salt
- 192.168.122.101 store01
- 192.168.122.102 store02
- 192.168.122.103 store03
- 192.168.122.104 store04
- 192.168.122.105 store05
- 192.168.122.106 store06
- 192.168.122.107 conn01
- EOF
- echo "Creating temporary repo for CentOS updates..."
- cat > /etc/yum.repos.d/centos7-updates.repo << EOF3
- [centos7-updates]
- name=CentOS-$releasever - Updates
- baseurl=http://192.168.122.1/cent7-updates/
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- enabled = 1
- EOF3
- echo "Patching the installation..."
- yum -y --disablerepo=* --enablerepo=centos7-updates update;
- echo "turning on salt"
- yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-2015.8-3.el7.noarch.rpm;
- yum -y install salt-minion;
- chkconfig salt-minion on;
- service salt-minion restart;
- echo "done with salt"
- yum -y install epel-release;
- mkdir -p -m0700 /root/.ssh/;
- cat > /root/.ssh/authorized_keys << EOF2
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw9SBDahNX5LwpfXhFME7PUyM2PhLULgAgPmh0b4wz+uIU9f3+hcO8wooFji6ouZgnJRB7hL9pFwhZyPQBgVnYacZsenif7rhFpUdgFe0th/Tcq0fiTmjQmAcsGymyp0wVViZ3ewBWSGqS2i/KWq0y5PRQ6EMnw6N0+Rsv0/ePabgpA0UCW3cMvkog0/z2s5ljXAWHynofLdEMuBCllC83+uQjAHjYSavJZxIAhIL9TBaZX/PM6QjJSi3n8fS4fb1N4IKDYFGRnAg5NYMuNxNfxkOsFryy/6Ldk8CHl3OZqQbwOyJJL00biQ581fn+QV8pdsUEd+fTHlqwSVYUZPOTQ== root@chrisd.scality.com
- EOF2
- chmod 600 /root/.ssh/authorized_keys;
- rm -f /etc/yum.repos.d/centos7-updates.repo;
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement