Skip to main content

Posts

Showing posts from September, 2016

Installing CouchDB on Ubuntu 14 LTS.

CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents and query your indexes with your web browser, via HTTP. Index, combine, and transform your documents with JavaScript. CouchDB works well with modern web and mobile apps. You can even serve web apps directly out of CouchDB. And you can distribute your data, or your apps, efficiently using CouchDB’s incremental replication. CouchDB supports master-master setups with automatic conflict detection. Installing CouchDB. Setting up Repos and Packages. sudo apt-get install software-properties-common -y sudo add-apt-repository ppa: couchdb/stable -y sudo apt-get update -y Remove any exsisting installations. sudo apt-get remove couchdb couchdb-bin couchdb-common -yf Installation. sudo apt-get install - V couchdb Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: ......

Installing MongoDB on Ubuntu 14 LTS.

MongoDB is an open-source document database, and leading NoSQL database. MongoDB is written in c++. Below is a brief document about installing a mongodb on a test node to try it out. Import the public key used by the package management system. Signed Packages for dpkg and apt sudo apt-key adv --keyserver hkp: / /keyserver.ubuntu.com:80 --recv EA312927 Output. ahmed@ubuntu:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 [sudo] password for ahmed: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.ApILz9KbVd --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com gpg: key EA312927: public key "MongoDB 3.2 Release Signing Key " imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) Create ...

Encrypted Data Bags - Chef

Data Bags are a way to store information on the chef-server which all the cookbooks can access. Few more additional advantages are that we can encrypt the data-bags as well, this will help in keeping any sensitive information like user/password. What we are doing now is to store user information in a data-bag and use them to create users on the servers. We will be using users cookbook to create the users. users cookbook details. https://github.com/chef-cookbooks/users https://supermarket.chef.io/cookbooks/users Steps. Create a secret file. Create json user files. Create data-bag on the chef-server . Add the local user .json file to data-bag with the secret file created. Creating secret file. We will be using the openssl to create a random file. user secret. openssl rand -base64 512 > ~ /work/chef -repo/cookbooks/init-setup/secret-files/user_data_bags_encrypted_secret Here is how the file would look like. ┌─[ahmed][zubair-HP-ProBook][~] └─▪ o...