• 0 Posts
  • 68 Comments
Joined 3 years ago
cake
Cake day: January 21st, 2021

help-circle



  • I also had a bad experience where I had a test website under a megabyte in a storage bucket. It was under the free tier and sat there for a few years. Then one month they sent me a bill (it was small, a handful of cents). Contact support saying that this use is under the free tier. They said that data was added then removed from the bucket. I hadn’t logged into the account, no living API keys. They wouldn’t forgive the charge.

    Luckily my credit card had expired so they just locked my account.


  • With ansible you need to change the relevant step to use apt remove instead of apt install and to change the config file step in a step that removes the file.

    Wait until you have 2 services that use the same resource. Now you need:

    1. When both are enabled the resource is set up.
    2. When either one is enabled the resource is still set up.
    3. When neither is configured the resource is removed.

    Doing this with Ansible is a nightmare. And 99% of the time you don’t even realize that you have this problem until your configs don’t work for some reason.






  • If you haven’t used any configuration management before it would definitely be valuable to learn.

    However I would also recommend trying Nix and NixOS. The provide much better reproducibility. For example using Ansible-like tools I would always have issues where I create a file, then remove the code to create the file but the file still exists or the server is still running. I wrote a post going into more detail about the difference a while ago https://kevincox.ca/2015/12/13/nixos-managed-system/. However this is more involved. If you already have a running server it will be a big shift, instead of just slowly starting to manage things via Ansible.

    But I would definitely consider using something. Having configuration managed and versioned with history is super valuable.








  • Yes, if you ask about a tag on a commit that you don’t have git won’t know about it. You would need to download that history. You also can’t in general say “commit A doesn’t contain commit B” as you don’t know all of the parents.

    You are completely right that --depth=1 will omit some data. That is sort of the point but it does have some downsides. Filters also omit some data but often the data will be fetched on demand which can be useful. (But will also cause other issues like blame taking ridiculous amounts of time.)

    Neither option is wrong, they just have different tradeoffs.