From 60b4299cb90a5b3f6e74ffd0ee0f51a0008fb3cf Mon Sep 17 00:00:00 2001 From: gabriel giovanini Date: Sun, 10 May 2020 18:15:54 +0000 Subject: fix: Move urls from github to gitlab * As I'm moving all my stuff from github to gitlab, I'm updating the links of the tutorials. * Update the domain to the `.me` domain. --- _config.yml | 3 ++- _posts/2019-03-03-welcome-to-my-blog.md | 2 +- _posts/2019-04-22-ansible-part-2.md | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index e3eeb05..81ab22b 100644 --- a/_config.yml +++ b/_config.yml @@ -3,9 +3,10 @@ email: gabriel.giovanini@pm.me description: >- Gabriel Giovanini's blog. baseurl: "" -url: "https://gabrielgio.com.br" +url: "https://www.gabrielgio.me" twitter_username: giovaninigabs github_username: gabrielgio +gitlab_username: gabrielgio # Build settings markdown: kramdown diff --git a/_posts/2019-03-03-welcome-to-my-blog.md b/_posts/2019-03-03-welcome-to-my-blog.md index 8973461..fa6244a 100644 --- a/_posts/2019-03-03-welcome-to-my-blog.md +++ b/_posts/2019-03-03-welcome-to-my-blog.md @@ -6,5 +6,5 @@ categories: jekyll update --- On this blog, I'll be posting some personal projects that I'm working or some stuff that I find interesting to talk about, I hope be able to keep it interesting and produce something of value. -> Disclaimer: english it's not my native language so if you find something that you don't understand I'd love you to open an [issue](https://github.com/gabrielgio/gabrielgio.github.io/issues), or even have something to add, open a [PR](https://github.com/gabrielgio/gabrielgio.github.io/pulls) +> Disclaimer: english it's not my native language so if you find something that you don't understand I'd love you to open an [issue](https://gitlab.com/gabrielgio/homestation/-/issuess), or even have something to add, open a [MR](https://gitlab.com/gabrielgio/homestation/-/merge_requests) diff --git a/_posts/2019-04-22-ansible-part-2.md b/_posts/2019-04-22-ansible-part-2.md index 66818f2..c5936de 100644 --- a/_posts/2019-04-22-ansible-part-2.md +++ b/_posts/2019-04-22-ansible-part-2.md @@ -11,7 +11,7 @@ Now we're gonna setup ansible to work with a git repository. The process is quit Do create a git repository wherever you see fit ([gitlab](https://about.gitlab.com/) and [github](https://github.com/) offer free repositories). For this task we're gonna need to add only two file: one for the `yml` file describing the tasks and the `.vimrc` file. -In the `.vimrc` add your own configuration, you can see mine [over here](https://github.com/gabrielgio/homestation/blob/241b27285d8cba8548277f3508e097439831a6eb/config/.vimrc), it is pretty simple as I don't use it but for simple text editing (like this post) so you can start with that if you don't have one. +In the `.vimrc` add your own configuration, you can see mine [over here](https://gitlab.com/gabrielgio/homestation/-/blob/debcf3458df511aef9f7dca0cb73f6cf6baddd5d/.vimrc), it is pretty simple as I don't use it but for simple text editing (like this post) so you can start with that if you don't have one. The `yml` file will have two tasks, one is to install vim itself, identical as in the part 1. @@ -36,7 +36,7 @@ To copy `.vimrc` file to your `$HOME` we going to use [copy module](https://docs mode: 0644 {% endhighlight %} -After adding those two files your repository will be something [like this](https://github.com/gabrielgio/homestation/tree/debcf3458df511aef9f7dca0cb73f6cf6baddd5d). +After adding those two files your repository will be something [like this](https://gitlab.com/gabrielgio/homestation/-/tree/debcf3458df511aef9f7dca0cb73f6cf6baddd5d). And now we just need to run `ansible-pull` command @@ -53,7 +53,7 @@ Remember `man` is your best friend take a look at `man ansible-pull` to know mor The best part you can quickly test and see the result by just running my sample: {% highlight bash %} -ansible-pull -U https://github.com/gabrielgio/homestation.git -C debcf3458df511aef9f7dca0cb73f6cf6baddd5d -i all main.yml +ansible-pull -U https://gitlab.com/gabrielgio/homestation.git -C debcf3458df511aef9f7dca0cb73f6cf6baddd5d -i all main.yml {% endhighlight %} The idea here is to keep your repository as a source of truth when comes to configuration, you can add this task to your cron tab, so you just need to push something to your repository and after a few minutes not only your machine but all the machines that have it setup will receive an update. You can use this method as a simple way to install software, update machines or even distribute tools company-wise. -- cgit v1.2.3