Advertisement
cdonohoe

conn01_7

Jul 1st, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Kickstart file for conn01
  2.  
  3. #version=DEVEL
  4. install
  5. #url --url=http://mirrors.sonic.net/centos/7/os/x86_64/
  6. url --url=http://192.168.122.1/centos7-base/
  7. lang en_US.UTF-8
  8. keyboard us
  9. 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
  10. rootpw ScalTempP@$$
  11. firewall --disabled
  12. authconfig --enableshadow --passalgo=sha512
  13. selinux --permissive
  14. timezone --utc America/Los_Angeles
  15. bootloader --location=mbr --driveorder=vda --append="crashkernel=auto console=ttyS0,115200"
  16.  
  17.  
  18. clearpart --all --initlabel
  19. zerombr
  20.  
  21. part / --fstype="ext4" --grow --size=1
  22. part swap --recommended
  23.  
  24. repo --name="CentOS" --baseurl=http://192.168.122.1/centos7-base/ --cost=100
  25.  
  26. reboot
  27.  
  28. %packages --nobase
  29. @core
  30. wget
  31. openssh-clients
  32. createrepo
  33. acl
  34. alsa-lib
  35. apr
  36. apr-util
  37. at
  38. atk
  39. attr
  40. audit-libs
  41. autogen-libopts
  42. avahi-libs
  43. basesystem
  44. bash
  45. bc
  46. bind-libs
  47. bind-license
  48. bind-utils
  49. binutils
  50. bzip2
  51. bzip2-libs
  52. ca-certificates
  53. cairo
  54. centos-logos
  55. centos-release
  56. chkconfig
  57. coreutils
  58. cpio
  59. cracklib
  60. cracklib-dicts
  61. cronie
  62. cronie-anacron
  63. cronie-noanacron
  64. crontabs
  65. cryptsetup-libs
  66. cups-client
  67. cups-libs
  68. curl
  69. cyrus-sasl
  70. cyrus-sasl-lib
  71. dbus
  72. dbus-glib
  73. dbus-libs
  74. dejavu-fonts-common
  75. dejavu-sans-mono-fonts
  76. device-mapper
  77. device-mapper-libs
  78. dialog
  79. diffutils
  80. dmidecode
  81. dracut
  82. e2fsprogs-libs
  83. ed
  84. elfutils-libelf
  85. elfutils-libs
  86. expat
  87. file
  88. file-libs
  89. filesystem
  90. findutils
  91. flac-libs
  92. fontconfig
  93. fontpackages-filesystem
  94. freetype
  95. fuse
  96. fuse-libs
  97. gawk
  98. GConf2
  99. gd
  100. gdbm
  101. gdk-pixbuf2
  102. gettext
  103. gettext-libs
  104. ghostscript
  105. ghostscript-fonts
  106. giflib
  107. glib2
  108. glibc
  109. glibc-common
  110. gmp
  111. gnupg2
  112. gnutls
  113. gpgme
  114. graphite2
  115. graphviz
  116. grep
  117. groff-base
  118. gsm
  119. gssproxy
  120. gtk2
  121. gzip
  122. hardlink
  123. harfbuzz
  124. hesiod
  125. hicolor-icon-theme
  126. hostname
  127. httpd
  128. httpd-tools
  129. hwdata
  130. info
  131. initscripts
  132. iproute
  133. iptables
  134. iputils
  135. jasper-libs
  136. java-1.6.0-openjdk
  137. java-1.7.0-openjdk
  138. java-1.7.0-openjdk-devel
  139. java-1.7.0-openjdk-headless
  140. java-1.8.0-openjdk-headless
  141. java-1.8.0-openjdk-headless-debug
  142. javapackages-tools
  143. jbigkit-libs
  144. json-c
  145. keyutils
  146. keyutils-libs
  147. kmod
  148. kmod-libs
  149. kpartx
  150. krb5-libs
  151. lcms2
  152. less
  153. libacl
  154. libarchive
  155. libassuan
  156. libasyncns
  157. libattr
  158. libbasicobjects
  159. libblkid
  160. libcap
  161. libcap-ng
  162. libcollection
  163. libcom_err
  164. libcroco
  165. libcurl
  166. libdb
  167. libdb-utils
  168. libdrm
  169. libedit
  170. libestr
  171. libevent
  172. libffi
  173. libfontenc
  174. libgcc
  175. libgcrypt
  176. libgomp
  177. libgpg-error
  178. libICE
  179. libidn
  180. libini_config
  181. libjpeg-turbo
  182. libldb
  183. libmnl
  184. libmount
  185. libnetfilter_conntrack
  186. libnfnetlink
  187. libnfsidmap
  188. libntlm
  189. libogg
  190. libpath_utils
  191. libpciaccess
  192. libpipeline
  193. libpng
  194. libpwquality
  195. libref_array
  196. librsvg2
  197. libselinux
  198. libselinux-utils
  199. libsemanage
  200. libsepol
  201. libSM
  202. libsmbclient
  203. libsndfile
  204. libssh2
  205. libstdc++
  206. libtalloc
  207. libtasn1
  208. libtdb
  209. libtevent
  210. libthai
  211. libtiff
  212. libtirpc
  213. libtool-ltdl
  214. libunistring
  215. libunwind
  216. libuser
  217. libutempter
  218. libuuid
  219. libverto
  220. libverto-tevent
  221. libvorbis
  222. libwbclient
  223. libX11
  224. libX11-common
  225. libXau
  226. libXaw
  227. libxcb
  228. libXcomposite
  229. libXcursor
  230. libXdamage
  231. libXext
  232. libXfixes
  233. libXfont
  234. libXft
  235. libXi
  236. libXinerama
  237. libxml2
  238. libxml2-python
  239. libXmu
  240. libXpm
  241. libXrandr
  242. libXrender
  243. libxshmfence
  244. libxslt
  245. libXt
  246. libXtst
  247. libXxf86vm
  248. libyaml
  249. lksctp-tools
  250. lm_sensors-libs
  251. logrotate
  252. lua
  253. lzo
  254. m2crypto
  255. m4
  256. mailcap
  257. mailx
  258. make
  259. man-db
  260. mariadb-libs
  261. mesa-libEGL
  262. mesa-libgbm
  263. mesa-libGL
  264. mesa-libglapi
  265. mod_ssl
  266. mod_wsgi
  267. mozjs17
  268. ncurses
  269. ncurses-base
  270. ncurses-libs
  271. net-snmp
  272. net-snmp-agent-libs
  273. net-snmp-libs
  274. nettle
  275. nfs-utils
  276. nspr
  277. nss
  278. nss-softokn
  279. nss-softokn-freebl
  280. nss-sysinit
  281. nss-tools
  282. nss-util
  283. ntp
  284. ntpdate
  285. openldap
  286. openssl
  287. openssl-libs
  288. p11-kit
  289. p11-kit-trust
  290. pam
  291. pango
  292. parted
  293. passwd
  294. patch
  295. pciutils
  296. pciutils-libs
  297. pcre
  298. pcsc-lite-libs
  299. perl
  300. perl-Carp
  301. perl-constant
  302. perl-Data-Dumper
  303. perl-Encode
  304. perl-Exporter
  305. perl-File-Path
  306. perl-File-Temp
  307. perl-Filter
  308. perl-Getopt-Long
  309. perl-HTTP-Tiny
  310. perl-libs
  311. perl-macros
  312. perl-parent
  313. perl-PathTools
  314. perl-Pod-Escapes
  315. perl-podlators
  316. perl-Pod-Perldoc
  317. perl-Pod-Simple
  318. perl-Pod-Usage
  319. perl-Scalar-List-Utils
  320. perl-Socket
  321. perl-Storable
  322. perl-Text-ParseWords
  323. perl-threads
  324. perl-threads-shared
  325. perl-Time-HiRes
  326. perl-Time-Local
  327. pinentry
  328. pixman
  329. pkgconfig
  330. policycoreutils
  331. polkit
  332. polkit-pkla-compat
  333. poppler-data
  334. popt
  335. postfix
  336. procmail
  337. procps-ng
  338. psmisc
  339. pth
  340. pulseaudio-libs
  341. pygpgme
  342. pyliblzma
  343. pyOpenSSL
  344. pytalloc
  345. python
  346. python-babel
  347. python-backports
  348. python-backports-ssl_match_hostname
  349. python-beaker
  350. python-chardet
  351. python-dateutil
  352. python-devel
  353. python-iniparse
  354. python-javapackages
  355. python-jinja2
  356. python-kitchen
  357. python-libs
  358. python-lxml
  359. python-magic
  360. python-mako
  361. python-markupsafe
  362. python-paste
  363. python-pyasn1
  364. python-pycurl
  365. python-requests
  366. python-setproctitle
  367. python-setuptools
  368. python-six
  369. python-sqlalchemy
  370. python-tempita
  371. python-tornado
  372. python-urlgrabber
  373. python-urllib3
  374. python-virtualenv
  375. pyxattr
  376. PyYAML
  377. qrencode-libs
  378. quota
  379. quota-nls
  380. readline
  381. redhat-lsb-core
  382. redhat-lsb-submod-security
  383. rpcbind
  384. rpm
  385. rpm-build-libs
  386. rpm-libs
  387. rpm-python
  388. rrdtool
  389. rrdtool-python
  390. rsync
  391. rsyslog
  392. samba-client-libs
  393. samba-common
  394. samba-common-libs
  395. samba-common-tools
  396. samba-libs
  397. samba-test-libs
  398. samba-winbind
  399. samba-winbind-modules
  400. sed
  401. sendmail
  402. setup
  403. shadow-utils
  404. shared-mime-info
  405. snappy
  406. sos
  407. spax
  408. sqlite
  409. systemd
  410. systemd-libs
  411. systemd-python
  412. systemd-sysv
  413. sysvinit-tools
  414. tar
  415. tcp_wrappers
  416. tcp_wrappers-libs
  417. time
  418. tmux
  419. trousers
  420. ttmkfdir
  421. tzdata
  422. tzdata-java
  423. urw-fonts
  424. ustr
  425. util-linux
  426. virt-what
  427. which
  428. xorg-x11-fonts-Type1
  429. xorg-x11-font-utils
  430. xz
  431. xz-libs
  432. yum
  433. yum-metadata-parser
  434. yum-plugin-fastestmirror
  435. yum-utils
  436. zlib
  437. %end
  438.  
  439.  
  440. %post --log=/root/ks-post.log
  441. echo "Writing hosts file..."
  442. cat > /etc/hosts << EOF
  443. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  444. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  445. 192.168.122.100 super01 supervisor salt
  446. 192.168.122.101 store01
  447. 192.168.122.102 store02
  448. 192.168.122.103 store03
  449. 192.168.122.104 store04
  450. 192.168.122.105 store05
  451. 192.168.122.106 store06
  452. 192.168.122.107 conn01
  453. EOF
  454. echo "Creating temporary repo for CentOS updates..."
  455. cat > /etc/yum.repos.d/centos7-updates.repo << EOF3
  456. [centos7-updates]
  457. name=CentOS-$releasever - Updates
  458. baseurl=http://192.168.122.1/cent7-updates/
  459. gpgcheck=1
  460. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  461. enabled = 1
  462. EOF3
  463. echo "Patching the installation..."
  464. yum -y --disablerepo=* --enablerepo=centos7-updates update;
  465. echo "turning on salt"
  466. yum -y install https://repo.saltstack.com/yum/redhat/salt-repo-2015.8-3.el7.noarch.rpm;
  467. yum -y install salt-minion;
  468. chkconfig salt-minion on;
  469. service salt-minion restart;
  470. echo "done with salt"
  471. yum -y install epel-release;
  472. mkdir -p -m0700 /root/.ssh/;
  473. cat > /root/.ssh/authorized_keys << EOF2
  474. ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw9SBDahNX5LwpfXhFME7PUyM2PhLULgAgPmh0b4wz+uIU9f3+hcO8wooFji6ouZgnJRB7hL9pFwhZyPQBgVnYacZsenif7rhFpUdgFe0th/Tcq0fiTmjQmAcsGymyp0wVViZ3ewBWSGqS2i/KWq0y5PRQ6EMnw6N0+Rsv0/ePabgpA0UCW3cMvkog0/z2s5ljXAWHynofLdEMuBCllC83+uQjAHjYSavJZxIAhIL9TBaZX/PM6QjJSi3n8fS4fb1N4IKDYFGRnAg5NYMuNxNfxkOsFryy/6Ldk8CHl3OZqQbwOyJJL00biQ581fn+QV8pdsUEd+fTHlqwSVYUZPOTQ== root@chrisd.scality.com
  475. EOF2
  476. chmod 600 /root/.ssh/authorized_keys;
  477. rm -f /etc/yum.repos.d/centos7-updates.repo;
  478. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement