Fixing Authorization Failure in Ubuntu VM AWS CLI by Synchronizing the Clock

Hits: 2220AWS EC2 CLI “AWS was not able to validate the provided access credentials” I am just trying to run my aws cli from a VM that I keep on a disk-on-key. I added the credentials several times, even creating new accounts. After a few hours of growing perturbance and desire for violence.   Be …

Just enough Ansible for Drupal | Lakshmi Narasimhan

Hits: 499This looks like a good Ansible Playbook to install Drupal 7 or any version, both on nginx and Apache. https://lakshminp.com/just-enough-ansible-drupal   Setup Back to our newly minted machine. Let’s ensure Ansible is able to communicate with our server. First, we need to create a configuration file for Ansible. This is called ansible.cfg and it’s in INI format. …

Turn Monolith server of LAMP stack using php-fpm that also uses MEAN stack into microservices

Hits: 1895 The project is to make microservices in place of a monolithic nodejs application stack. Apache Web Server, php-fpm, nodejs application server with mongodb, mysql backend. This got divided into 2 seperate projects, of LAMP and MEAN stack. It can be tweaked to have the php-fpm LAMP read/Write from the MongoDB Database and to have …

AWS Cloudformation pass parameters from pull down menu to UserData.

Hits: 6928Declaring the Ref s and Mapping Findinmap in CloudFormation which can be used in userdata on your EC2 server (maybe others too) Almost 20 hours of learning and making mistakes I have been working on making a Multi Region Replicated MongoDB Replica Set with Oneclick installation via AWS Marketplace. I got the script working. …

Stop Ubuntu from running Auto Upgrades at boot – #DEVOPS

Hits: 4043Devops need to automatically install stuff on Ubuntu, however this clashed with the daily ubuntu auto update. The best way to stop autoupgrades is to prevent Ubuntu from download the updated package list Edit /etc/apt/apt.conf.d/20periodic or whatever number it is Change the 1 for Update-Package-Lists to a 0 APT::Periodic::Update-Package-Lists “0”; APT::Periodic::Unattended-Upgrade “1”; See: https://askubuntu.com/questions/9/how-do-i-enable-automatic-updates https://help.ubuntu.com/community/AutomaticSecurityUpdates https://debian-handbook.info/browse/stable/sect.regular-upgrades.html …

Bootstrapping a Docker Swarm Mode Cluster – Semaphore

Hits: 2157 Adding Cluster Nodes At this point, we have a cluster with a single manager node – a cluster, albeit meagre in substance. Before we augment the cluster with additional nodes, we need to attend to an AWS configuration detail. Docker Machine will have created an AWS security group (in the absence of our specifying the …

Kubernetes: Running MongoDB on Kubernetes with StatefulSets

Hits: 24402Running MongoDB replica set with one click is the goal. Perhaps this will help. At Google, everything runs in a container, including databases. You just need the right tools. Kubernetes 1.5 includes the new StatefulSet API object (in previous versions, StatefulSet was known as PetSet). With StatefulSets, Kubernetes makes it much easier to run …

Use ScrollToFixed: stick elements on your page

Hits: 2301Stick Element where and how you like using ScrollToFixed For Mobile devices and small screens you need to make your site both nice and flexible! Use Jquery ScrollToFixed to easily stick whatever you want wherever you want. Once upon a time I had a huge CRT color screen that could show  any resolution that I chose. However, …