Thursday, March 3, 2016

Random notes: Linux Mint installation + virtual box, vagrant, Ambari Blueprints, Ansible...


https://www.linuxmint.com/download.php
Use md5

https://www.reddit.com/r/sysadmin/comments/2fmkvq/vagrat_saltstack_ansible_docker_chef_puppet/
A reddit about some of the tools in the rest of this post.

https://www.upguard.com/articles/docker-vs-vagrant

https://www.virtualbox.org/wiki/Linux_Downloads

Use the instructions for: Debian-based Linux distributions
Use sha256sum

Test the virtual box setup by running virtual box from the Linux applications menu
-if you get the vt-x not enabled in the BIOS message
--restart the computer, go into the bios and change the virtual support configuration from disabled to enabled.

SSH
https://serversforhackers.com/ssh-tricks/
scroll down...

 ssh -p 2222 vagrant@vagrant-centos65.vagrantup.com
Last login: Tue Mar  8 17:44:27 2016 from 10.0.2.2


ping 10.0.2.15
PING 10.0.2.15 (10.0.2.15) 56(84) bytes of data.
^C
--- 10.0.2.15 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms


http://docs-v1.vagrantup.com/v1/docs/host_only_networking.html
http://superuser.com/questions/570261/cant-ping-to-vagrant-box
https://www.vagrantup.com/docs/getting-started/networking.html 
http://stackoverflow.com/questions/23074412/how-to-set-host-key-checking-false-in-ansible-inventory-file

http://superuser.com/questions/570261/cant-ping-to-vagrant-box



Download and verify the sha256 sum.
Then click on the link and Mint will install this using the gedi package installer.

https://programmaticponderings.wordpress.com/2014/12/14/installing-puppet-master-and-agents-on-multiple-vm-using-vagrant-and-virtualbox/

http://www.vagrantbox.es

Vagrantbox.es

Vagrant is an amazing tool for managing virtual machines via a simple to use command line interface. With a simple vagrant up you can be working in a clean environment based on a standard template.
These standard templates are called base boxes, and this website is simply a list of boxes people have been nice enough to make publicly available.
http://superuser.com/questions/671191/how-to-ssh-between-a-cluster-of-vagrant-guest-vms?rq=1

http://leonidmirsky.com/ansible/hadoop/devops/2013/11/19/creating-hadoop-test-environment-with-ansible-and-vagrant.html
Try out a virtual hadoop config.

https://dantehranian.wordpress.com/2015/01/20/ansible-vs-puppet-hands-on-with-ansible/

https://www.ansible.com

Tutorials
https://github.com/leucos/ansible-tuto/tree/master/step-01#inventory
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-an-ubuntu-12-04-vps

https://www.ansible.com/videos
Watch the quick start video

Playbook use YAML
http://yaml.org
http://docs.ansible.com/ansible/YAMLSyntax.html

Simple ansible command to ping all servers
ansible -m ping -u vagrant all

ansible-playbook .yaml -e "username:vagrant"

command: does not use the shell
shell: uses the shell

http://docs.ansible.com/ansible/playbooks_intro.html

http://jinja.pocoo.org/docs/dev/

http://ryandlane.com/blog/2014/08/04/moving-away-from-puppet-saltstack-or-ansible/

https://galaxy.ansible.com/list#/roles?page=1&page_size=10&autocomplete=hadoop