Advertisement
cdonohoe

conn01

Jun 27th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. # Kickstart file for conn01
  2.  
  3. #version=DEVEL
  4. install
  5. url --url=http://mirrors.sonic.net/centos/6/os/x86_64/
  6. lang en_US.UTF-8
  7. keyboard us
  8. 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
  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 yes
  19.  
  20. part / --bytes-per-inode=4096 --fstype="ext4" --grow --size=1
  21. part swap --recommended
  22.  
  23. repo --name="CentOS" --baseurl=http://mirrors.sonic.net/centos/6/os/x86_64/ --cost=100
  24.  
  25. reboot
  26.  
  27. %packages --nobase
  28. @core
  29. openssh-clients
  30. yum-utils
  31. createrepo
  32. redhat-lsb-core
  33. wget
  34. rpcbind
  35. nfs-utils
  36. apr
  37. apr-util
  38. apr-util-ldap
  39. at
  40. atk
  41. attr
  42. audit-libs
  43. avahi-libs
  44. basesystem
  45. bash
  46. bc
  47. bind-libs
  48. bind-utils
  49. binutils
  50. bzip2
  51. bzip2-libs
  52. ca-certificates
  53. cairo
  54. centos-release
  55. checkpolicy
  56. chkconfig
  57. ConsoleKit
  58. ConsoleKit-libs
  59. coreutils
  60. coreutils-libs
  61. cpio
  62. cracklib
  63. cracklib-dicts
  64. cronie
  65. cronie-anacron
  66. crontabs
  67. cups-libs
  68. curl
  69. cvs
  70. cyrus-sasl-lib
  71. dash
  72. db4
  73. db4-cxx
  74. db4-devel
  75. db4-utils
  76. dbus
  77. dbus-glib
  78. dbus-libs
  79. dejavu-fonts-common
  80. dejavu-lgc-sans-mono-fonts
  81. dejavu-sans-mono-fonts
  82. device-mapper
  83. device-mapper-libs
  84. device-mapper-libs
  85. dialog
  86. dialog
  87. diffutils
  88. dmidecode
  89. dracut
  90. dracut-kernel
  91. ed
  92. eggdbus
  93. elfutils-libelf
  94. ethtool
  95. expat
  96. file
  97. file-libs
  98. filesystem
  99. findutils
  100. fipscheck
  101. fipscheck-lib
  102. fontconfig
  103. fontpackages-filesystem
  104. freetype
  105. fuse
  106. fuse-libs
  107. gamin
  108. gawk
  109. GConf2
  110. gd
  111. gdbm
  112. gdbm-devel
  113. gdk-pixbuf2
  114. gettext
  115. ghostscript
  116. ghostscript-fonts
  117. glib2
  118. glibc
  119. glibc
  120. glibc-common
  121. glibc-devel
  122. glibc-headers
  123. gmp
  124. gnupg2
  125. gnutls
  126. gpgme
  127. graphviz
  128. grep
  129. groff
  130. grubby
  131. gtk2
  132. gzip
  133. hicolor-icon-theme
  134. httpd
  135. httpd-tools
  136. hwdata
  137. info
  138. initscripts
  139. iproute
  140. iptables
  141. iptables
  142. iputils
  143. jasper-libs
  144. kbd
  145. kbd-misc
  146. kernel
  147. kernel-firmware
  148. kernel-headers
  149. keyutils-libs
  150. kpartx
  151. krb5-libs
  152. less
  153. libacl
  154. libarchive
  155. libattr
  156. libblkid
  157. libblkid
  158. libcap
  159. libcap-ng
  160. libcom_err
  161. libcroco
  162. libcurl
  163. libdrm
  164. libedit
  165. libffi
  166. libfontenc
  167. libgcc
  168. libgcrypt
  169. libgomp
  170. libgpg-error
  171. libgsf
  172. libICE
  173. libIDL
  174. libidn
  175. libjpeg-turbo
  176. libnih
  177. libpciaccess
  178. libpng
  179. librsvg2
  180. libselinux
  181. libselinux
  182. libselinux-utils
  183. libsemanage
  184. libsepol
  185. libsepol
  186. libSM
  187. libssh2
  188. libstdc++
  189. libtasn1
  190. libthai
  191. libtiff
  192. libudev
  193. libudev
  194. libusb
  195. libuser
  196. libutempter
  197. libuuid
  198. libuuid
  199. libX11
  200. libX11-common
  201. libXau
  202. libXaw
  203. libxcb
  204. libXcomposite
  205. libXcursor
  206. libXdamage
  207. libXext
  208. libXfixes
  209. libXfont
  210. libXft
  211. libXi
  212. libXinerama
  213. libxml2
  214. libxml2-python
  215. libXmu
  216. libXpm
  217. libXrandr
  218. libXrender
  219. libxslt
  220. libXt
  221. libyaml
  222. lm_sensors-libs
  223. logrotate
  224. lua
  225. m2crypto
  226. m4
  227. mailcap
  228. mailx
  229. make
  230. MAKEDEV
  231. man
  232. mingetty
  233. module-init-tools
  234. mod_wsgi
  235. ncurses
  236. ncurses-base
  237. ncurses-libs
  238. ncurses-libs
  239. net-snmp
  240. net-snmp-libs
  241. net-tools
  242. nspr
  243. nss
  244. nss-softokn
  245. nss-softokn-freebl
  246. nss-softokn-freebl
  247. nss-sysinit
  248. nss-tools
  249. nss-util
  250. ntp
  251. ntpdate
  252. openldap
  253. openssh
  254. openssl
  255. ORBit2
  256. p11-kit
  257. p11-kit-trust
  258. pam
  259. pango
  260. parted
  261. parted
  262. passwd
  263. patch
  264. pax
  265. pciutils
  266. pciutils-libs
  267. pcre
  268. perl
  269. perl-CGI
  270. perl-devel
  271. perl-ExtUtils-MakeMaker
  272. perl-ExtUtils-ParseXS
  273. perl-libs
  274. perl-Module-Pluggable
  275. perl-Pod-Escapes
  276. perl-Pod-Simple
  277. perl-Test-Harness
  278. perl-Test-Simple
  279. perl-version
  280. pinentry
  281. pixman
  282. pkgconfig
  283. plymouth
  284. plymouth-core-libs
  285. plymouth-scripts
  286. policycoreutils
  287. polkit
  288. popt
  289. procps
  290. psmisc
  291. pth
  292. pygpgme
  293. python
  294. python-argparse
  295. python-babel
  296. python-backports
  297. python-backports-ssl_match_hostname
  298. python-chardet
  299. python-crypto
  300. python-dateutil
  301. python-iniparse
  302. python-jinja2
  303. python-libs
  304. python-pyasn1
  305. python-pycurl
  306. python-requests
  307. python-setuptools
  308. python-six
  309. python-urlgrabber
  310. python-urllib3
  311. PyYAML
  312. readline
  313. readline
  314. redhat-logos
  315. redhat-lsb-core
  316. rpm
  317. rpm-libs
  318. rpm-python
  319. rrdtool
  320. rsync
  321. rsyslog
  322. sed
  323. setup
  324. sgml-common
  325. shadow-utils
  326. shared-mime-info
  327. sos
  328. sqlite
  329. sysvinit-tools
  330. tar
  331. tcp_wrappers-libs
  332. time
  333. tzdata
  334. udev
  335. upstart
  336. urw-fonts
  337. ustr
  338. util-linux-ng
  339. vim-minimal
  340. virt-what
  341. which
  342. xorg-x11-font-utils
  343. xz
  344. xz-libs
  345. xz-lzma-compat
  346. yum
  347. yum-metadata-parser
  348. yum-plugin-fastestmirror
  349. yum-utils
  350. zlib
  351. %end
  352.  
  353.  
  354. %post --log=/root/ks-post.log
  355. echo "Writing hosts file..."
  356. cat > /etc/hosts << EOF
  357. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  358. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  359. 192.168.122.100 super01 supervisor salt
  360. 192.168.122.101 store01
  361. 192.168.122.102 store02
  362. 192.168.122.103 store03
  363. 192.168.122.104 store04
  364. 192.168.122.105 store05
  365. 192.168.122.106 store06
  366. 192.168.122.107 conn01
  367. EOF
  368. echo "done with hosts file"
  369. echo "turning on salt"
  370. yum install epel-release -y;
  371. yum install salt-minion -y;
  372. chkconfig salt-minion on;
  373. service salt-minion restart;
  374. echo "done with salt"
  375. mkdir -p -m0700 /root/.ssh/;
  376. cat > /root/.ssh/authorized_keys << EOF2
  377. ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw9SBDahNX5LwpfXhFME7PUyM2PhLULgAgPmh0b4wz+uIU9f3+hcO8wooFji6ouZgnJRB7hL9pFwhZyPQBgVnYacZsenif7rhFpUdgFe0th/Tcq0fiTmjQmAcsGymyp0wVViZ3ewBWSGqS2i/KWq0y5PRQ6EMnw6N0+Rsv0/ePabgpA0UCW3cMvkog0/z2s5ljXAWHynofLdEMuBCllC83+uQjAHjYSavJZxIAhIL9TBaZX/PM6QjJSi3n8fS4fb1N4IKDYFGRnAg5NYMuNxNfxkOsFryy/6Ldk8CHl3OZqQbwOyJJL00biQ581fn+QV8pdsUEd+fTHlqwSVYUZPOTQ== root@chrisd.scality.com
  378. EOF2
  379. chmod 600 /root/.ssh/authorized_keys;
  380. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement