Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ git pull
- Already up-to-date.
- MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ vagrant destroy
- passaro_vagrant: Are you sure you want to destroy the 'passaro_vagrant' VM? [y/N] y
- ==> passaro_vagrant: Forcing shutdown of VM...
- ==> passaro_vagrant: Destroying VM and associated drives...
- ==> passaro_vagrant: Pruning invalid NFS exports. Administrator privileges will be required...
- ==> passaro_vagrant: Updating /etc/hosts file on host machine (password may be required)...
- MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ git clean -xfd
- Removing .vagrant/
- Removing drive/__pycache__/
- Removing drive/helpers/__pycache__/
- Removing drive/jotium/__pycache__/
- Removing drive/jotium/django/__pycache__/
- Removing drive/joxi/__pycache__/
- Removing drive/locale/ru/LC_MESSAGES/django.mo
- Removing drive/oauth/__pycache__/
- Removing drive/oauth/migrations/__pycache__/
- Removing drive/oauth/rest_framework/__pycache__/
- Removing drive/rest/__pycache__/
- Removing drive/search/__pycache__/
- Removing drive/settings/__pycache__/
- Removing drive/stats/__pycache__/
- Removing drive/stats/migrations/__pycache__/
- Removing drive/storage/__pycache__/
- Removing drive/storage/management/__pycache__/
- Removing drive/storage/migrations/__pycache__/
- Removing drive/storage/models/__pycache__/
- Removing drive/support/__pycache__/
- Removing drive/urls/__pycache__/
- Removing drive/urlshortener/__pycache__/
- Removing drive/urlshortener/migrations/__pycache__/
- Removing drive/user/__pycache__/
- Removing drive/user/migrations/__pycache__/
- Removing provision/fabric_provisioner.pyc
- Removing var/
- MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ vagrant up
- Bringing machine 'passaro_vagrant' up with 'virtualbox' provider...
- ==> passaro_vagrant: Importing base box 'dizballanze/passaro'...
- ==> passaro_vagrant: Matching MAC address for NAT networking...
- ==> passaro_vagrant: Checking if box 'dizballanze/passaro' is up to date...
- ==> passaro_vagrant: Setting the name of the VM: passaro_vagrant
- ==> passaro_vagrant: Clearing any previously set network interfaces...
- ==> passaro_vagrant: Preparing network interfaces based on configuration...
- passaro_vagrant: Adapter 1: nat
- passaro_vagrant: Adapter 2: hostonly
- ==> passaro_vagrant: Forwarding ports...
- passaro_vagrant: 22 (guest) => 2222 (host) (adapter 1)
- ==> passaro_vagrant: Running 'pre-boot' VM customizations...
- ==> passaro_vagrant: Booting VM...
- ==> passaro_vagrant: Waiting for machine to boot. This may take a few minutes...
- passaro_vagrant: SSH address: 127.0.0.1:2222
- passaro_vagrant: SSH username: vagrant
- passaro_vagrant: SSH auth method: private key
- passaro_vagrant: Warning: Remote connection disconnect. Retrying...
- ==> passaro_vagrant: Machine booted and ready!
- ==> passaro_vagrant: Checking for guest additions in VM...
- ==> passaro_vagrant: Setting hostname...
- ==> passaro_vagrant: Configuring and enabling network interfaces...
- ==> passaro_vagrant: Exporting NFS shared folders...
- ==> passaro_vagrant: Preparing to edit /etc/exports. Administrator privileges will be required...
- ==> passaro_vagrant: Mounting NFS shared folders...
- ==> passaro_vagrant: Updating /etc/hosts file on host machine (password may be required)...
- ==> passaro_vagrant: Running provisioner: fabric...
- [127.0.0.1] Executing task 'common'
- [127.0.0.1] sudo: yum -y update
- [127.0.0.1] sudo: yum -y install curl git-core libjpeg-devel libevent-devel libxslt-devel wget redis libmemcached-devel
- [127.0.0.1] sudo: service redis start
- [127.0.0.1] sudo: chkconfig --level 2345 redis on
- [127.0.0.1] sudo: yum groupinstall -y development
- [127.0.0.1] sudo: yum -y clean packages
- [127.0.0.1] run: wget -O libmemcached.tar.gz https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
- [127.0.0.1] run: tar -xf libmemcached.tar.gz
- [127.0.0.1] run: mv libmemcached-1.0.18 libmemcached
- [127.0.0.1] run: ./configure
- [127.0.0.1] sudo: make && make install
- [127.0.0.1] sudo: touch /usr/memcached_sentinel
- [127.0.0.1] sudo: wget -O ffmpeg.tar.xz http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
- [127.0.0.1] sudo: tar -xf /tmp/ffmpeg.tar.xz --strip-components 1
- [127.0.0.1] put: <file obj> -> /home/vagrant/.bashrc
- [127.0.0.1] Executing task 'database'
- [127.0.0.1] sudo: iptables -t nat -I PREROUTING -p tcp --dport 3307 -j REDIRECT --to-ports 3306
- [127.0.0.1] sudo: iptables -t nat -I OUTPUT -p tcp -o lo --dport 3307 -j REDIRECT --to-ports 3306
- [127.0.0.1] sudo: iptables -t nat -I PREROUTING -p tcp --dport 3308 -j REDIRECT --to-ports 3306
- [127.0.0.1] sudo: iptables -t nat -I OUTPUT -p tcp -o lo --dport 3308 -j REDIRECT --to-ports 3306
- [127.0.0.1] sudo: service iptables save
- [127.0.0.1] run: mysqladmin -u root password "oDcpRPQ4"
- Warning: run() received nonzero return code 1 while executing 'mysqladmin -u root password "oDcpRPQ4"'!
- [127.0.0.1] run: mysql -e "
- # create user for joxi_all
- CREATE USER 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
- # create user for drive
- CREATE USER '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
- # give access user to db
- GRANT USAGE ON *.* TO 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
- GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'localhost';
- # give access user2 to db
- GRANT USAGE ON *.* TO '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
- GRANT ALL PRIVILEGES ON *.* TO '43254579'@'localhost';
- # update access rules
- FLUSH PRIVILEGES;
- " --user=root --password="oDcpRPQ4"
- Warning: run() received nonzero return code 1 while executing 'mysql -e "
- # create user for joxi_all
- CREATE USER 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
- # create user for drive
- CREATE USER '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
- # give access user to db
- GRANT USAGE ON *.* TO 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
- GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'localhost';
- # give access user2 to db
- GRANT USAGE ON *.* TO '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
- GRANT ALL PRIVILEGES ON *.* TO '43254579'@'localhost';
- # update access rules
- FLUSH PRIVILEGES;
- " --user=root --password="oDcpRPQ4"'!
- [127.0.0.1] run: mysql -e "
- # give access user to db
- GRANT USAGE ON *.* TO 'v_joxi'@'10.1.1.201' IDENTIFIED BY 'oDcpRPQ4';
- GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'10.1.1.201';
- # update access rules
- FLUSH PRIVILEGES;
- " --user=root --password="oDcpRPQ4"
- [127.0.0.1] Executing task 'nginx'
- [127.0.0.1] put: <file obj> -> /etc/yum.repos.d/nginx.repo
- [127.0.0.1] sudo: yum -y install nginx
- [127.0.0.1] sudo: rm -rf /etc/nginx/conf.d
- [127.0.0.1] put: <file obj> -> /etc/nginx/nginx.conf
- [127.0.0.1] put: <file obj> -> /etc/nginx/passwd
- [127.0.0.1] put: <file obj> -> /etc/hosts
- [127.0.0.1] sudo: mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled
- [127.0.0.1] put: <file obj> -> /etc/nginx/sites-available/passaro
- [127.0.0.1] put: <file obj> -> /etc/nginx/sites-available/passaro
- [127.0.0.1] sudo: ln -sf /etc/nginx/sites-available/passaro /etc/nginx/sites-enabled/passaro
- [127.0.0.1] sudo: openssl genrsa -out api.joxi.net.key 2048
- [127.0.0.1] sudo: openssl req -new -x509 -key api.joxi.net.key -out api.joxi.net.cert -days 3650 -subj /CN=api.joxi.net
- [127.0.0.1] sudo: service nginx restart
- [127.0.0.1] run: mkdir fake1 -p
- [127.0.0.1] sudo: chown nginx:nginx fake1
- [127.0.0.1] sudo: chmod 755 fake1 -R
- [127.0.0.1] run: mkdir fake2 -p
- [127.0.0.1] sudo: chown nginx:nginx fake2
- [127.0.0.1] sudo: chmod 755 fake2 -R
- [127.0.0.1] sudo: chmod 755 /home/vagrant
- [127.0.0.1] Executing task 'app'
- [127.0.0.1] run: pyvenv-3.4 /home/vagrant/venv
- [127.0.0.1] run: /home/vagrant/venv/bin/pip install --no-index -f wheels/ -r requirements.txt
- [127.0.0.1] run: mysql -e "
- # create database joxi_all
- CREATE DATABASE IF NOT EXISTS joxi_all;
- # create database joxi_drive_0
- CREATE DATABASE IF NOT EXISTS joxi_drive_0;
- # create database joxi_drive_1
- CREATE DATABASE IF NOT EXISTS joxi_drive_1;
- " --user=root --password="oDcpRPQ4"
- [127.0.0.1] run: mysql --user=v_joxi --password="oDcpRPQ4" -h localhost joxi_all < joxi_all_schema.sql
- [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=default --noinput --fake-initial
- [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=drive_0 --noinput --fake-initial
- [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=drive_1 --noinput --fake-initial
- [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py collectstatic --noinput
- [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py compilemessages
- [127.0.0.1] sudo: chmod 755 /home/vagrant/static -R
- [127.0.0.1] run: mysql -e "
- # LOCK TABLES joxi_all.user_user WRITE;
- INSERT INTO joxi_all.user_user VALUES (
- 1,NULL,'phpuser@e.co','mLwHT6/ySw642rtBE8xu8jczSZbYisTBS0woMJgMjwF8Jr2OJc4pX/xCrwpT6i7m9OQGeyKKBLp3oneFmahxHw==',
- 'n7fvxinojy80g4ogc4os4o44gw4o480','Root',NULL,NULL,NULL,NULL,NULL,NULL,NULL,
- '2016-02-25 17:22:02','a:0:{}',NULL,'phpuser@e.co',1,0,0,0,NULL,NULL,NULL,NULL,
- NULL,NULL,'ru',NULL,0,0);
- # UNLOCK TABLES;
- " --user=root --password="oDcpRPQ4"
- [127.0.0.1] run: echo "from user.models import User
- from oauth.models import AccessToken
- # create admin user
- user = User.objects.create_superuser(**{'password': '123123', 'name': 'tmp user', 'email': 'root@e.co'})
- # create access token for php user
- user = User.objects.get(email='phpuser@e.co')
- acc_token, created = AccessToken.objects.get_or_create(user=user, token='user_token')
- " | /home/vagrant/venv/bin/python manage.py shell
- [127.0.0.1] run: mkdir var -p
- [127.0.0.1] run: make start
- [127.0.0.1] run: make runcelery_multi
- [127.0.0.1] put: <file obj> -> /home/vagrant/put.py
- [127.0.0.1] run: /home/vagrant/venv/bin/python /home/vagrant/put.py
- Done.
- Disconnecting from 127.0.0.1:2222... done.
- ==> passaro_vagrant: Machine 'passaro_vagrant' has a post `vagrant up` message. This is a message
- ==> passaro_vagrant: from the creator of the Vagrantfile, and not from Vagrant itself:
- ==> passaro_vagrant:
- ==> passaro_vagrant: passaro dev server successfuly started.
- ==> passaro_vagrant: Connect to host with:
- ==> passaro_vagrant: https://10.1.1.200/
- ==> passaro_vagrant: or over ssh with `vagrant ssh`
- ==> passaro_vagrant:
- ==> passaro_vagrant: To check is dev server are started visit:
- ==> passaro_vagrant: https://10.1.1.200/ping?q=test
- ==> passaro_vagrant:
- ==> passaro_vagrant: Admin user credentials:
- ==> passaro_vagrant: email: root@e.co
- ==> passaro_vagrant: passw: 123123
- ==> passaro_vagrant:
- ==> passaro_vagrant: API user credentials:
- ==> passaro_vagrant: access token: user_token
- ==> passaro_vagrant:
Add Comment
Please, Sign In to add comment