Advertisement
cdonohoe

store02_7

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