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

Hits: 112AWS 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 add desire for violence. Running simple …

Just enough Ansible for Drupal | Lakshmi Narasimhan

Hits: 418This 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: 1001 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 …

Charming news from AWS Marketplace: MongoDB Swarm Multi Region. It has become so easy to install a replicated MongoDb

Hits: 142Replicated MongoDB can be in 3 different Regions or in a single region. Replication allows your data to be secure and fast in different regions. You can write to the Primary instance and read from the replicas. Json output allows for speedy response time and speedy development time. So don’t waste your own time …

AWS Cloudformation pass parameters from pull down menu to UserData.

Hits: 5147Declaring 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: 3241Devops 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: 1979 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 …

How to get reverse DNS for your EC2 instance as well as to raise email sending limit. Amazon Web Services

Hits: 3446 Request to Remove Email Sending Limitations In order to maintain the quality of Amazon EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts. If you wish to send larger amounts of email from EC2, you can apply to have these limits …

Kubernetes: Running MongoDB on Kubernetes with StatefulSets

Hits: 22797Running 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 …

One Minute Recovery

File lost or deleted? ONE minute recovery

Hits: 389  Recover deleted files through our foresight planning! Today, a bug deleted a client’s config file. File was recovered before the client could get annoyed. Much thought and work was put into a backup strategy, several months ago. CHARMING.CO.IL