Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.96 KB | None | 0 0
  1. $ tree
  2. .
  3. ├── Vagrantfile
  4. └── salt
  5. ├── minion
  6. └── roots
  7. ├── top.sls
  8. └── webserver.sls
  9.  
  10. 2 directories, 4 files
  11.  
  12. $ cat Vagrantfile
  13. # -*- mode: ruby -*-
  14. # vi: set ft=ruby :
  15.  
  16. VAGRANTFILE_API_VERSION = "2"
  17.  
  18. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  19. config.vm.define "web", primary: true do |web|
  20. web.vm.box = "ubuntu/trusty64"
  21. web.vm.network "forwarded_port", guest: 80, host: 8080
  22. web.vm.network "forwarded_port", guest: 443, host: 8443
  23. web.vm.synced_folder "salt/roots/", "/srv/salt/"
  24. web.vm.provision :salt do |salt|
  25. salt.minion_config = "salt/minion"
  26. salt.run_highstate = true
  27. end
  28. end
  29. end
  30.  
  31. $ cd salt
  32. $ cat minion
  33. master: localhost
  34. state_top: top.sls
  35.  
  36. $ cd roots
  37. $ cat top.sls
  38. base:
  39. '*':
  40. webserver
  41.  
  42. $ cat webserver.sls
  43. apache2:
  44. pkg:
  45. - installed
  46.  
  47.  
  48.  
  49. What vagrant barfs:
  50. ==> web: Running provisioner: salt...
  51. Copying salt minion config to vm.
  52. Checking if salt-minion is installed
  53. salt-minion was not found.
  54. Checking if salt-call is installed
  55. salt-call was not found.
  56. Bootstrapping Salt... (this may take a while)
  57. The following SSH command responded with a non-zero exit status.
  58. Vagrant assumes that this means the command failed!
  59.  
  60. /tmp/bootstrap_salt.sh
  61.  
  62. Stdout from the command:
  63.  
  64. * INFO: sh -- Version 2015.07.22
  65.  
  66. * INFO: System Information:
  67. * INFO: CPU: GenuineIntel
  68. * INFO: CPU Arch: x86_64
  69. * INFO: OS Name: Linux
  70. * INFO: OS Version: 3.13.0-55-generic
  71. * INFO: Distribution: Ubuntu 14.04
  72.  
  73. * INFO: Installing minion
  74. * INFO: Found function install_ubuntu_stable_deps
  75. * INFO: Found function install_ubuntu_stable
  76. * INFO: Found function install_ubuntu_restart_daemons
  77. * INFO: Found function daemons_running
  78. * INFO: Found function install_ubuntu_check_services
  79. * INFO: Running install_ubuntu_stable_deps()
  80. Ign http://security.ubuntu.com trusty-security InRelease
  81. Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
  82. Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
  83. Get:3 http://security.ubuntu.com trusty-security/main Sources [88.8 kB]
  84. Ign http://archive.ubuntu.com trusty InRelease
  85. Get:4 http://security.ubuntu.com trusty-security/universe Sources [28.5 kB]
  86. Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [320 kB]
  87. Ign http://archive.ubuntu.com trusty-updates InRelease
  88. Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [111 kB]
  89. Hit http://archive.ubuntu.com trusty Release.gpg
  90. Get:7 http://security.ubuntu.com trusty-security/main Translation-en [173 kB]
  91. Get:8 http://security.ubuntu.com trusty-security/universe Translation-en [64.9 kB]
  92. Get:9 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
  93. Hit http://archive.ubuntu.com trusty Release
  94. Get:10 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
  95. Get:11 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
  96. Get:12 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
  97. Hit http://archive.ubuntu.com trusty/main amd64 Packages
  98. Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  99. Hit http://archive.ubuntu.com trusty/main Translation-en
  100. Hit http://archive.ubuntu.com trusty/universe Translation-en
  101. Get:13 http://archive.ubuntu.com trusty-updates/main Sources [226 kB]
  102. Get:14 http://archive.ubuntu.com trusty-updates/universe Sources [130 kB]
  103. Get:15 http://archive.ubuntu.com trusty-updates/main amd64 Packages [595 kB]
  104. Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [300 kB]
  105. Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [286 kB]
  106. Get:18 http://archive.ubuntu.com trusty-updates/universe Translation-en [159 kB]
  107. Ign http://archive.ubuntu.com trusty/main Translation-en_US
  108. Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  109. Fetched 10.1 MB in 13s (766 kB/s)
  110. Reading package lists...
  111. Reading package lists...
  112. Building dependency tree...
  113. Reading state information...
  114. The following NEW packages will be installed:
  115. debian-archive-keyring
  116. 0 upgraded, 1 newly installed, 0 to remove and 66 not upgraded.
  117. Need to get 34.4 kB of archives.
  118. After this operation, 84.0 kB of additional disk space will be used.
  119. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe debian-archive-keyring all 2012.4 [34.4 kB]
  120. Fetched 34.4 kB in 0s (477 kB/s)
  121. Selecting previously unselected package debian-archive-keyring.
  122. (Reading database ... 86712 files and directories currently installed.)
  123. Preparing to unpack .../debian-archive-keyring_2012.4_all.deb ...
  124. Unpacking debian-archive-keyring (2012.4) ...
  125. Setting up debian-archive-keyring (2012.4) ...
  126. Ign http://security.ubuntu.com trusty-security InRelease
  127. Ign http://archive.ubuntu.com trusty InRelease
  128. Hit http://security.ubuntu.com trusty-security Release.gpg
  129. Ign http://archive.ubuntu.com trusty-updates InRelease
  130. Hit http://security.ubuntu.com trusty-security Release
  131. Hit http://archive.ubuntu.com trusty Release.gpg
  132. Hit http://archive.ubuntu.com trusty-updates Release.gpg
  133. Hit http://security.ubuntu.com trusty-security/main Sources
  134. Hit http://archive.ubuntu.com trusty Release
  135. Hit http://security.ubuntu.com trusty-security/universe Sources
  136. Hit http://archive.ubuntu.com trusty-updates Release
  137. Hit http://security.ubuntu.com trusty-security/main amd64 Packages
  138. Hit http://archive.ubuntu.com trusty/main Sources
  139. Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
  140. Hit http://archive.ubuntu.com trusty/universe Sources
  141. Hit http://security.ubuntu.com trusty-security/main Translation-en
  142. Hit http://archive.ubuntu.com trusty/main amd64 Packages
  143. Hit http://security.ubuntu.com trusty-security/universe Translation-en
  144. Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  145. Hit http://archive.ubuntu.com trusty/main Translation-en
  146. Hit http://archive.ubuntu.com trusty/universe Translation-en
  147. Hit http://archive.ubuntu.com trusty-updates/main Sources
  148. Hit http://archive.ubuntu.com trusty-updates/universe Sources
  149. Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
  150. Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
  151. Hit http://archive.ubuntu.com trusty-updates/main Translation-en
  152. Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
  153. Ign http://archive.ubuntu.com trusty/main Translation-en_US
  154. Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  155. Reading package lists...
  156. Reading package lists...
  157. Building dependency tree...
  158. Reading state information...
  159. software-properties-common is already the newest version.
  160. 0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
  161. * INFO: Installing Python Requests/Chardet from Chris Lea's PPA repository
  162. gpg: keyring `/tmp/tmpl3tpz0vr/secring.gpg' created
  163. gpg: keyring `/tmp/tmpl3tpz0vr/pubring.gpg' created
  164. gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
  165. gpg: /tmp/tmpl3tpz0vr/trustdb.gpg: trustdb created
  166. gpg: key C7917B12: public key "Launchpad chrislea" imported
  167. gpg: Total number processed: 1
  168. gpg: imported: 1 (RSA: 1)
  169. OK
  170. gpg: keyring `/tmp/tmp17ptmx88/secring.gpg' created
  171. gpg: keyring `/tmp/tmp17ptmx88/pubring.gpg' created
  172. gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
  173. gpg: /tmp/tmp17ptmx88/trustdb.gpg: trustdb created
  174. gpg: key C7917B12: public key "Launchpad chrislea" imported
  175. gpg: Total number processed: 1
  176. gpg: imported: 1 (RSA: 1)
  177. OK
  178. Ign http://security.ubuntu.com trusty-security InRelease
  179. Ign http://archive.ubuntu.com trusty InRelease
  180. Hit http://security.ubuntu.com trusty-security Release.gpg
  181. Ign http://archive.ubuntu.com trusty-updates InRelease
  182. Hit http://security.ubuntu.com trusty-security Release
  183. Hit http://archive.ubuntu.com trusty Release.gpg
  184. Hit http://archive.ubuntu.com trusty-updates Release.gpg
  185. Hit http://security.ubuntu.com trusty-security/main Sources
  186. Hit http://archive.ubuntu.com trusty Release
  187. Hit http://security.ubuntu.com trusty-security/universe Sources
  188. Hit http://archive.ubuntu.com trusty-updates Release
  189. Hit http://security.ubuntu.com trusty-security/main amd64 Packages
  190. Hit http://archive.ubuntu.com trusty/main Sources
  191. Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
  192. Hit http://archive.ubuntu.com trusty/universe Sources
  193. Hit http://security.ubuntu.com trusty-security/main Translation-en
  194. Hit http://archive.ubuntu.com trusty/main amd64 Packages
  195. Hit http://security.ubuntu.com trusty-security/universe Translation-en
  196. Ign http://ppa.launchpad.net trusty InRelease
  197. Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  198. Hit http://archive.ubuntu.com trusty/main Translation-en
  199. Hit http://archive.ubuntu.com trusty/universe Translation-en
  200. Ign http://ppa.launchpad.net trusty InRelease
  201. Hit http://archive.ubuntu.com trusty-updates/main Sources
  202. Hit http://archive.ubuntu.com trusty-updates/universe Sources
  203. Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
  204. Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
  205. Hit http://archive.ubuntu.com trusty-updates/main Translation-en
  206. Get:1 http://ppa.launchpad.net trusty Release.gpg [316 B]
  207. Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
  208. Get:2 http://ppa.launchpad.net trusty Release.gpg [316 B]
  209. Ign http://archive.ubuntu.com trusty/main Translation-en_US
  210. Get:3 http://ppa.launchpad.net trusty Release [14.0 kB]
  211. Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  212. Get:4 http://ppa.launchpad.net trusty Release [14.0 kB]
  213. Get:5 http://ppa.launchpad.net trusty/main amd64 Packages [1,041 B]
  214. Get:6 http://ppa.launchpad.net trusty/main amd64 Packages [2,308 B]
  215. Ign http://ppa.launchpad.net trusty/main Translation-en_US
  216. Ign http://ppa.launchpad.net trusty/main Translation-en
  217. Ign http://ppa.launchpad.net trusty/main Translation-en_US
  218. Ign http://ppa.launchpad.net trusty/main Translation-en
  219. Fetched 32.0 kB in 3s (10.6 kB/s)
  220. Reading package lists...
  221. Reading package lists...
  222. Building dependency tree...
  223. Reading state information...
  224. pciutils is already the newest version.
  225. procps is already the newest version.
  226. python-apt is already the newest version.
  227. upstart is already the newest version.
  228. The following extra packages will be installed:
  229. python-chardet
  230. The following packages will be upgraded:
  231. python-chardet python-requests
  232. 2 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
  233. Need to get 151 kB of archives.
  234. After this operation, 9,216 B disk space will be freed.
  235. Get:1 http://ppa.launchpad.net/chris-lea/python-chardet/ubuntu/ trusty/main python-chardet all 2.2.1-4chl1~trusty1 [107 kB]
  236. Get:2 http://ppa.launchpad.net/chris-lea/python-requests/ubuntu/ trusty/main python-requests all 2.3.0-1chl1~trusty1 [44.3 kB]
  237. Fetched 151 kB in 0s (232 kB/s)
  238. (Reading database ... 86722 files and directories currently installed.)
  239. Preparing to unpack .../python-chardet_2.2.1-4chl1~trusty1_all.deb ...
  240. Unpacking python-chardet (2.2.1-4chl1~trusty1) over (2.0.1-2build2) ...
  241. Preparing to unpack .../python-requests_2.3.0-1chl1~trusty1_all.deb ...
  242. Unpacking python-requests (2.3.0-1chl1~trusty1) over (2.2.1-1ubuntu0.2) ...
  243. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  244. Setting up python-chardet (2.2.1-4chl1~trusty1) ...
  245. Setting up python-requests (2.3.0-1chl1~trusty1) ...
  246. gpg: keyring `/tmp/tmp6yftx6od/secring.gpg' created
  247. gpg: keyring `/tmp/tmp6yftx6od/pubring.gpg' created
  248. gpg: requesting key 0E27C0A6 from hkp server keyserver.ubuntu.com
  249. gpg: /tmp/tmp6yftx6od/trustdb.gpg: trustdb created
  250. gpg: key 0E27C0A6: public key "Launchpad PPA for Salt Stack" imported
  251. gpg: Total number processed: 1
  252. gpg: imported: 1 (RSA: 1)
  253. OK
  254. * ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
  255.  
  256. Usage : bootstrap-salt.sh [options] <install-type> <install-type-args>
  257.  
  258. Installation types:
  259. - stable (default)
  260. - stable [version] (ubuntu specific)
  261. - daily (ubuntu specific)
  262. - testing (redhat specific)
  263. - git
  264.  
  265. Examples:
  266. - bootstrap-salt.sh
  267. - bootstrap-salt.sh stable
  268. - bootstrap-salt.sh stable 2014.7
  269. - bootstrap-salt.sh daily
  270. - bootstrap-salt.sh testing
  271. - bootstrap-salt.sh git
  272. - bootstrap-salt.sh git develop
  273. - bootstrap-salt.sh git v0.17.0
  274. - bootstrap-salt.sh git 8c3fadf15ec183e5ce8c63739850d543617e4357
  275.  
  276. Options:
  277. -h Display this message
  278. -v Display script version
  279. -n No colours.
  280. -D Show debug output.
  281. -c Temporary configuration directory
  282. -g Salt repository URL. (default: git://github.com/saltstack/salt.git)
  283. -G Instead of cloning from git://github.com/saltstack/salt.git, clone from https://github.com/saltstack/salt.git (Usually necessary on systems which have the regular git protocol port blocked, where https usually is not)
  284. -k Temporary directory holding the minion keys which will pre-seed
  285. the master.
  286. -s Sleep time used when waiting for daemons to start, restart and when checking
  287. for the services running. Default: 10
  288. -M Also install salt-master
  289. -S Also install salt-syndic
  290. -N Do not install salt-minion
  291. -X Do not start daemons after installation
  292. -C Only run the configuration function. This option automatically
  293. bypasses any installation.
  294. -P Allow pip based installations. On some distributions the required salt
  295. packages or its dependencies are not available as a package for that
  296. distribution. Using this flag allows the script to use pip as a last
  297. resort method. NOTE: This only works for functions which actually
  298. implement pip based installations.
  299. -F Allow copied files to overwrite existing(config, init.d, etc)
  300. -U If set, fully upgrade the system prior to bootstrapping salt
  301. -K If set, keep the temporary files in the temporary directories specified
  302. with -c and -k.
  303. -I If set, allow insecure connections while downloading any files. For
  304. example, pass '--no-check-certificate' to 'wget' or '--insecure' to 'curl'
  305. -A Pass the salt-master DNS name or IP. This will be stored under
  306. /etc/salt/minion.d/99-master-address.conf
  307. -i Pass the salt-minion id. This will be stored under
  308. /etc/salt/minion_id
  309. -L Install the Apache Libcloud package if possible(required for salt-cloud)
  310. -p Extra-package to install while installing salt dependencies. One package
  311. per -p flag. You're responsible for providing the proper package name.
  312. -d Disable check_service functions. Setting this flag disables the
  313. 'install_<distro>_check_services' checks. You can also do this by
  314. touching /tmp/disable_salt_checks on the target host. Defaults ${BS_FALSE}
  315. -H Use the specified http proxy for the installation
  316. -Z Enable external software source for newer ZeroMQ(Only available for RHEL/CentOS/Fedora based distributions)
  317.  
  318.  
  319.  
  320. Stderr from the command:
  321.  
  322. stdin: is not a tty
  323. % Total % Received % Xferd Average Speed Time Time Time Current
  324. Dload Upload Total Spent Left Speed
  325. 100 204k 100 204k 0 0 437k 0 --:--:-- --:--:-- --:--:-- 436k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement