- Add cert to /var/lib/boot2docker/certs/ so that it wont be remove everytime we restart docker-machine
- create dir
sudo mkdir -p /etc/docker/certs.d/<registry-name>
- create
sudo ln -s /var/lib/boot2docker/certs/<registry-name>/ca.crt /etc/docker/certs.d/<registry-name>/
- restart docker
sudo /etc/init.d/docker restart
check user exist
id <username>
or
grep /etc/passwd
- make sure the hiera value has the following structure
users:
mary:
group: admin
alias: m123
mark:
group: user
alias: m456
Remove all images
docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi
Remove all docker containers
docker ps -a | sed '1d' | awk '{print $1}' | xargs docker rm
object_name.methods
object_name.inspect
Get all version for a particular package in yum
yum --showduplicates list <package name> | expand
In hiera, when encounter a percentage symbol, it will try to interpolate it. In order to stop it from happening, make sure you quote the value
TIME_FORMAT: '%d/%m/%Y %H:%M:%S'
The following links has a table which specify the valid configuration for each of the different configuration files in the splunk-forwarder, indexer and searchhead
https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F
This is something that I do all the time but I always get it wrong....
-
Navigate to
~/.ssh/
-
Run below command and follow the prompt
ssh-keygen -t rsa
- Make sure the permission are as follow
OlderNewer