Hits: 696The following script looks just up my alley, as I am working on a python script to automate setting up servers around the world so that clients get served from a local server. import boto3 client = boto3.client(‘route53’, aws_access_key_id=”AWS_KEY”, aws_secret_access_key=”AWS_SEC_KEY”) hostedZoneId = ‘HOSTED_ZONE_ID’ ip= ‘123.123.123.123’ if aws_region == “US”: #US is my default …
Where to start? Scaling PHP applications on AWS – CI CD too
Hits: 165This is an interesting read about AutoScaling in AWS using Autoscale and Load Balancer. It has some discussions about How to do this via Continuous Integration and Continuous Delivery (ci/cd) Here’s a rough approach to scaling any stateless app on AWS: Run the app in an Auto Scaling Group (ASG). An ASG makes it easy …
Continue reading “Where to start? Scaling PHP applications on AWS – CI CD too”
Automating AWS ec2 With Python and Boto3
Hits: 3306Automating Aws with Python – boto3 I am starting to use Python instead of Bash and OpenShell. The first plan is to make a scripted Geo Web Server. The customers will launch servers in as many regions as they like. The web users will receive pages from the local server, the content can be …
How to Install and use Lsyncd on CentOS 7 / RHEL 7 / Amazon Linux
Hits: 2176To install lsync on Amazon Linux fist add EPEL repositories: sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm also see: http://www.marcburrows.com/using-lsyncd-with-aws/ Allow the Master Server to connect to the slave server without a password On the master server, log in through putty and run the following: ssh-keygen -t rsa You will get asked to enter the file in which …
Continue reading “How to Install and use Lsyncd on CentOS 7 / RHEL 7 / Amazon Linux”
Configure a DNS record set change-resource-record-sets — AWS CLI 1.15.35 Command Reference
Hits: 4871To list your resources aws route53 list-hosted-zones aws route53 list-resource-record-sets –hosted-zone-id BLABLALA –query “ResourceRecordSets[?Name == ‘example.domain.’]” Use this output as the base for rebuilding the input Json file. You can write a Jason File to input into this aws route53 change-resource-record-sets –cli-input-json –cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the …
How to manage subdomains in different AWS accounts with Route53
Hits: 548My Goal this time is to make a script for AWS Marketplace that creates EC2 instances with Apache Httpd installed that are launched in different regions, and to set route53 to use a geo-location to open each server, also to sync one directory for content that will be universal and other that aren’t synced …
Continue reading “How to manage subdomains in different AWS accounts with Route53”
Setup Hmailserver with ssl works with Outlook 2016 but not with Roundcube
Hits: 1845How to generate custom self-signed SSL certificates and apply it to Dovecot – Plesk Help Center, producing the certs for HmailServer worked using these directions for OpenSSl for windows. http://slproweb.com/products/Win32OpenSSL.html cd into install dir c:\openssl-win32\bin use .\ before each command. I followed Generate root private key: # openssl genrsa -out rootCA.key 2048 Generate …
Continue reading “Setup Hmailserver with ssl works with Outlook 2016 but not with Roundcube “
Postfix SMTP Authentication – On The Secure Port Only
Hits: 264Paste under mynetworks: ####### smtp auth smtpd_tls_auth_only = no smtp_use_tls = yes smtpd_sasl_auth_enable = yes smtpd_sasl_type = cyrus local_recipient_maps = smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom ######## Then: vi master.cf Paste under smtp: smtps inet …
Continue reading “Postfix SMTP Authentication – On The Secure Port Only”
SAN Versus NAS: What’s the Difference and What Do You Need? – Interview test question
Hits: 202I came home after a test, preparing for the next test. I found that I got a question wrong about storage. I usually do cloud and it’s not on my resume, but still they asked and I failed. SANs typically utilizes Fibre Channel connectivity, while NAS solutions typically use TCP/IP networks, such as Ethernet. But …
Deleting messages in RoundCube in a new account hosted by HmailServer – Folder not Found
Hits: 1495Using Roundcube exclusively gives “An Error occurred! Server Error: UID COPY: The folder could not be found” as it doesn’t create the Trash, although it does create a “sent mail” when you send your first email message and drafts if you save a message that you are editing. When you use the Outlook client it …
Git – Basic Branching and Merging
Hits: 438 Be organized with your git, especially if you have worldwide contributers. git checkout -b iss53 Switched to a new branch “iss53” This is shorthand for: $ git branch iss53 $ git checkout iss53 Figure 19. Creating a new branch pointer You work on your website and do some commits. Doing so moves the iss53 branch …
knife.rb explained
Hits: 231source: https://gist.github.com/jtimberman/1718805 # Knife Configuration File. # # This is a Ruby DSL to set configuration parameters for Knife’s # general options. The default location for this file is # ~/.chef/knife.rb. If multiple Chef repositories are used, # per-repository configuration files can be created. A per repository # configuration file must be .chef/knife.rb in …
Set Hmailserver to use Active Directory for User Login
Hits: 6895Using Active Directory LDAP might be more secure than using the standard Hmailserver user verification. This was really simple, as most things are with HmailServer. I set the local Windows 2012 Server as the AD. Source: Install Active Directory on Windows Server 2012 show directions how to do this. I did this for our pre-installed …
Continue reading “Set Hmailserver to use Active Directory for User Login”