Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ tree
- .
- ├── Vagrantfile
- └── salt
- ├── minion
- └── roots
- ├── top.sls
- └── webserver.sls
- 2 directories, 4 files
- $ cat Vagrantfile
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- VAGRANTFILE_API_VERSION = "2"
- Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
- config.vm.define "web", primary: true do |web|
- web.vm.box = "ubuntu/trusty64"
- web.vm.network "forwarded_port", guest: 80, host: 8080
- web.vm.network "forwarded_port", guest: 443, host: 8443
- web.vm.synced_folder "salt/roots/", "/srv/salt/"
- web.vm.provision :salt do |salt|
- salt.minion_config = "salt/minion"
- salt.run_highstate = true
- end
- end
- end
- $ cd salt
- $ cat minion
- master: localhost
- state_top: top.sls
- $ cd roots
- $ cat top.sls
- base:
- '*':
- webserver
- $ cat webserver.sls
- apache2:
- pkg:
- - installed
- What vagrant barfs:
- ==> web: Running provisioner: salt...
- Copying salt minion config to vm.
- Checking if salt-minion is installed
- salt-minion was not found.
- Checking if salt-call is installed
- salt-call was not found.
- Bootstrapping Salt... (this may take a while)
- The following SSH command responded with a non-zero exit status.
- Vagrant assumes that this means the command failed!
- /tmp/bootstrap_salt.sh
- Stdout from the command:
- * INFO: sh -- Version 2015.07.22
- * INFO: System Information:
- * INFO: CPU: GenuineIntel
- * INFO: CPU Arch: x86_64
- * INFO: OS Name: Linux
- * INFO: OS Version: 3.13.0-55-generic
- * INFO: Distribution: Ubuntu 14.04
- * INFO: Installing minion
- * INFO: Found function install_ubuntu_stable_deps
- * INFO: Found function install_ubuntu_stable
- * INFO: Found function install_ubuntu_restart_daemons
- * INFO: Found function daemons_running
- * INFO: Found function install_ubuntu_check_services
- * INFO: Running install_ubuntu_stable_deps()
- Ign http://security.ubuntu.com trusty-security InRelease
- Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
- Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
- Get:3 http://security.ubuntu.com trusty-security/main Sources [88.8 kB]
- Ign http://archive.ubuntu.com trusty InRelease
- Get:4 http://security.ubuntu.com trusty-security/universe Sources [28.5 kB]
- Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [320 kB]
- Ign http://archive.ubuntu.com trusty-updates InRelease
- Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [111 kB]
- Hit http://archive.ubuntu.com trusty Release.gpg
- Get:7 http://security.ubuntu.com trusty-security/main Translation-en [173 kB]
- Get:8 http://security.ubuntu.com trusty-security/universe Translation-en [64.9 kB]
- Get:9 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
- Hit http://archive.ubuntu.com trusty Release
- Get:10 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
- Get:11 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
- Get:12 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
- Hit http://archive.ubuntu.com trusty/main amd64 Packages
- Hit http://archive.ubuntu.com trusty/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty/main Translation-en
- Hit http://archive.ubuntu.com trusty/universe Translation-en
- Get:13 http://archive.ubuntu.com trusty-updates/main Sources [226 kB]
- Get:14 http://archive.ubuntu.com trusty-updates/universe Sources [130 kB]
- Get:15 http://archive.ubuntu.com trusty-updates/main amd64 Packages [595 kB]
- Get:16 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [300 kB]
- Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [286 kB]
- Get:18 http://archive.ubuntu.com trusty-updates/universe Translation-en [159 kB]
- Ign http://archive.ubuntu.com trusty/main Translation-en_US
- Ign http://archive.ubuntu.com trusty/universe Translation-en_US
- Fetched 10.1 MB in 13s (766 kB/s)
- Reading package lists...
- Reading package lists...
- Building dependency tree...
- Reading state information...
- The following NEW packages will be installed:
- debian-archive-keyring
- 0 upgraded, 1 newly installed, 0 to remove and 66 not upgraded.
- Need to get 34.4 kB of archives.
- After this operation, 84.0 kB of additional disk space will be used.
- Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe debian-archive-keyring all 2012.4 [34.4 kB]
- Fetched 34.4 kB in 0s (477 kB/s)
- Selecting previously unselected package debian-archive-keyring.
- (Reading database ... 86712 files and directories currently installed.)
- Preparing to unpack .../debian-archive-keyring_2012.4_all.deb ...
- Unpacking debian-archive-keyring (2012.4) ...
- Setting up debian-archive-keyring (2012.4) ...
- Ign http://security.ubuntu.com trusty-security InRelease
- Ign http://archive.ubuntu.com trusty InRelease
- Hit http://security.ubuntu.com trusty-security Release.gpg
- Ign http://archive.ubuntu.com trusty-updates InRelease
- Hit http://security.ubuntu.com trusty-security Release
- Hit http://archive.ubuntu.com trusty Release.gpg
- Hit http://archive.ubuntu.com trusty-updates Release.gpg
- Hit http://security.ubuntu.com trusty-security/main Sources
- Hit http://archive.ubuntu.com trusty Release
- Hit http://security.ubuntu.com trusty-security/universe Sources
- Hit http://archive.ubuntu.com trusty-updates Release
- Hit http://security.ubuntu.com trusty-security/main amd64 Packages
- Hit http://archive.ubuntu.com trusty/main Sources
- Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty/universe Sources
- Hit http://security.ubuntu.com trusty-security/main Translation-en
- Hit http://archive.ubuntu.com trusty/main amd64 Packages
- Hit http://security.ubuntu.com trusty-security/universe Translation-en
- Hit http://archive.ubuntu.com trusty/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty/main Translation-en
- Hit http://archive.ubuntu.com trusty/universe Translation-en
- Hit http://archive.ubuntu.com trusty-updates/main Sources
- Hit http://archive.ubuntu.com trusty-updates/universe Sources
- Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/main Translation-en
- Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
- Ign http://archive.ubuntu.com trusty/main Translation-en_US
- Ign http://archive.ubuntu.com trusty/universe Translation-en_US
- Reading package lists...
- Reading package lists...
- Building dependency tree...
- Reading state information...
- software-properties-common is already the newest version.
- 0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
- * INFO: Installing Python Requests/Chardet from Chris Lea's PPA repository
- gpg: keyring `/tmp/tmpl3tpz0vr/secring.gpg' created
- gpg: keyring `/tmp/tmpl3tpz0vr/pubring.gpg' created
- gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
- gpg: /tmp/tmpl3tpz0vr/trustdb.gpg: trustdb created
- gpg: key C7917B12: public key "Launchpad chrislea" imported
- gpg: Total number processed: 1
- gpg: imported: 1 (RSA: 1)
- OK
- gpg: keyring `/tmp/tmp17ptmx88/secring.gpg' created
- gpg: keyring `/tmp/tmp17ptmx88/pubring.gpg' created
- gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
- gpg: /tmp/tmp17ptmx88/trustdb.gpg: trustdb created
- gpg: key C7917B12: public key "Launchpad chrislea" imported
- gpg: Total number processed: 1
- gpg: imported: 1 (RSA: 1)
- OK
- Ign http://security.ubuntu.com trusty-security InRelease
- Ign http://archive.ubuntu.com trusty InRelease
- Hit http://security.ubuntu.com trusty-security Release.gpg
- Ign http://archive.ubuntu.com trusty-updates InRelease
- Hit http://security.ubuntu.com trusty-security Release
- Hit http://archive.ubuntu.com trusty Release.gpg
- Hit http://archive.ubuntu.com trusty-updates Release.gpg
- Hit http://security.ubuntu.com trusty-security/main Sources
- Hit http://archive.ubuntu.com trusty Release
- Hit http://security.ubuntu.com trusty-security/universe Sources
- Hit http://archive.ubuntu.com trusty-updates Release
- Hit http://security.ubuntu.com trusty-security/main amd64 Packages
- Hit http://archive.ubuntu.com trusty/main Sources
- Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty/universe Sources
- Hit http://security.ubuntu.com trusty-security/main Translation-en
- Hit http://archive.ubuntu.com trusty/main amd64 Packages
- Hit http://security.ubuntu.com trusty-security/universe Translation-en
- Ign http://ppa.launchpad.net trusty InRelease
- Hit http://archive.ubuntu.com trusty/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty/main Translation-en
- Hit http://archive.ubuntu.com trusty/universe Translation-en
- Ign http://ppa.launchpad.net trusty InRelease
- Hit http://archive.ubuntu.com trusty-updates/main Sources
- Hit http://archive.ubuntu.com trusty-updates/universe Sources
- Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
- Hit http://archive.ubuntu.com trusty-updates/main Translation-en
- Get:1 http://ppa.launchpad.net trusty Release.gpg [316 B]
- Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
- Get:2 http://ppa.launchpad.net trusty Release.gpg [316 B]
- Ign http://archive.ubuntu.com trusty/main Translation-en_US
- Get:3 http://ppa.launchpad.net trusty Release [14.0 kB]
- Ign http://archive.ubuntu.com trusty/universe Translation-en_US
- Get:4 http://ppa.launchpad.net trusty Release [14.0 kB]
- Get:5 http://ppa.launchpad.net trusty/main amd64 Packages [1,041 B]
- Get:6 http://ppa.launchpad.net trusty/main amd64 Packages [2,308 B]
- Ign http://ppa.launchpad.net trusty/main Translation-en_US
- Ign http://ppa.launchpad.net trusty/main Translation-en
- Ign http://ppa.launchpad.net trusty/main Translation-en_US
- Ign http://ppa.launchpad.net trusty/main Translation-en
- Fetched 32.0 kB in 3s (10.6 kB/s)
- Reading package lists...
- Reading package lists...
- Building dependency tree...
- Reading state information...
- pciutils is already the newest version.
- procps is already the newest version.
- python-apt is already the newest version.
- upstart is already the newest version.
- The following extra packages will be installed:
- python-chardet
- The following packages will be upgraded:
- python-chardet python-requests
- 2 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
- Need to get 151 kB of archives.
- After this operation, 9,216 B disk space will be freed.
- Get:1 http://ppa.launchpad.net/chris-lea/python-chardet/ubuntu/ trusty/main python-chardet all 2.2.1-4chl1~trusty1 [107 kB]
- Get:2 http://ppa.launchpad.net/chris-lea/python-requests/ubuntu/ trusty/main python-requests all 2.3.0-1chl1~trusty1 [44.3 kB]
- Fetched 151 kB in 0s (232 kB/s)
- (Reading database ... 86722 files and directories currently installed.)
- Preparing to unpack .../python-chardet_2.2.1-4chl1~trusty1_all.deb ...
- Unpacking python-chardet (2.2.1-4chl1~trusty1) over (2.0.1-2build2) ...
- Preparing to unpack .../python-requests_2.3.0-1chl1~trusty1_all.deb ...
- Unpacking python-requests (2.3.0-1chl1~trusty1) over (2.2.1-1ubuntu0.2) ...
- Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
- Setting up python-chardet (2.2.1-4chl1~trusty1) ...
- Setting up python-requests (2.3.0-1chl1~trusty1) ...
- gpg: keyring `/tmp/tmp6yftx6od/secring.gpg' created
- gpg: keyring `/tmp/tmp6yftx6od/pubring.gpg' created
- gpg: requesting key 0E27C0A6 from hkp server keyserver.ubuntu.com
- gpg: /tmp/tmp6yftx6od/trustdb.gpg: trustdb created
- gpg: key 0E27C0A6: public key "Launchpad PPA for Salt Stack" imported
- gpg: Total number processed: 1
- gpg: imported: 1 (RSA: 1)
- OK
- * ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
- Usage : bootstrap-salt.sh [options] <install-type> <install-type-args>
- Installation types:
- - stable (default)
- - stable [version] (ubuntu specific)
- - daily (ubuntu specific)
- - testing (redhat specific)
- - git
- Examples:
- - bootstrap-salt.sh
- - bootstrap-salt.sh stable
- - bootstrap-salt.sh stable 2014.7
- - bootstrap-salt.sh daily
- - bootstrap-salt.sh testing
- - bootstrap-salt.sh git
- - bootstrap-salt.sh git develop
- - bootstrap-salt.sh git v0.17.0
- - bootstrap-salt.sh git 8c3fadf15ec183e5ce8c63739850d543617e4357
- Options:
- -h Display this message
- -v Display script version
- -n No colours.
- -D Show debug output.
- -c Temporary configuration directory
- -g Salt repository URL. (default: git://github.com/saltstack/salt.git)
- -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)
- -k Temporary directory holding the minion keys which will pre-seed
- the master.
- -s Sleep time used when waiting for daemons to start, restart and when checking
- for the services running. Default: 10
- -M Also install salt-master
- -S Also install salt-syndic
- -N Do not install salt-minion
- -X Do not start daemons after installation
- -C Only run the configuration function. This option automatically
- bypasses any installation.
- -P Allow pip based installations. On some distributions the required salt
- packages or its dependencies are not available as a package for that
- distribution. Using this flag allows the script to use pip as a last
- resort method. NOTE: This only works for functions which actually
- implement pip based installations.
- -F Allow copied files to overwrite existing(config, init.d, etc)
- -U If set, fully upgrade the system prior to bootstrapping salt
- -K If set, keep the temporary files in the temporary directories specified
- with -c and -k.
- -I If set, allow insecure connections while downloading any files. For
- example, pass '--no-check-certificate' to 'wget' or '--insecure' to 'curl'
- -A Pass the salt-master DNS name or IP. This will be stored under
- /etc/salt/minion.d/99-master-address.conf
- -i Pass the salt-minion id. This will be stored under
- /etc/salt/minion_id
- -L Install the Apache Libcloud package if possible(required for salt-cloud)
- -p Extra-package to install while installing salt dependencies. One package
- per -p flag. You're responsible for providing the proper package name.
- -d Disable check_service functions. Setting this flag disables the
- 'install_<distro>_check_services' checks. You can also do this by
- touching /tmp/disable_salt_checks on the target host. Defaults ${BS_FALSE}
- -H Use the specified http proxy for the installation
- -Z Enable external software source for newer ZeroMQ(Only available for RHEL/CentOS/Fedora based distributions)
- Stderr from the command:
- stdin: is not a tty
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 204k 100 204k 0 0 437k 0 --:--:-- --:--:-- --:--:-- 436k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement