RSSEmailTwitterGitHubDribbbleLinkedInFacebookInstagramYouTubeGoogle+Pinterest

Micmik share stuff

DevOps Posts

Ansible: How to create a libvirt domain remotely

There is many ways to create a kvm+qemu VM remotely. This article will explain how to create a VM remotely on your linux hypervisor. 1- Installation of the libvirt plugin: You will have to install the libvirt plugin with the following command: $ pip3 install libvirt-python Create and edit the file requirements.yml: collections: - name: community.libvirt Then, run the following command to install the plugin: $ ansible-galaxy install -r requirements.

LXD: Setup DNS with systemd-resolved and NetworkManager

How to enable DNS for your LXD containers. If your system use systemd and NetworkManager you can follow this example: Assuming you have a network called lxdbr0 with the following configuration: $ lxc network show lxdbr0 config: dns.domain: local.dev ipv4.address: 10.0.0.1/24 ipv4.nat: "true" ipv6.address: fd42:c743:9b8:4f8e::1/64 ipv6.nat: "true" description: "" name: lxdbr0 type: bridge used_by: - /1.0/instances/postgres-01 - /1.0/profiles/default - /1.0/profiles/dev managed: true status: Created locations: - none LXD will start a dnsmasq process listening on 10.

$aving money by changing cache control

The more you use caching the less your files are downloaded from the S3 bucket. Bandwidth is money. So you can save money by setting a long age for your objets. 1- Set the property Cache-Control: Edit the file .gitlab-ci.yml, and add the property to your S3 command or like below to the dpl command $ dpl --skip_cleanup --provider=s3 --bucket=$S3_BUCKET --region=$AWS_REGION \ --cache-control='public, max-age=31536000' --local-dir=public/ 2- Clear cache of the CDN You have to got some tool to clear the cache on the CDN side otherwise your updates will be never seen :(

Build and deploy a Hugo site to S3 with Gitlab

This article will show you how to automate the deployment of your hugo site to your S3 bucket. 1- Create a new repository on Gitlab I choose Gitlab because of Its CI/CD features. Use your gitlab account and create a new project. You can named the project as your domain name. Once you have created your project on Gitlab, you can add the git support into your local project :

How to host a blog with Hugo, S3 and Cloudflare

When I’ve searched a solution for hosting my tech blog I’ve heard that the combo S3 + Cloudflare was the cheapest. I bought my domain name on Gandi. I use Hugo for managing the content of website. The architecture The setup steps 1- Create a new site with Hugo Install Hugo and run the following command: $ hugo new site my-blog Note: replace “my-blog” with the name of your site