Hello there! I’ve got some good news!
I’ve created a Slack Help Channel that complements this blog, you can get help here.
Hello there! I’ve got some good news!
I’ve created a Slack Help Channel that complements this blog, you can get help here.
Whether you need to build a Kubernets cluster, an openstack instance, a hadoop cluster…etc, Canonical has developed a tool called conjure-up. This tool can build these whole environments for the purpose of development and testing, or small environments in a few minutes.
To install it on Ubuntu Xenial:
sudo snap install conjure-up --classic
To start the interactive deployment CLI, just run
conjure-up
or specify the exact software that you need to deploy (called spells in its terminology):
conjure-up kubernetes
That’s it, Enjoy!
Sources:
You add a user to group docker so that you can run docker commands without having to be root or a sudoer.
On an Ubuntu 16.04 server which authenticates against AD using PBIS, I added users to group docker, but wasn’t getting recognized at all and had to use sudo, which defeats the purpose.
All I did was the following:
docker:x:999:hobba\socrat to docker:x:999:HOBBA\socrat
Ansible is an amazing piece of configuration management software. Among its amazing features is that it’s totally agentless and the only 2 packages that it needs on any host are python and an SSH server.
Today we will create a playbook that will do the following:
It’s assumed that you have already added all required hosts to /etc/ansible/hosts and I’m naming this group “swarm”
- hosts: hostname
remote_user: domain\user
gather_facts: no
tasks:
- name: add docker repo
apt_repository:
repo="deb https://download.docker.com/linux/ubuntu xenial stable"
state=present
- name: install repo gpg key
apt_key:
url="https://download.docker.com/linux/ubuntu/gpg"
state=present
- name: refresh cache and install docker-ce
apt:
name=docker-ce
update_cache=yes
state=latest
Enjoy!
Sources: Ansible Documentation
For old commands, just edit .bash_history and delete whatever you want from inside.
For commands in the current session, just run this command before you exit:
unset HISTFILE
The $HISTFILE environment variable is the one which holds your commands and will flush to the file once you exit the session.
Source: http://www.kossboss.com/linux—bash-history-clearing