diff --git a/static/images/posts-2020/i0UKdXleC.png b/content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance/i0UKdXleC.png
similarity index 100%
rename from static/images/posts-2020/i0UKdXleC.png
rename to content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance/i0UKdXleC.png
diff --git a/content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance.md b/content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance/index.md
similarity index 98%
rename from content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance.md
rename to content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance/index.md
index c660c08..46d0d4e 100644
--- a/content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance.md
+++ b/content/posts/2018/09/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance/index.md
@@ -1,8 +1,8 @@
---
series: Projects
date: "2018-09-26T08:34:30Z"
-thumbnail: images/posts-2020/i0UKdXleC.png
-usePageBundles: false
+thumbnail: i0UKdXleC.png
+usePageBundles: true
tags:
- docker
- linux
@@ -10,7 +10,7 @@ tags:
title: BitWarden password manager self-hosted on free Google Cloud instance
---
-![Bitwarden login](/images/posts-2020/i0UKdXleC.png)
+![Bitwarden login](i0UKdXleC.png)
A friend mentioned the [BitWarden](https://bitwarden.com/) password manager to me yesterday and I had to confess that I'd never heard of it. I started researching it and was impressed by what I found: it's free, [open-source](https://github.com/bitwarden), feature-packed, fully cross-platform (with Windows/Linux/MacOS desktop clients, Android/iOS mobile apps, and browser extensions for Chrome/Firefox/Opera/Safari/Edge/etc), and even offers a self-hosted option.
diff --git a/static/images/posts-2020/2g57odtq2.jpeg b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/2g57odtq2.jpeg
similarity index 100%
rename from static/images/posts-2020/2g57odtq2.jpeg
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/2g57odtq2.jpeg
diff --git a/static/images/posts-2020/LHax6lAwh.png b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/LHax6lAwh.png
similarity index 100%
rename from static/images/posts-2020/LHax6lAwh.png
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/LHax6lAwh.png
diff --git a/static/images/posts-2020/VTISYOKHO.png b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/VTISYOKHO.png
similarity index 100%
rename from static/images/posts-2020/VTISYOKHO.png
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/VTISYOKHO.png
diff --git a/static/images/posts-2020/f8nRJcyI6.png b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/f8nRJcyI6.png
similarity index 100%
rename from static/images/posts-2020/f8nRJcyI6.png
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/f8nRJcyI6.png
diff --git a/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os.md b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/index.md
similarity index 91%
rename from content/posts/2020/09/3d-modeling-and-printing-on-chrome-os.md
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/index.md
index 52caef5..f0f4b76 100644
--- a/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os.md
+++ b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/index.md
@@ -1,8 +1,8 @@
---
date: "2020-09-14T08:34:30Z"
-thumbnail: /images/posts-2020/qDTXt1jp3.png
-featureImage: /images/posts-2020/qDTXt1jp3.png
-usePageBundles: false
+thumbnail: qDTXt1jp3.png
+featureImage: qDTXt1jp3.png
+usePageBundles: true
tags:
- linux
- chromeos
@@ -18,12 +18,12 @@ That's a pretty sweet setup, but I still needed a way to convert STL 3D models i
Enter "Crostini," Chrome OS's [Linux (Beta) feature](https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md). It consists of a hardened Linux VM named `termina` which runs (by default) a Debian Buster LXD container named `penguin` (though you can spin up just about any container for which you can find an [image](https://us.images.linuxcontainers.org/)) and some fancy plumbing to let Chrome OS and Linux interact in specific clearly-defined ways. It's a brilliant balance between offering the flexibility of Linux while preserving Chrome OS's industry-leading security posture.
-![Neofetch in the Crostini terminal](/images/posts-2020/lhTnVwCO3.png)
+![Neofetch in the Crostini terminal](lhTnVwCO3.png)
There are plenty of great guides (like [this one](https://www.computerworld.com/article/3314739/linux-apps-on-chrome-os-an-easy-to-follow-guide.html)) on how to get started with Linux on Chrome OS so I won't rehash those steps here.
One additional step you will probably want to take is make sure that your Chromebook is configured to enable hyperthreading, as it may have [hyperthreading disabled by default](https://support.google.com/chromebook/answer/9340236). Just plug `chrome://flags/#scheduler-configuration` into Chrome's address bar, set it to `Enables Hyper-Threading on relevant CPUs`, and then click the button to restart your Chromebook. You'll thank me later.
-![Enabling hyperthreading](/images/posts-2020/LHax6lAwh.png)
+![Enabling hyperthreading](LHax6lAwh.png)
### The Software
I settled on using [FreeCAD](https://www.freecadweb.org/) for parametric modeling and [Ultimaker Cura](https://ultimaker.com/software/ultimaker-cura) for my GCODE slicer, but unfortunately getting them working cleanly wasn't entirely straightforward.
@@ -65,7 +65,7 @@ Comment[de_DE]=Feature-basierter parametrischer Modellierer
MimeType=application/x-extension-fcstd
```
That's it! Get on with your 3D-modeling bad self.
-![FreeCAD](/images/posts-2020/qDTXt1jp3.png)
+![FreeCAD](qDTXt1jp3.png)
Now that you've got a model, be sure to [export it as an STL mesh](https://wiki.freecadweb.org/Export_to_STL_or_OBJ) so you can import it into your slicer.
#### Ultimaker Cura
@@ -85,12 +85,12 @@ $ sudo apt update && sudo apt install menulibre
$ menulibre
```
Just plug in the relevant details (you can grab the appropriate icon [here](https://github.com/Ultimaker/Cura/blob/master/icons/cura-128.png)), hit the filing cabinet Save icon, and you should then be able to search for Cura from the Chrome OS launcher.
-![Using menulibre to create the launcher shortcut](/images/posts-2020/VTISYOKHO.png)
+![Using menulibre to create the launcher shortcut](VTISYOKHO.png)
-![Ultimaker Cura](/images/posts-2020/f8nRJcyI6.png)
+![Ultimaker Cura](f8nRJcyI6.png)
From there, just import the STL mesh, configure the appropriate settings, slice, and save the resulting GCODE. You can then just upload the GCODE straight to The Spaghetti Detective and kick off the print.
-![Successful print, designed and sliced on Chrome OS!](/images/posts-2020/2g57odtq2.jpeg)
+![Successful print, designed and sliced on Chrome OS!](2g57odtq2.jpeg)
Nice!
\ No newline at end of file
diff --git a/static/images/posts-2020/lhTnVwCO3.png b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/lhTnVwCO3.png
similarity index 100%
rename from static/images/posts-2020/lhTnVwCO3.png
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/lhTnVwCO3.png
diff --git a/static/images/posts-2020/qDTXt1jp3.png b/content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/qDTXt1jp3.png
similarity index 100%
rename from static/images/posts-2020/qDTXt1jp3.png
rename to content/posts/2020/09/3d-modeling-and-printing-on-chrome-os/qDTXt1jp3.png
diff --git a/static/images/posts-2020/1LDP5zxCU.gif b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/1LDP5zxCU.gif
similarity index 100%
rename from static/images/posts-2020/1LDP5zxCU.gif
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/1LDP5zxCU.gif
diff --git a/static/images/posts-2020/630ix7uVw.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/630ix7uVw.png
similarity index 100%
rename from static/images/posts-2020/630ix7uVw.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/630ix7uVw.png
diff --git a/static/images/posts-2020/EBkQTGmNb.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/EBkQTGmNb.png
similarity index 100%
rename from static/images/posts-2020/EBkQTGmNb.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/EBkQTGmNb.png
diff --git a/static/images/posts-2020/ELly_F6x6.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/ELly_F6x6.png
similarity index 100%
rename from static/images/posts-2020/ELly_F6x6.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/ELly_F6x6.png
diff --git a/static/images/posts-2020/EkmgtRYN4.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/EkmgtRYN4.png
similarity index 100%
rename from static/images/posts-2020/EkmgtRYN4.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/EkmgtRYN4.png
diff --git a/static/images/posts-2020/RuIrsHDqC.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/RuIrsHDqC.png
similarity index 100%
rename from static/images/posts-2020/RuIrsHDqC.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/RuIrsHDqC.png
diff --git a/static/images/posts-2020/V3qLmfi50.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/V3qLmfi50.png
similarity index 100%
rename from static/images/posts-2020/V3qLmfi50.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/V3qLmfi50.png
diff --git a/static/images/posts-2020/YKADY8YQR.gif b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/YKADY8YQR.gif
similarity index 100%
rename from static/images/posts-2020/YKADY8YQR.gif
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/YKADY8YQR.gif
diff --git a/static/images/posts-2020/YilNCaHil.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/YilNCaHil.png
similarity index 100%
rename from static/images/posts-2020/YilNCaHil.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/YilNCaHil.png
diff --git a/static/images/posts-2020/fmLDUWjia.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/fmLDUWjia.png
similarity index 100%
rename from static/images/posts-2020/fmLDUWjia.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/fmLDUWjia.png
diff --git a/static/images/posts-2020/h6dUCApdV.gif b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/h6dUCApdV.gif
similarity index 100%
rename from static/images/posts-2020/h6dUCApdV.gif
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/h6dUCApdV.gif
diff --git a/static/images/posts-2020/iHsYd7lbw.png b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/iHsYd7lbw.png
similarity index 100%
rename from static/images/posts-2020/iHsYd7lbw.png
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/iHsYd7lbw.png
diff --git a/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit.md b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/index.md
similarity index 82%
rename from content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit.md
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/index.md
index dc9134b..d3ceca0 100644
--- a/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit.md
+++ b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/index.md
@@ -1,8 +1,8 @@
---
series: Tips
date: "2020-09-24T08:34:30Z"
-thumbnail: images/posts-2020/fmLDUWjia.png
-usePageBundles: false
+thumbnail: fmLDUWjia.png
+usePageBundles: true
tags:
- chrome
title: Abusing Chrome's Custom Search Engines for Fun and Profit
@@ -12,25 +12,25 @@ Do you (like me) find yourself frequently searching for information within the s
### The basics
Point your browser to `chrome://settings/searchEngines` to see which sites are registered as Custom Search Engines:
-![Custom search engines list](/images/posts-2020/RuIrsHDqC.png)
+![Custom search engines list](RuIrsHDqC.png)
Each of these search engine entries has three parts: a name ("Search engine"), a Keyword, and a Query URL. The "Search engine" title is just what will appear in the Omnibox when the search engine gets triggered, the Keyword is what you'll type in the Omnibox to trigger it, and the Query URL tells Chrome how to handle the search. All you have to do is type the keyword, hit your Tab key to activate the search, input your query, and hit Enter:
-![Using a custom search engine](/images/posts-2020/o_o7rt4pA.gif)
+![Using a custom search engine](o_o7rt4pA.gif)
For sites which register themselves automatically, the keyword is often set to something like `domain.tld` so it might make sense to assign it as something shorter or more descriptive.
The Query URL is basically just what appears in the address bar when you search the site directly, with `%s` placed where your query text would normally go. You can view these details for a given search entry by tapping the three-dot menu button and selecting "Edit", and you can manually create new entries by hitting that big friendly "Add" button:
-![Editing a search engine](/images/posts-2020/fmLDUWjia.png)
+![Editing a search engine](fmLDUWjia.png)
By searching the site directly, you might find that it supports additional search filters which get appended to the URL:
-![Discovering search filters](/images/posts-2020/iHsYd7lbw.png)
+![Discovering search filters](iHsYd7lbw.png)
You can add those filters to the Query URL to further customize your Custom Search Engine:
-![Adding filters to a custom search](/images/posts-2020/EBkQTGmNb.png)
+![Adding filters to a custom search](EBkQTGmNb.png)
I spend a lot of my free time helping out on Google's support forums as a part of their [Product Experts program](https://productexperts.withgoogle.com/what-it-is), and I often need to quickly look up a Help Center article or previous forum discussion to assist users. I created a set of Custom Search Engines to make that easier:
-![Google Help Center search engines](/images/posts-2020/630ix7uVw.png)
-![Pixel Buds Help search](/images/posts-2020/V3qLmfi50.png)
+![Google Help Center search engines](630ix7uVw.png)
+![Pixel Buds Help search](V3qLmfi50.png)
------
@@ -39,21 +39,21 @@ Even if the site doesn't have a built-in native search, you can leverage Google'
```
http://google.com/search?q=%s&sitesearch=man7.org%2Flinux%2Fman-pages
```
-![man search](/images/posts-2020/EkmgtRYN4.png)
-![Searching man](/images/posts-2020/YKADY8YQR.gif)
+![man search](EkmgtRYN4.png)
+![Searching man](YKADY8YQR.gif)
------
### Speak foreign to me
This works for pretty much any site which parses the URL to render certain content. I use this for getting words/phrases instantly translated:
-![Google Translate search](/images/posts-2020/ELly_F6x6.png)
-![Translating German with search!](/images/posts-2020/1LDP5zxCU.gif)
+![Google Translate search](ELly_F6x6.png)
+![Translating German with search!](1LDP5zxCU.gif)
------
### Shorter shortcuts
Your Query URL doesn't even need to include a query at all! You can use the Custom Search Engines as a sort of hyper-fast shortcut to pages you visit frequently. If I create a new entry with the Keyword `searchax` and `abusing-chromes-custom-search-engines-for-fun-and-profit` as the query URL, I can quickly open to this page by typing `searchax[tab][enter]`:
-![Custom search shortener](/images/posts-2020/YilNCaHil.png)
+![Custom search shortener](YilNCaHil.png)
I use that trick pretty regularly for getting back to vCenter appliance management interfaces without having to type out the full FQDN and port number and all that.
@@ -65,7 +65,7 @@ You can do some other creative stuff too, like speedily accessing a temporary sc
data:text/html;charset=utf-8,
Scratchpad
```
And give it a nice short keyword - like the single letter 's':
-![My own scratchpad!](/images/posts-2020/h6dUCApdV.gif)
+![My own scratchpad!](h6dUCApdV.gif)
------
diff --git a/static/images/posts-2020/o_o7rt4pA.gif b/content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/o_o7rt4pA.gif
similarity index 100%
rename from static/images/posts-2020/o_o7rt4pA.gif
rename to content/posts/2020/09/abusing-chromes-custom-search-engines-for-fun-and-profit/o_o7rt4pA.gif
diff --git a/static/images/posts-2020/8p-PSHx1R.png b/content/posts/2020/09/docker-on-windows-10-with-wsl2/8p-PSHx1R.png
similarity index 100%
rename from static/images/posts-2020/8p-PSHx1R.png
rename to content/posts/2020/09/docker-on-windows-10-with-wsl2/8p-PSHx1R.png
diff --git a/content/posts/2020/09/docker-on-windows-10-with-wsl2.md b/content/posts/2020/09/docker-on-windows-10-with-wsl2/index.md
similarity index 95%
rename from content/posts/2020/09/docker-on-windows-10-with-wsl2.md
rename to content/posts/2020/09/docker-on-windows-10-with-wsl2/index.md
index ef8915b..b84faec 100644
--- a/content/posts/2020/09/docker-on-windows-10-with-wsl2.md
+++ b/content/posts/2020/09/docker-on-windows-10-with-wsl2/index.md
@@ -1,7 +1,7 @@
---
date: "2020-09-22T08:34:30Z"
-thumbnail: images/posts-2020/8p-PSHx1R.png
-usePageBundles: false
+thumbnail: 8p-PSHx1R.png
+usePageBundles: true
tags:
- docker
- windows
@@ -71,12 +71,12 @@ Run the installer, and make sure to tick the box for installing the WSL2 engine.
#### Step Three: Configure Docker Desktop
Launch Docker Desktop from the Start menu, and you should be presented with this friendly prompt:
-![Great news! We're supported.](/images/posts-2020/lY2FTflbK.png)
+![Great news! We're supported.](lY2FTflbK.png)
Hit that big friendly "gimme WSL2" button. Then open the Docker Settings from the system tray, and make sure that **General > Use the WSL 2 based engine** is enabled. Now navigate to **Resources > WSL Integration**, confirm that **Enable integration with my default WSL distro** is enabled as well. Smash the "Apply & Restart" button if you've made any changes.
### Test it!
Fire up a WSL session and confirm that everything is working with `docker run hello-world`:
-![Hello, world!](/images/posts-2020/8p-PSHx1R.png)
+![Hello, world!](8p-PSHx1R.png)
It's beautiful!
\ No newline at end of file
diff --git a/static/images/posts-2020/lY2FTflbK.png b/content/posts/2020/09/docker-on-windows-10-with-wsl2/lY2FTflbK.png
similarity index 100%
rename from static/images/posts-2020/lY2FTflbK.png
rename to content/posts/2020/09/docker-on-windows-10-with-wsl2/lY2FTflbK.png
diff --git a/content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file.md b/content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file/index.md
similarity index 99%
rename from content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file.md
rename to content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file/index.md
index 5503f88..9de4636 100644
--- a/content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file.md
+++ b/content/posts/2020/09/finding-the-most-popular-ips-in-a-log-file/index.md
@@ -1,7 +1,7 @@
---
series: Tips
date: "2020-09-13T08:34:30Z"
-usePageBundles: false
+usePageBundles: true
tags:
- linux
- shell
diff --git a/static/images/posts-2020/LJOcy2oqc.png b/content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli/LJOcy2oqc.png
similarity index 100%
rename from static/images/posts-2020/LJOcy2oqc.png
rename to content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli/LJOcy2oqc.png
diff --git a/content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli.md b/content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli/index.md
similarity index 95%
rename from content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli.md
rename to content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli/index.md
index 2bd8333..7a233a2 100644
--- a/content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli.md
+++ b/content/posts/2020/09/logging-in-to-multiple-vcenter-servers-at-once-with-powercli/index.md
@@ -1,8 +1,8 @@
---
series: Scripts
date: "2020-09-16T08:34:30Z"
-thumbnail: images/posts-2020/LJOcy2oqc.png
-usePageBundles: false
+thumbnail: LJOcy2oqc.png
+usePageBundles: true
tags:
- vmware
- powercli
@@ -13,7 +13,7 @@ I manage a large VMware environment spanning several individual vCenters, and I
I can, and here's how I do it.
-![Logging in to multiple vCenters](/images/posts-2020/LJOcy2oqc.png)
+![Logging in to multiple vCenters](LJOcy2oqc.png)
### The Script
The following Powershell script will let you define a list of vCenters to be accessed, securely store your credentials for each vCenter, log in to every vCenter with a single command, and also close the connections when they're no longer needed. It's also a great starting point for any other custom functions you'd like to incorporate into your PowerCLI sessions.
diff --git a/static/images/posts-2020/MnmMuA0HC.png b/content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit/MnmMuA0HC.png
similarity index 100%
rename from static/images/posts-2020/MnmMuA0HC.png
rename to content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit/MnmMuA0HC.png
diff --git a/content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit.md b/content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit/index.md
similarity index 92%
rename from content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit.md
rename to content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit/index.md
index 9fa3977..c09df0e 100644
--- a/content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit.md
+++ b/content/posts/2020/10/fixing-wsl2-connectivity-when-connected-to-a-vpn-with-wsl-vpnkit/index.md
@@ -1,7 +1,7 @@
---
date: "2020-10-07T08:34:30Z"
-thumbnail: images/posts-2020/MnmMuA0HC.png
-usePageBundles: false
+thumbnail: MnmMuA0HC.png
+usePageBundles: true
tags:
- windows
- linux
@@ -22,7 +22,7 @@ The instructions worked well for me so I won't rehash them all here. When it cam
All I need to do now is execute `sudo ./wsl-vpnkit` and leave that running in the background when I need to use WSL while connected to the corporate VPN.
-![Successful connection via wsl-vpnkit](/images/posts-2020/MnmMuA0HC.png)
+![Successful connection via wsl-vpnkit](MnmMuA0HC.png)
Whew! Okay, back to work.
diff --git a/static/images/posts-2020/0-h1flLZs.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/0-h1flLZs.png
similarity index 100%
rename from static/images/posts-2020/0-h1flLZs.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/0-h1flLZs.png
diff --git a/static/images/posts-2021/08/20210804_p10k_prompt.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/20210804_p10k_prompt.png
similarity index 100%
rename from static/images/posts-2021/08/20210804_p10k_prompt.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/20210804_p10k_prompt.png
diff --git a/static/images/posts-2020/2LTaCEdWH.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/2LTaCEdWH.png
similarity index 100%
rename from static/images/posts-2020/2LTaCEdWH.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/2LTaCEdWH.png
diff --git a/static/images/posts-2020/8q-WT0AyC.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/8q-WT0AyC.png
similarity index 100%
rename from static/images/posts-2020/8q-WT0AyC.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/8q-WT0AyC.png
diff --git a/static/images/posts-2020/ACUKsohq6.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/ACUKsohq6.png
similarity index 100%
rename from static/images/posts-2020/ACUKsohq6.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/ACUKsohq6.png
diff --git a/static/images/posts-2020/K1ScSuWcg.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/K1ScSuWcg.png
similarity index 100%
rename from static/images/posts-2020/K1ScSuWcg.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/K1ScSuWcg.png
diff --git a/static/images/posts-2020/MkGu29HKl.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/MkGu29HKl.png
similarity index 100%
rename from static/images/posts-2020/MkGu29HKl.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/MkGu29HKl.png
diff --git a/static/images/posts-2020/QRP4iyLnu.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/QRP4iyLnu.png
similarity index 100%
rename from static/images/posts-2020/QRP4iyLnu.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/QRP4iyLnu.png
diff --git a/static/images/posts-2020/U5E556eXf.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/U5E556eXf.png
similarity index 100%
rename from static/images/posts-2020/U5E556eXf.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/U5E556eXf.png
diff --git a/static/images/posts-2020/XtmaR9Z0J.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/XtmaR9Z0J.png
similarity index 100%
rename from static/images/posts-2020/XtmaR9Z0J.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/XtmaR9Z0J.png
diff --git a/static/images/posts-2020/YaFNJJG_c.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/YaFNJJG_c.png
similarity index 100%
rename from static/images/posts-2020/YaFNJJG_c.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/YaFNJJG_c.png
diff --git a/static/images/posts-2020/a0uqHkJiC.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/a0uqHkJiC.png
similarity index 100%
rename from static/images/posts-2020/a0uqHkJiC.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/a0uqHkJiC.png
diff --git a/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications.md b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/index.md
similarity index 91%
rename from content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications.md
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/index.md
index c20be31..2201455 100644
--- a/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications.md
+++ b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/index.md
@@ -2,8 +2,8 @@
series: Projects
date: "2020-10-27T08:34:30Z"
lastmod: "2021-05-20"
-thumbnail: images/posts-2020/XtmaR9Z0J.png
-usePageBundles: false
+thumbnail: XtmaR9Z0J.png
+usePageBundles: true
tags:
- chromeos
- linux
@@ -16,7 +16,7 @@ featured: true
I've [written in the past](/3d-modeling-and-printing-on-chrome-os) about the Linux setup I've been using on my Pixel Slate. My Slate's keyboard stopped working over the weekend, though, and there don't seem to be any replacements (either Google or Brydge) to be found. And then I saw that [Walmart had the 64GB Lenovo Chromebook Duet temporarily marked down](https://twitter.com/johndotbowdre/status/1320733614426988544) to a mere $200 - just slightly more than the Slate's *keyboard* originally cost. So I jumped on that deal, and the little Chromeblet showed up today.
-![Aww, it's so cute!](/images/posts-2020/kULHPeDuc.jpeg)
+![Aww, it's so cute!](kULHPeDuc.jpeg)
I'll be putting the Duet through the paces in the coming days to see if/how it can replace my now-tablet-only Slate, but first things first: I need Linux. And this may be a little bit different than the setup on the Slate since the Duet's Mediatek processor uses the aarch64/arm64 architecture instead of amd64. (And while I'm writing these steps specific to the Duet, the same steps should work on basically any arm64 Chromebook.)
@@ -24,16 +24,16 @@ So journey with me as I get this little guy set up!
### Installing Linux
This part is dead simple. Just head into **Settings > Linux (Beta)** and hit the **Turn on** button:
-![It doesn't take much to get Linux turned on](/images/posts-2020/oLso9Wyzj.png)
+![It doesn't take much to get Linux turned on](oLso9Wyzj.png)
Click **Next**, review the options for username and initial disk size (which can be easily increased later so there's no real need to change it right now), and then select **Install**:
-![Selecting username and storage allocation](/images/posts-2020/ACUKsohq6.png)
+![Selecting username and storage allocation](ACUKsohq6.png)
It takes just a few minutes to download and initialize the `termina` VM and then create the default `penguin` container:
-![Installing...](/images/posts-2020/2LTaCEdWH.png)
+![Installing...](2LTaCEdWH.png)
You're ready to roll once the Terminal opens and gives you a prompt:
-![Hello, Penguin!](/images/posts-2020/0-h1flLZs.png)
+![Hello, Penguin!](0-h1flLZs.png)
Your first action should be to go ahead and install any patches:
```shell
@@ -57,7 +57,7 @@ Review it if you'd like (and you should! *Always* review code before running it!
sh install.sh
```
When asked if you'd like to change your default shell to `zsh` now, **say no**. This is because it will prompt for your password, but you probably don't have a password set on your brand-new Linux (Beta) account and that just makes things complicated. We'll clear this up later, but for now just check out that slick new prompt:
-![Oh my!](/images/posts-2020/8q-WT0AyC.png)
+![Oh my!](8q-WT0AyC.png)
Oh My Zsh is pretty handy because you can easily enable [additional plugins](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins) to make your prompt behave exactly the way you want it to. Let's spruce it up even more with the [powerlevel10k theme](https://github.com/romkatv/powerlevel10k)!
```shell
@@ -72,11 +72,11 @@ We'll need to launch another instance of `zsh` for the theme change to take effe
sudo chsh -s /bin/zsh [username]
```
Now close out the terminal and open it again, and you should be met by the powerlevel10k configurator which will walk you through getting things set up:
-![pwerlevel10k configurator](/images/posts-2020/K1ScSuWcg.png)
+![pwerlevel10k configurator](K1ScSuWcg.png)
This theme is crazy-configurable, but fortunately the configurator wizard does a great job of helping you choose the options that work best for you.
I pick the Classic prompt style, Unicode character set, Dark prompt color, 24-hour time, Angled separators, Sharp prompt heads, Flat prompt tails, 2-line prompt height, Dotted prompt connection, Right prompt frame, Sparse prompt spacing, Fluent prompt flow, Enabled transient prompt, Verbose instant prompt, and (finally) Yes to apply the changes.
-![New P10k prompt](/images/posts-2021/08/20210804_p10k_prompt.png)
+![New P10k prompt](20210804_p10k_prompt.png)
Looking good!
### Visual Studio Code
@@ -86,15 +86,15 @@ curl -L https://aka.ms/linux-arm64-deb > code_arm64.deb
sudo apt install ./code_arm64.deb
```
VS Code should automatically appear in the Chromebook's Launcher, or you can use it to open a file directly with `code [filename]`:
-![VS Code editing my .zshrc file](/images/posts-2020/XtmaR9Z0J.png)
+![VS Code editing my .zshrc file](XtmaR9Z0J.png)
Nice!
### Android platform tools (adb and fastboot)
I sometimes don't want to wait for my Pixel to get updated naturally, so I love using `adb sideload` to manually update my phones. Here's what it takes to set that up. Installing adb is as simple as `sudo apt install adb`. To use it, enable the USB Debugging Developer Option on your phone, and then connect the phone to the Chromebook. You'll get a prompt to connect the phone to Linux:
-![Connecting a phone to Linux](/images/posts-2020/MkGu29HKl.png)
+![Connecting a phone to Linux](MkGu29HKl.png)
Once you connect the phone to Linux, check the phone to approve the debugging connection. You can then issue `adb devices` to verify the phone is connected:
-![Verifying the ADB connection](/images/posts-2020/a0uqHkJiC.png)
+![Verifying the ADB connection](a0uqHkJiC.png)
*I've since realized that the platform-tools (adb/fastboot) available in the repos are much older than what are required for flashing a factory image or sideloading an OTA image to a modern Pixel phone. This'll do fine for installing APKs either to your Chromebook or your phone, but I had to pull out my trusty Pixelbook to flash GrapheneOS to my Pixel 4a.*
@@ -111,11 +111,11 @@ sudo chmod +x /opt/microsoft/powershell/7/pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
```
You can then just run `pwsh`:
-![Powershell, in Linux, on Chrome OS](/images/posts-2020/QRP4iyLnu.png)
+![Powershell, in Linux, on Chrome OS](QRP4iyLnu.png)
That was the hard part. To install PowerCLI into your new Powershell environment, just run `Install-Module -Name VMware.PowerCLI` at the `PS >` prompt, and accept the warning about installing a module from an untrusted repository.
I'm planning to use PowerCLI against my homelab without trusted SSL certificates so (note to self) I need to run `Set-PowerCLIConfiguration -InvalidCertificateAction Ignore` before I try to connect.
-![PowerCLI connected to my vCenter](/images/posts-2020/YaFNJJG_c.png)
+![PowerCLI connected to my vCenter](YaFNJJG_c.png)
Woot!
@@ -147,12 +147,12 @@ And finally update the package cache and install `docker` and its friends:
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
```
-![I put a container in your container](/images/posts-2020/k2uiYi5e8.png)
+![I put a container in your container](k2uiYi5e8.png)
Xzibit would be proud!
### 3D printing utilities
Just like [last time](/3d-modeling-and-printing-on-chrome-os), I'll want to be sure I can do light 3D part design and slicing on this Chromebook. Once again, I can install FreeCAD with `sudo apt install freecad`, and this time I didn't have to implement any workarounds for graphical issues:
-![FreeCAD](/images/posts-2020/q1inyuUOb.png)
+![FreeCAD](q1inyuUOb.png)
Unfortunately, though, I haven't found a slicer application compiled with support for aarch64/arm64. There's a *much* older version of Cura available in the default Debian repos but it crashes upon launch. Neither Cura nor PrusaSlicer (or the Slic3r upstream) offer arm64 releases.
@@ -174,7 +174,7 @@ conda install -c conda-forge notebook
You can then launch the notebook with `jupyter notebook` and it will automatically open up in a Chrome OS browser tab:
-![To Jupyter and beyond!](/images/posts-2020/U5E556eXf.png)
+![To Jupyter and beyond!](U5E556eXf.png)
Cool! Now I just need to learn what I'm doing with Jupyter - but at least I don't have an excuse about "my laptop won't run it".
diff --git a/static/images/posts-2020/k2uiYi5e8.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/k2uiYi5e8.png
similarity index 100%
rename from static/images/posts-2020/k2uiYi5e8.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/k2uiYi5e8.png
diff --git a/static/images/posts-2020/kULHPeDuc.jpeg b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/kULHPeDuc.jpeg
similarity index 100%
rename from static/images/posts-2020/kULHPeDuc.jpeg
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/kULHPeDuc.jpeg
diff --git a/static/images/posts-2020/oLso9Wyzj.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/oLso9Wyzj.png
similarity index 100%
rename from static/images/posts-2020/oLso9Wyzj.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/oLso9Wyzj.png
diff --git a/static/images/posts-2020/q1inyuUOb.png b/content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/q1inyuUOb.png
similarity index 100%
rename from static/images/posts-2020/q1inyuUOb.png
rename to content/posts/2020/10/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications/q1inyuUOb.png
diff --git a/static/images/posts-2020/9WdA6HRch.png b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/9WdA6HRch.png
similarity index 100%
rename from static/images/posts-2020/9WdA6HRch.png
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/9WdA6HRch.png
diff --git a/static/images/posts-2020/Ki7jo65t3.png b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/Ki7jo65t3.png
similarity index 100%
rename from static/images/posts-2020/Ki7jo65t3.png
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/Ki7jo65t3.png
diff --git a/static/images/posts-2020/KjGOX8Yiv.png b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/KjGOX8Yiv.png
similarity index 100%
rename from static/images/posts-2020/KjGOX8Yiv.png
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/KjGOX8Yiv.png
diff --git a/static/images/posts-2020/WWuHwVvrk.png b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/WWuHwVvrk.png
similarity index 100%
rename from static/images/posts-2020/WWuHwVvrk.png
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/WWuHwVvrk.png
diff --git a/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker.md b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/index.md
similarity index 97%
rename from content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker.md
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/index.md
index 0b35d22..e6ec022 100644
--- a/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker.md
+++ b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/index.md
@@ -2,8 +2,8 @@
series: Projects
date: "2020-11-24T08:34:30Z"
lastmod: "2021-03-12"
-thumbnail: images/posts-2020/Ki7jo65t3.png
-usePageBundles: false
+thumbnail: Ki7jo65t3.png
+usePageBundles: true
tags:
- android
- automation
@@ -16,7 +16,7 @@ title: Auto-connect to ProtonVPN on untrusted WiFi with Tasker [Update!]
I recently shared how I use [Tasker and Home Assistant to keep my phone from charging past 80%](/safeguard-your-androids-battery-with-tasker-home-assistant). Today, I'm going to share the setup I use to automatically connect my phone to a VPN on networks I *don't* control.
-![Tasker + OpenVPN](/images/posts-2020/Ki7jo65t3.png)
+![Tasker + OpenVPN](Ki7jo65t3.png)
### Background
Android has an option to [set a VPN as Always-On](https://support.google.com/android/answer/9089766#always-on_VPN) so for maximum security I could just use that. I'm not *overly* concerned (yet?) with my internet traffic being intercepted upstream of my ISP, though, and often need to connect to other devices on my home network without passing through a VPN (or introducing split-tunnel complexity). But I do want to be sure that my traffic is protected whenever I'm connected to a WiFi network controlled by someone else.
@@ -45,7 +45,7 @@ You can find instructions for configuring the OpenVPN client to work with Proton
- **Country configs** connect to a random VPN node in your target country
- **Standard server configs** let you choose the specific VPN node to use
- **Free server configs** connect you to one of the VPN nodes available in the free tier
-![Client config download page](/images/posts-2020/vdIG0jHmk.png)
+![Client config download page](vdIG0jHmk.png)
Feel free to download more than one if you'd like to have different profiles available within the OpenVPN app.
@@ -56,7 +56,7 @@ ProtonVPN automatically generates a set of user credentials to use with a third-
### Configuring OpenVPN for Android
Now what you've got the config file(s) and your client credentials, it's time to actually configure that client.
-![OpenVPN connection list](/images/posts-2020/9WdA6HRch.png)
+![OpenVPN connection list](9WdA6HRch.png)
1. Launch the OpenVPN for Android app and tap the little 'downvote-in-a-box' "Import" icon.
2. Browse to wherever you saved the `.ovpn` config files and select the one you'd like to use.
@@ -69,7 +69,7 @@ Success!
I don't like to have a bunch of persistent notification icons hanging around (and Android already shows a persistent status icon when a VPN connection is active). If you're like me, long-press the OpenVPN notification and tap the gear icon. Then tap on the **Connection statistics** category and activate the **Minimized** slider. The notification will still appear, but it will collapse to the bottom of your notification stack and you won't get bugged by the icon.
-![Notification settings](/images/posts-2020/WWuHwVvrk.png)
+![Notification settings](WWuHwVvrk.png)
### Tasker profiles
Open up Tasker and get ready to automate! We're going to wind up with at least two new Tasker profiles so (depending on how many you already have) you might want to create a new project by long-pressing the Home icon at the bottom-left of the screen and selecting the **Add** option. I chose to group all my VPN-related profiles in a project named (oh-so-creatively) "VPN". Totally your call though.
@@ -146,7 +146,7 @@ A1: Variable Clear [ Name:%TRUSTED_WIFI Pattern Matching:Off Local Variables Onl
#### OpenVPN Connect app configuration
After installing and launching the official [OpenVPN Connect app](https://play.google.com/store/apps/details?id=net.openvpn.openvpn), tap the "+" button at the bottom right to create a new profile. Swipe over to the "File" tab and import the `*.ovpn` file you downloaded from ProtonVPN. Paste in the username, tick the "Save password" box, and paste in the password as well. I also chose to rename the profile to something a little bit more memorable - you'll need this name later. From there, hit the "Add" button and then go ahead and tap on your profile to test the connection.
-![Creating a profile in OpenVPN Connect](/images/posts-2020/KjGOX8Yiv.png)
+![Creating a profile in OpenVPN Connect](KjGOX8Yiv.png)
#### Tasker profiles
Go ahead and create the [Trusted Wifi profile](#trusted-wifi) as described above.
diff --git a/static/images/posts-2020/vdIG0jHmk.png b/content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/vdIG0jHmk.png
similarity index 100%
rename from static/images/posts-2020/vdIG0jHmk.png
rename to content/posts/2020/11/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker/vdIG0jHmk.png
diff --git a/static/images/posts-2020/8Jg4zgrgB.png b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/8Jg4zgrgB.png
similarity index 100%
rename from static/images/posts-2020/8Jg4zgrgB.png
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/8Jg4zgrgB.png
diff --git a/static/images/posts-2020/Gu5I3LUep.png b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/Gu5I3LUep.png
similarity index 100%
rename from static/images/posts-2020/Gu5I3LUep.png
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/Gu5I3LUep.png
diff --git a/static/images/posts-2020/U3LfmEJ_7.png b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/U3LfmEJ_7.png
similarity index 100%
rename from static/images/posts-2020/U3LfmEJ_7.png
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/U3LfmEJ_7.png
diff --git a/static/images/posts-2020/aeIOr8w6k.png b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/aeIOr8w6k.png
similarity index 100%
rename from static/images/posts-2020/aeIOr8w6k.png
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/aeIOr8w6k.png
diff --git a/static/images/posts-2020/h7tl6facr.png b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/h7tl6facr.png
similarity index 100%
rename from static/images/posts-2020/h7tl6facr.png
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/h7tl6facr.png
diff --git a/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant.md b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/index.md
similarity index 91%
rename from content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant.md
rename to content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/index.md
index 345d669..77ad62e 100644
--- a/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant.md
+++ b/content/posts/2020/11/safeguard-your-androids-battery-with-tasker-home-assistant/index.md
@@ -1,8 +1,8 @@
---
series: Projects
date: "2020-11-14T08:34:30Z"
-thumbnail: images/posts-2020/aeIOr8w6k.png
-usePageBundles: false
+thumbnail: aeIOr8w6k.png
+usePageBundles: true
tags:
- android
- tasker
@@ -13,7 +13,7 @@ title: Safeguard your Android's battery with Tasker + Home Assistant
A few months ago, I started using the [AccuBattery app](https://play.google.com/store/apps/details?id=com.digibites.accubattery) to keep a closer eye on how I'd been charging my phones. The app has a handy feature that notifies you once the battery level reaches a certain threshold so you can pull the phone off the charger and extend the lithium battery's service life, and it even offers an estimate for what that impact might be. For instance, right now the app indicates that charging my Pixel 5 from 51% to 100% would cause 0.92 wear cycles, while stopping the charge at 80% would impose just 0.17 cycles.
-![AccuBattery screenshot](/images/posts-2020/aeIOr8w6k.png)
+![AccuBattery screenshot](aeIOr8w6k.png)
But that depends on me being near my phone and conscious so I can take action when the notification goes off. That's often a big assumption to make - and, frankly, I'm lazy.
@@ -29,17 +29,17 @@ I'm not going to go through how to install Home Assistant on the Pi or how to co
### The Recipe
1. Plug the Wemo into a wall outlet, and plug a phone charger into the Wemo. Add the Belkin Wemo integration in Home Assistant, and configure the device and entity. I named mine `switchy`. Make a note of the Entity ID: `switch.switchy`. We'll need that later.
-![The new entity in HA](/images/posts-2020/Gu5I3LUep.png)
+![The new entity in HA](Gu5I3LUep.png)
2. Either point your phone's browser to your [Home Assistant instance's local URL](http://homeassistant.local:8123/), or use the [Home Assistant app](https://play.google.com/store/apps/details?id=io.homeassistant.companion.android) to access it. Tap your username at the bottom of the menu and scroll all the way down to the Long-Lived Access Tokens section. Tap to create a new token. It doesn't matter what you name it, but be sure to copy to token data once it is generated since you won't be able to display it again.
3. Install the [Home Assistant Plug-In for Tasker](https://play.google.com/store/apps/details?id=com.markadamson.taskerplugin.homeassistant). Open Tasker, create a new Task called 'ChargeOff', and set the action to `Plugin > Home Assistant Plug-in for Tasker > Call Service`. Tap the pencil icon to edit the configuration, and then tap the plus sign to add a new server. Give it whatever name you like, and then enter your Home Assistant's IP address for the Base URL, followed by the port number `8123`. For example, `http://192.168.1.99:8123`. Paste in the Long-Lived Access Token you generated earlier. Go on and hit the Test Server button to make sure you got it right. It'll wind up looking something like this:
-![Configuring the HA connection in Tasker](/images/posts-2020/8Jg4zgrgB.png)
+![Configuring the HA connection in Tasker](8Jg4zgrgB.png)
For the Service field, you need to tell HA what you want it to do. We want it to turn off a switch so enter `switch.turn_off`. We'll use the Service Data field to tell it which switch, in JSON format:
```json
{"entity_id": "switch.switchy"}
```
Tap Test Service to make sure it works - and verify that the switch does indeed turn off.
-![Creating and testing the service](/images/posts-2020/U3LfmEJ_7.png)
+![Creating and testing the service](U3LfmEJ_7.png)
4. Hard part is over. Now we just need to set up a profile in Tasker to fire our new task. I named mine 'Charge Limiter'. I started with `State > Power > Battery Level` and set it to trigger between 81-100%., and also added `State > Power > Source: Any` so it will only be active while charging. I also only want this to trigger while my phone is charging at home, so I added `State > Net > Wifi Connected` and then specified my home SSID. Link this profile to the Task you created earlier, and never worry about overcharging your phone again.
-![Tasker profile to kill power above 80%](/images/posts-2020/h7tl6facr.png)
+![Tasker profile to kill power above 80%](h7tl6facr.png)
You can use a similar Task to turn the switch back on at a set time - or you could configure that automation directly in Home Assistant. I added an action to turn on the switch to my Google Assistant bedtime routine and that works quite well for my needs.
diff --git a/static/images/posts-2020/9_Ze3zyBk.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/9_Ze3zyBk.jpeg
similarity index 100%
rename from static/images/posts-2020/9_Ze3zyBk.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/9_Ze3zyBk.jpeg
diff --git a/static/images/posts-2020/BAf7knBk5.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/BAf7knBk5.jpeg
similarity index 100%
rename from static/images/posts-2020/BAf7knBk5.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/BAf7knBk5.jpeg
diff --git a/static/images/posts-2020/CBziPHD8A.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/CBziPHD8A.jpeg
similarity index 100%
rename from static/images/posts-2020/CBziPHD8A.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/CBziPHD8A.jpeg
diff --git a/static/images/posts-2020/P-x5qEg_9.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/P-x5qEg_9.jpeg
similarity index 100%
rename from static/images/posts-2020/P-x5qEg_9.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/P-x5qEg_9.jpeg
diff --git a/static/images/posts-2020/gVj7d_2Nu.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/gVj7d_2Nu.jpeg
similarity index 100%
rename from static/images/posts-2020/gVj7d_2Nu.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/gVj7d_2Nu.jpeg
diff --git a/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate.md b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/index.md
similarity index 91%
rename from content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate.md
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/index.md
index 18aa8ae..ebefe97 100644
--- a/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate.md
+++ b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/index.md
@@ -1,7 +1,7 @@
---
date: "2020-11-06T08:34:30Z"
-thumbnail: images/posts-2020/P-x5qEg_9.jpeg
-usePageBundles: false
+thumbnail: P-x5qEg_9.jpeg
+usePageBundles: true
tags:
- chromeos
title: 'Showdown: Lenovo Chromebook Duet vs. Google Pixel Slate'
@@ -9,7 +9,7 @@ title: 'Showdown: Lenovo Chromebook Duet vs. Google Pixel Slate'
Okay, okay, this isn't actually going to be a comparison review between the two wildly-mismatched-but-also-kind-of-similar [Chromeblets](https://www.reddit.com/r/chromeos/comments/bp1nwo/branding/), but rather a (hopefully) brief summary of my experience moving from an $800 Pixel Slate + $200 Google keyboard to a Lenovo Chromebook Duet I picked up on sale for just $200.
-![A Tale of Two Chromeblets](/images/posts-2020/P-x5qEg_9.jpeg)
+![A Tale of Two Chromeblets](P-x5qEg_9.jpeg)
### Background
Up until last week, I'd been using the Slate as my primary personal computing device for the previous 20 months or so, mainly in laptop mode (as opposed to tablet mode). I do a lot of casual web browsing, and I spend a significant portion of my free time helping other users on Google's product support forums as a part of the [Google Product Experts program](https://productexperts.withgoogle.com/what-it-is). I also work a lot with the [Chrome OS Linux (Beta) environment](/setting-up-linux-on-a-new-lenovo-chromebook-duet-bonus-arm64-complications), but I avoid Android apps as much as I can. And I also used the Slate for a bit of Stadia gaming when I wasn't near a Chromecast.
@@ -20,32 +20,32 @@ I was pretty happy with the Slate, but its expensive keyboard stopped working re
### Size
When you put these machines side by side, the first difference that jumps out is the size disparity. The 12.3" Pixel Slate is positively massive next to the 10.1" Lenovo Duet.
-![Big 'un and little 'un](/images/posts-2020/gVj7d_2Nu.jpeg)
+![Big 'un and little 'un](gVj7d_2Nu.jpeg)
The Duet is physically smaller so the display itself is of course smaller. I had a brief moment of panic when I first logged in and the setup wizard completely filled the screen. Dialing Chrome OS's display scaling down to 80% strikes a good balance for me between fonts being legible while still displaying enough content to be worthwhile. It can get a bit tight when you've got windows docked side-by-side but I'm getting by okay.
Of course, the smaller size of the Duet also makes it work better as a tablet in my mind. It's comfortable enough to hold with one hand while you interact with the other, whereas the Slate always felt a little too big for that to me.
-![One-handing the Duet](/images/posts-2020/qne9SybLi.jpeg)
+![One-handing the Duet](qne9SybLi.jpeg)
### Keyboard
A far more impactful size difference is the keyboards though. The Duet keyboard gets a bit cramped, particularly over toward the right side (you know, those pesky braces and semicolons that are *never* needed when coding):
-![The Duet's keyboard is MUCH smaller](/images/posts-2020/CBziPHD8A.jpeg)
+![The Duet's keyboard is MUCH smaller](CBziPHD8A.jpeg)
Getting used to typing on this significantly smaller keyboard has been the biggest adjustment so far. The pad on my pinky finger is wider than the last few keys at the right edge of the keyboard so I've struggled with accurately hitting the correct `[` or `]`, and also with smacking Return (and inevitably sending a malformed chat message) when trying to insert an apostrophe. I feel like I'm slowly getting the hang of it, but like I said, it's been an adjustment.
### Cover
-![Cover up!](/images/posts-2020/yiCW6XZbF.jpeg)
+![Cover up!](yiCW6XZbF.jpeg)
The Pixel Slate's keyboard + folio cover is a single (floppy) piece. The keyboard connects to contacts on the bottom edge of the Slate, and magnets hold it in place. The rear cover then folds and sticks to the back of the Slate with magnets to prop up the tablet in different angles. The magnet setup means you can smoothly transition it through varying levels of tilt, which is pretty nice. But being a single piece means the keyboard might get in the way if you're trying to use it as just a propped-up tablet. And the extra folding in the back takes up a bit of space so the Slate may not work well as a laptop on your actual lap.
-![Duet's fabric cover](/images/posts-2020/9_Ze3zyBk.jpeg)
+![Duet's fabric cover](9_Ze3zyBk.jpeg)
The Duet's rear cover has a fabric finish kind of similar to the cases Google offers for their phones, and it provides a great texture for holding the tablet. It sticks to the back of the Duet through the magic of magnets, and the lower half of it folds out to create a really sturdy kickstand. And it's completely separate from the keyboard which is great for when you're using the Duet as a tablet (either handheld or propped up for watching a movie or gaming with Stadia).
-![Duet kickstand](/images/posts-2020/nWRu2TB8i.jpeg)
+![Duet kickstand](nWRu2TB8i.jpeg)
And this little kickstand can go *low*, much lower than the Slate. This makes it perfect for my late-night Stadia sessions while sitting in bed. I definitely prefer this approach compared to what Google did with the Pixel Slate.
-![The Duet handily wins this limbo competition](/images/posts-2020/BAf7knBk5.jpeg)
+![The Duet handily wins this limbo competition](BAf7knBk5.jpeg)
### Performance
The Duet does struggle a bit here. It's basically got a [smartphone processor](https://www.notebookcheck.net/Mediatek-Helio-P60T-Processor-Benchmarks-and-Specs.470711.0.html) and half the RAM of the Slate. Switching between windows and tabs sometimes takes an extra moment or two to catch up (particularly if said tab has been silently suspended in the background). Similarly, working with Linux apps is just a bit slower than you'd like it to be. Still, I've spent a bit more than a week now with the Duet as my go-to computer and it's never really been slow enough to bother me.
diff --git a/static/images/posts-2020/nWRu2TB8i.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/nWRu2TB8i.jpeg
similarity index 100%
rename from static/images/posts-2020/nWRu2TB8i.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/nWRu2TB8i.jpeg
diff --git a/static/images/posts-2020/qne9SybLi.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/qne9SybLi.jpeg
similarity index 100%
rename from static/images/posts-2020/qne9SybLi.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/qne9SybLi.jpeg
diff --git a/static/images/posts-2020/yiCW6XZbF.jpeg b/content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/yiCW6XZbF.jpeg
similarity index 100%
rename from static/images/posts-2020/yiCW6XZbF.jpeg
rename to content/posts/2020/11/showdown-lenovo-chromebook-duet-vs-google-pixel-slate/yiCW6XZbF.jpeg
diff --git a/static/images/posts-2020/-lp1-DGiM.png b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/-lp1-DGiM.png
similarity index 100%
rename from static/images/posts-2020/-lp1-DGiM.png
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/-lp1-DGiM.png
diff --git a/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility.md b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/index.md
similarity index 85%
rename from content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility.md
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/index.md
index f44be1a..5f16135 100644
--- a/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility.md
+++ b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/index.md
@@ -1,8 +1,8 @@
---
series: Tips
date: "2020-12-23T08:34:30Z"
-thumbnail: images/posts-2020/-lp1-DGiM.png
-usePageBundles: false
+thumbnail: -lp1-DGiM.png
+usePageBundles: true
tags:
- chromeos
title: Burn an ISO to USB with the Chromebook Recovery Utility
@@ -17,17 +17,17 @@ Normally that tool is used to creating bootable media to [reinstall Chrome OS on
1. Install the [Chromebook Recovery Utility](https://chrome.google.com/webstore/detail/chromebook-recovery-utili/pocpnlppkickgojjlmhdmidojbmbodfm).
2. Download the ISO you intend to use.
3. Rename the file to append `.bin` on the end, after the `.iso` bit:
-![My renamed ISO for installing ESXi](/images/posts-2020/uoTjgtbN1.png)
+![My renamed ISO for installing ESXi](uoTjgtbN1.png)
4. Plug in the USB drive you're going to sacrifice for this effort - remember that ALL data on the drive will be erased.
5. Open the recovery utility, click on the gear icon at the top right, and select the *Use local image* option:
-![The CRU menu](/images/posts-2020/vdTpW9t7Q.png)
+![The CRU menu](vdTpW9t7Q.png)
6. Browse to and select the `*.iso.bin` file.
7. Choose the USB drive, and click *Continue*.
-![Selecting the drive](/images/posts-2020/p_Ieqsw4p.png)
+![Selecting the drive](p_Ieqsw4p.png)
8. Click *Create now* to start the writing!
-![Writing the image](/images/posts-2020/lhw5EEqSD.png)
+![Writing the image](lhw5EEqSD.png)
9. All done! It probably won't work great for actually recovering your Chromebook but will do wonders for installing ESXi (or whatever) on another computer!
-![Success!](/images/posts-2020/-lp1-DGiM.png)
+![Success!](-lp1-DGiM.png)
You can also use the CRU to make a bootable USB from a `.zip` archive containing a single `.img` file, such as those commonly used to distribute [Raspberry Pi images](https://www.raspberrypi.org/documentation/installation/installing-images/chromeos.md).
diff --git a/static/images/posts-2020/lhw5EEqSD.png b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/lhw5EEqSD.png
similarity index 100%
rename from static/images/posts-2020/lhw5EEqSD.png
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/lhw5EEqSD.png
diff --git a/static/images/posts-2020/p_Ieqsw4p.png b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/p_Ieqsw4p.png
similarity index 100%
rename from static/images/posts-2020/p_Ieqsw4p.png
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/p_Ieqsw4p.png
diff --git a/static/images/posts-2020/uoTjgtbN1.png b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/uoTjgtbN1.png
similarity index 100%
rename from static/images/posts-2020/uoTjgtbN1.png
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/uoTjgtbN1.png
diff --git a/static/images/posts-2020/vdTpW9t7Q.png b/content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/vdTpW9t7Q.png
similarity index 100%
rename from static/images/posts-2020/vdTpW9t7Q.png
rename to content/posts/2020/12/burn-an-iso-to-usb-with-the-chromebook-recovery-utility/vdTpW9t7Q.png
diff --git a/static/images/posts-2020/XTaU9VDy8.png b/content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters/XTaU9VDy8.png
similarity index 100%
rename from static/images/posts-2020/XTaU9VDy8.png
rename to content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters/XTaU9VDy8.png
diff --git a/content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters.md b/content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters/index.md
similarity index 96%
rename from content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters.md
rename to content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters/index.md
index 5e4b242..457af1c 100644
--- a/content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters.md
+++ b/content/posts/2021/01/psa-halt-replication-before-snapshotting-linked-vcenters/index.md
@@ -1,8 +1,8 @@
---
series: Tips
date: "2021-01-30T08:34:30Z"
-thumbnail: images/posts-2020/XTaU9VDy8.png
-usePageBundles: false
+thumbnail: XTaU9VDy8.png
+usePageBundles: true
tags:
- vmware
title: 'PSA: halt replication before snapshotting linked vCenters'
@@ -13,7 +13,7 @@ It's a good idea to take a snapshot of your virtual appliances before applying a
*(Yes, that's a lesson I learned the hard way - and warnings about that are tragically hard to come by from what I've seen. So I'm sharing my notes so that you can avoid making the same mistake.)*
-![Viewing replication status of linked vCenters](/images/posts-2020/XTaU9VDy8.png)
+![Viewing replication status of linked vCenters](XTaU9VDy8.png)
Take these steps when you need to snapshot linked vCenters to avoid breaking replication:
diff --git a/static/images/posts-2020/-PHf9oUyM.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/-PHf9oUyM.png
similarity index 100%
rename from static/images/posts-2020/-PHf9oUyM.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/-PHf9oUyM.png
diff --git a/static/images/posts-2020/-aPGJhSvz.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/-aPGJhSvz.png
similarity index 100%
rename from static/images/posts-2020/-aPGJhSvz.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/-aPGJhSvz.png
diff --git a/static/images/posts-2020/09RIXJc12.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/09RIXJc12.png
similarity index 100%
rename from static/images/posts-2020/09RIXJc12.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/09RIXJc12.png
diff --git a/static/images/posts-2020/2otDJvqRP.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/2otDJvqRP.png
similarity index 100%
rename from static/images/posts-2020/2otDJvqRP.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/2otDJvqRP.png
diff --git a/static/images/posts-2020/3BQnEd0bY.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/3BQnEd0bY.png
similarity index 100%
rename from static/images/posts-2020/3BQnEd0bY.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/3BQnEd0bY.png
diff --git a/static/images/posts-2020/4WQ8HWJ2N.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/4WQ8HWJ2N.png
similarity index 100%
rename from static/images/posts-2020/4WQ8HWJ2N.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/4WQ8HWJ2N.png
diff --git a/static/images/posts-2020/6yo39lXI7.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/6yo39lXI7.png
similarity index 100%
rename from static/images/posts-2020/6yo39lXI7.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/6yo39lXI7.png
diff --git a/static/images/posts-2020/7_QI-Ti8g.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/7_QI-Ti8g.png
similarity index 100%
rename from static/images/posts-2020/7_QI-Ti8g.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/7_QI-Ti8g.png
diff --git a/static/images/posts-2020/DiqyOlf5S.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/DiqyOlf5S.png
similarity index 100%
rename from static/images/posts-2020/DiqyOlf5S.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/DiqyOlf5S.png
diff --git a/static/images/posts-2020/QoxVKC11t.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/QoxVKC11t.png
similarity index 100%
rename from static/images/posts-2020/QoxVKC11t.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/QoxVKC11t.png
diff --git a/static/images/posts-2020/SR7oD0jsG.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/SR7oD0jsG.png
similarity index 100%
rename from static/images/posts-2020/SR7oD0jsG.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/SR7oD0jsG.png
diff --git a/static/images/posts-2020/bpx8iKUHF.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/bpx8iKUHF.png
similarity index 100%
rename from static/images/posts-2020/bpx8iKUHF.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/bpx8iKUHF.png
diff --git a/static/images/posts-2020/e4PTJxfqH.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/e4PTJxfqH.png
similarity index 100%
rename from static/images/posts-2020/e4PTJxfqH.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/e4PTJxfqH.png
diff --git a/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8.md b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/index.md
similarity index 97%
rename from content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8.md
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/index.md
index f20f3c8..eb4d54b 100644
--- a/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8.md
+++ b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-02-22T08:34:30Z"
-thumbnail: images/posts-2020/7_QI-Ti8g.png
-usePageBundles: false
+thumbnail: 7_QI-Ti8g.png
+usePageBundles: true
tags:
- python
- rest
@@ -100,34 +100,34 @@ Now would also be a good time to go ahead and enable cron jobs so that phpIPAM w
Okay, let's now move on to the phpIPAM web-based UI to continue the setup. After logging in at `https://ipam.lab.bowdre.net/`, I clicked on the red **Administration** menu at the right side and selected **phpIPAM Settings**. Under the **Site Settings** section, I enabled the *Prettify links* option, and under the **Feature Settings** section I toggled on the *API* component. I then hit *Save* at the bottom of the page to apply the changes.
Next, I went to the **Users** item on the left-hand menu to create a new user account which will be used by vRA. I named it `vra`, set a password for the account, and made it a member of the `Operators` group, but didn't grant any special module access.
-![Creating vRA service account in phpIPAM](/images/posts-2020/DiqyOlf5S.png)
-![Creating vRA service account in phpIPAM](/images/posts-2020/QoxVKC11t.png)
+![Creating vRA service account in phpIPAM](DiqyOlf5S.png)
+![Creating vRA service account in phpIPAM](QoxVKC11t.png)
The last step in configuring API access is to create an API key. This is done by clicking the **API** item on that left side menu and then selecting *Create API key*. I gave it the app ID `vra`, granted Read/Write permissions, and set the *App Security* option to "SSL with User token".
-![Generating the API key](/images/posts-2020/-aPGJhSvz.png)
+![Generating the API key](-aPGJhSvz.png)
Once we get things going, our API calls will authenticate with the username and password to get a token and bind that to the app ID.
### Step 2: Configuring phpIPAM subnets
Our fancy new IPAM solution is ready to go - except for the whole bit about managing IPs. We need to tell it about the network segments we'd like it to manage. phpIPAM uses "Sections" to group subnets together, so we start by creating a new Section at **Administration > IP related management > Sections**. I named my new section `Lab`, and pretty much left all the default options. Be sure that the `Operators` group has read/write access to this section and the subnets we're going to create inside it!
-![Creating a section to hold the subnets](/images/posts-2020/6yo39lXI7.png)
+![Creating a section to hold the subnets](6yo39lXI7.png)
We should also go ahead and create a Nameserver set so that phpIPAM will be able to tell its clients (vRA) what server(s) to use for DNS. Do this at **Administration > IP related management > Nameservers**. I created a new entry called `Lab` and pointed it at my internal DNS server, `192.168.1.5`.
-![Designating the nameserver](/images/posts-2020/pDsEh18bx.png)
+![Designating the nameserver](pDsEh18bx.png)
Okay, we're finally ready to start entering our subnets at **Administration > IP related management > Subnets**. For each one, I entered the Subnet in CIDR format, gave it a useful description, and associated it with my `Lab` section. I expanded the *VLAN* dropdown and used the *Add new VLAN* option to enter the corresponding VLAN information, and also selected the Nameserver I had just created.
-![Entering the first subnet](/images/posts-2020/-PHf9oUyM.png)
+![Entering the first subnet](-PHf9oUyM.png)
I also enabled the options *Mark as pool*, *Check hosts status*, *Discover new hosts*, and *Resolve DNS names*.
-![Subnet options](/images/posts-2020/SR7oD0jsG.png)
+![Subnet options](SR7oD0jsG.png)
I then used the *Scan subnets for new hosts* button to run a discovery scan against the new subnet.
-![Scanning for new hosts](/images/posts-2020/4WQ8HWJ2N.png)
+![Scanning for new hosts](4WQ8HWJ2N.png)
The scan only found a single host, `172.16.20.1`, which is the subnet's gateway address hosted by the Vyos router. I used the pencil icon to edit the IP and mark it as the gateway:
-![Identifying the gateway](/images/posts-2020/2otDJvqRP.png)
+![Identifying the gateway](2otDJvqRP.png)
phpIPAM now knows the network address, mask, gateway, VLAN, and DNS configuration for this subnet - all things that will be useful for clients seeking an address. I then repeated these steps for the remaining subnets.
-![More subnets!](/images/posts-2020/09RIXJc12.png)
+![More subnets!](09RIXJc12.png)
Now for the *real* fun!
@@ -351,10 +351,10 @@ try:
You can view the full code [here](https://github.com/jbowdre/phpIPAM-for-vRA8/blob/main/src/main/python/validate_endpoint/source.py).
After completing each operation, run `mvn package -PcollectDependencies -Duser.id=${UID}` to build again, and then import the package to vRA again. This time, you'll see the new "API App ID" field on the form:
-![Validating the new IPAM endpoint](/images/posts-2020/bpx8iKUHF.png)
+![Validating the new IPAM endpoint](bpx8iKUHF.png)
Confirm that everything worked correctly by hopping over to the **Extensibility** tab, selecting **Action Runs** on the left, and changing the **User Runs** filter to say *Integration Runs*.
-![Extensibility action runs](/images/posts-2020/e4PTJxfqH.png)
+![Extensibility action runs](e4PTJxfqH.png)
Select the newest `phpIPAM_ValidateEndpoint` action and make sure it has a happy green *Completed* status. You can also review the Inputs to make sure they look like what you expected:
```json
{
@@ -503,7 +503,7 @@ vRA runs the `phpIPAM_GetIPRanges` action about every ten minutes so keep checki
Note that it *did not* pick up my "Home Network" range since it wasn't set to be a pool.
We can also navigate to **Infrastructure > Networks > IP Ranges** to view them in all their glory:
-![Reviewing the discovered IP ranges](/images/posts-2020/7_QI-Ti8g.png)
+![Reviewing the discovered IP ranges](7_QI-Ti8g.png)
You can then follow [these instructions](https://docs.vmware.com/en/vRealize-Automation/8.3/Using-and-Managing-Cloud-Assembly/GUID-410899CA-1B02-4507-96AD-DFE622D2DD47.html) to associate the external IP ranges with networks available for vRA deployments.
@@ -637,7 +637,7 @@ The full `allocate_ip` code is [here](https://github.com/jbowdre/phpIPAM-for-vRA
[2021-02-22 01:31:41,790] [INFO] - Successfully reserved ['172.16.40.2'] for BOW-VLTST-XXX41.
```
You can also check for a reserved address in phpIPAM:
-![The reserved address in phpIPAM](/images/posts-2020/3BQnEd0bY.png)
+![The reserved address in phpIPAM](3BQnEd0bY.png)
Almost done!
diff --git a/static/images/posts-2020/pDsEh18bx.png b/content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/pDsEh18bx.png
similarity index 100%
rename from static/images/posts-2020/pDsEh18bx.png
rename to content/posts/2021/02/integrating-phpipam-with-vrealize-automation-8/pDsEh18bx.png
diff --git a/static/images/posts-2020/IL29_Shlg.png b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/IL29_Shlg.png
similarity index 100%
rename from static/images/posts-2020/IL29_Shlg.png
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/IL29_Shlg.png
diff --git a/static/images/posts-2020/PPZu_UOGO.png b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/PPZu_UOGO.png
similarity index 100%
rename from static/images/posts-2020/PPZu_UOGO.png
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/PPZu_UOGO.png
diff --git a/static/images/posts-2020/SBKtJ8K1p.png b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/SBKtJ8K1p.png
similarity index 100%
rename from static/images/posts-2020/SBKtJ8K1p.png
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/SBKtJ8K1p.png
diff --git a/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles.md b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/index.md
similarity index 82%
rename from content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles.md
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/index.md
index 565d852..2c7d3c9 100644
--- a/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles.md
+++ b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/index.md
@@ -1,8 +1,8 @@
---
series: Tips
date: "2021-02-18T08:34:30Z"
-thumbnail: images/posts-2020/PPZu_UOGO.png
-usePageBundles: false
+thumbnail: PPZu_UOGO.png
+usePageBundles: true
tags:
- logs
- vmware
@@ -11,21 +11,21 @@ toc: false
---
I recently ran into a peculiar issue after upgrading my vRealize Automation homelab to the new 8.3 release, and the error message displayed in the UI didn't give me a whole lot of information to work with:
-![Unfortunately my 'Essential Googling The Error Message' O'RLY book was no help with making the bad words go away](/images/posts-2020/IL29_Shlg.png)
+![Unfortunately my 'Essential Googling The Error Message' O'RLY book was no help with making the bad words go away](IL29_Shlg.png)
I connected to the vRA appliance to try to find the relevant log excerpt, but [doing so isn't all that straightforward](https://www.stevenbright.com/2020/01/vmware-vrealize-automation-8-0-logs/#:~:text=Access%20Logs%20from%20the%20CLI) given the containerized nature of the services.
So instead I used the `vracli log-bundle` command to generate a bundle of all relevant logs, and I then transferred the resulting (2.2GB!) `log-bundle.tar` to my workstation for further investigation. I expanded the tar and ran `tree -P '*.log'` to get a quick idea of what I've got to deal with:
-![That's a lot of logs!](/images/posts-2020/wAa9KjBHO.png)
+![That's a lot of logs!](wAa9KjBHO.png)
Ugh. Even if I knew which logs I wanted to look at (and I don't) it would take ages to dig through all of this. There's got to be a better way.
And there is! Visual Studio Code lets you open an entire directory tree in the editor:
-![Directory opened in VS Code](/images/posts-2020/SBKtJ8K1p.png)
+![Directory opened in VS Code](SBKtJ8K1p.png)
You can then "Find in Files" with `Ctrl`+`Shift`+`F`, and VS Code will *very* quickly search through all the files to find what you're looking for:
-![Searching all files](/images/posts-2020/PPZu_UOGO.png)
+![Searching all files](PPZu_UOGO.png)
You can also click the "Open in editor" link at the top of the search results to open the matching snippets in a single view:
-![All the matching strings together](/images/posts-2020/kJ_l7gPD2.png)
+![All the matching strings together](kJ_l7gPD2.png)
Adjusting the number at the far top right of that view will dynamically tweak how many context lines are included with each line containing the search term.
diff --git a/static/images/posts-2020/kJ_l7gPD2.png b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/kJ_l7gPD2.png
similarity index 100%
rename from static/images/posts-2020/kJ_l7gPD2.png
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/kJ_l7gPD2.png
diff --git a/static/images/posts-2020/wAa9KjBHO.png b/content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/wAa9KjBHO.png
similarity index 100%
rename from static/images/posts-2020/wAa9KjBHO.png
rename to content/posts/2021/02/using-vs-code-to-explore-giant-log-bundles/wAa9KjBHO.png
diff --git a/static/images/posts-2020/42n3aMim5.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/42n3aMim5.png
similarity index 100%
rename from static/images/posts-2020/42n3aMim5.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/42n3aMim5.png
diff --git a/static/images/posts-2020/4o5bqRiTJ.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/4o5bqRiTJ.png
similarity index 100%
rename from static/images/posts-2020/4o5bqRiTJ.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/4o5bqRiTJ.png
diff --git a/static/images/posts-2020/6-auEYd-W.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/6-auEYd-W.png
similarity index 100%
rename from static/images/posts-2020/6-auEYd-W.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/6-auEYd-W.png
diff --git a/static/images/posts-2020/7aNJa2Hlm.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/7aNJa2Hlm.png
similarity index 100%
rename from static/images/posts-2020/7aNJa2Hlm.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/7aNJa2Hlm.png
diff --git a/static/images/posts-2020/OOP_lstyM.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/OOP_lstyM.png
similarity index 100%
rename from static/images/posts-2020/OOP_lstyM.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/OOP_lstyM.png
diff --git a/static/images/posts-2020/PZ6FzmJcx.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/PZ6FzmJcx.png
similarity index 100%
rename from static/images/posts-2020/PZ6FzmJcx.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/PZ6FzmJcx.png
diff --git a/static/images/posts-2020/SIDah-Lag.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/SIDah-Lag.png
similarity index 100%
rename from static/images/posts-2020/SIDah-Lag.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/SIDah-Lag.png
diff --git a/static/images/posts-2020/Wu3ZIIVTs.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/Wu3ZIIVTs.png
similarity index 100%
rename from static/images/posts-2020/Wu3ZIIVTs.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/Wu3ZIIVTs.png
diff --git a/static/images/posts-2020/XDe98S4Fx.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/XDe98S4Fx.png
similarity index 100%
rename from static/images/posts-2020/XDe98S4Fx.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/XDe98S4Fx.png
diff --git a/static/images/posts-2020/arA7gurqh.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/arA7gurqh.png
similarity index 100%
rename from static/images/posts-2020/arA7gurqh.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/arA7gurqh.png
diff --git a/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9.md b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/index.md
similarity index 94%
rename from content/posts/2021/02/vmware-home-lab-on-intel-nuc-9.md
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/index.md
index 133e3a9..e9c66f7 100644
--- a/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9.md
+++ b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-02-05T08:34:30Z"
-thumbnail: images/posts-2020/SIDah-Lag.png
-usePageBundles: false
+thumbnail: SIDah-Lag.png
+usePageBundles: true
tags:
- vmware
- homelab
@@ -13,7 +13,7 @@ featured: true
I picked up an Intel NUC 9 Extreme kit a few months back (thanks, VMware!) and have been slowly tinkering with turning it into an extremely capable self-contained home lab environment. I'm pretty happy with where things sit right now so figured it was about time to start documenting and sharing what I've done.
-![But boy would I love some more RAM](/images/posts-2020/SIDah-Lag.png)
+![But boy would I love some more RAM](SIDah-Lag.png)
### Hardware
*(Caution: here be affiliate links)*
@@ -41,24 +41,24 @@ The NUC connects to my home network through its onboard gigabit Ethernet interfa
I used the Chromebook Recovery Utility to write the ESXi installer ISO to *another* USB drive (how-to [here](/burn-an-iso-to-usb-with-the-chromebook-recovery-utility)), inserted that bootable drive to a port on the front of the NUC, and booted the NUC from the drive. Installing ESXi 7.0u1 was as easy as it could possibly be. All hardware was automatically detected and the appropriate drivers loaded. Once the host booted up, I used the DCUI to configure a static IP address (`192.168.1.11`). I then shut down the NUC, disconnected the keyboard and monitor, and moved it into the cabinet where it will live out its headless existence.
I was then able to point my web browser to `https://192.168.1.11/ui/` to log in to the host and get down to business. First stop: networking. For now, I only need a single standard switch (`vSwitch0`) with two portgroups: one for the host's vmkernel interface, and the other for the VMs (including the nested ESXi appliances) that are going to run directly on this physical host. The one "gotcha" when working with a nested environment is that you'll need to edit the virtual switch's security settings to "Allow promiscuous mode" and "Allow forged transmits" (for reasons described [here](https://williamlam.com/2013/11/why-is-promiscuous-mode-forged.html)).
-![Allowing promiscuous mode and forged transmits](/images/posts-2020/w0HeFSi7Q.png)
+![Allowing promiscuous mode and forged transmits](w0HeFSi7Q.png)
I created a single datastore to span the entirety of that 1TB NVMe drive. The nested ESXi hosts will use VMDKs stored here to provide storage to the nested VMs.
-![The new datastore](/images/posts-2020/XDe98S4Fx.png)
+![The new datastore](XDe98S4Fx.png)
#### Domain Controller
I created a new Windows VM with 2 vCPUs, 4GB of RAM, and a 90GB virtual hard drive, and I booted it off a [Server 2019 evaluation ISO](https://www.microsoft.com/en-US/evalcenter/evaluate-windows-server-2019?filetype=ISO). I gave it a name, a static IP address, and proceeded to install and configure the Active Directory Domain Services and DNS Server roles. I created static A and PTR records for the vCenter Server Appliance I'd be deploying next (`vcsa.`) and the physical host (`nuchost.`). I configured ESXi to use this new server for DNS resolutions, and confirmed that I could resolve the VCSA's name from the host.
-![AD and DNS](/images/posts-2020/4o5bqRiTJ.png)
+![AD and DNS](4o5bqRiTJ.png)
Before moving on, I installed the Chrome browser on this new Windows VM and also set up remote access via [Chrome Remote Desktop](https://remotedesktop.google.com/access/). This will let me remotely access and manage my lab environment without having to punch holes in the router firewall (or worry about securing said holes). And it's got "chrome" in the name so it will work just fine from my Chromebooks!
#### vCenter
I attached the vCSA installation ISO to the Windows VM and performed the vCenter deployment from there. (See, I told you that Chrome Remote Desktop would come in handy!)
-![vCenter deployment process](/images/posts-2020/OOP_lstyM.png)
+![vCenter deployment process](OOP_lstyM.png)
After the vCenter was deployed and the basic configuration completed, I created a new cluster to contain the physical host. There's likely only ever going to be the one physical host but I like being able to logically group hosts in this way, particularly when working with PowerCLI. I then added the host to the vCenter by its shiny new FQDN.
-![Shiny new cluser](/images/posts-2020/Wu3ZIIVTs.png)
+![Shiny new cluser](Wu3ZIIVTs.png)
I've now got a fully-functioning VMware lab, complete with a physical hypervisor to run the workloads, a vCenter server to manage the workloads, and a Windows DNS server to tell the workloads how to talk to each other. Since the goal is to ultimately simulate a (small) production environment, let's set up some additional networking before we add anything else.
@@ -86,7 +86,7 @@ Of course, not everything that I'm going to deploy in the lab will need to be ac
#### vSwitch1
I'll start by adding a second vSwitch to the physical host. It doesn't need a physical adapter assigned since this switch will be for internal traffic. I create two port groups: one tagged for the VLAN 1610 Management traffic, which will be useful for attaching VMs on the physical host to the internal network; and the second will use VLAN 4095 to pass all VLAN traffic to the nested ESXi hosts. And again, this vSwitch needs to have its security policy set to allow Promiscuous Mode and Forged Transmits. I also set the vSwitch to support an MTU of 9000 so I can use Jumbo Frames on the vMotion and vSAN networks.
-![Second vSwitch](/images/posts-2020/7aNJa2Hlm.png)
+![Second vSwitch](7aNJa2Hlm.png)
#### VyOS
Wouldn't it be great if the VMs that are going to be deployed on those `1610`, `1620`, and `1630` VLANs could still have their traffic routed out of the internal networks? But doing routing requires a router (or so my network friends tell me)... so I deployed a VM running the open-source VyOS router platform. I used [William Lam's instructions for installing VyOS](https://williamlam.com/2020/02/how-to-automate-the-creation-multiple-routable-vlans-on-single-l2-network-using-vyos.html), making sure to attach the first network interface to the Home-Network portgroup and the second to the Isolated portgroup (VLAN 4095). I then set to work [configuring the router](https://docs.vyos.io/en/latest/quick-start.html).
@@ -190,24 +190,24 @@ Alright, it's time to start building up the nested environment. To start, I grab
Deploying the virtual appliances is just like any other "Deploy OVF Template" action. I placed the VMs on the `physical-cluster` compute resource, and selected to thin provision the VMDKs on the local datastore. I chose the "Isolated" VM network which uses VLAN 4095 to make all the internal VLANs available on a single portgroup.
-![Deploying the nested ESXi OVF](/images/posts-2020/zOJp-jqVb.png)
+![Deploying the nested ESXi OVF](zOJp-jqVb.png)
And I set the networking properties accordingly:
-![OVF networking settings](/images/posts-2020/PZ6FzmJcx.png)
+![OVF networking settings](PZ6FzmJcx.png)
These virtual appliances come with 3 hard drives. The first will be used as the boot device, the second for vSAN caching, and the third for vSAN capacity. I doubled the size of the second and third drives, to 8GB and 16GB respectively:
-![OVF storage configuration](/images/posts-2020/nkdH7Jfxw.png)
+![OVF storage configuration](nkdH7Jfxw.png)
After booting the new host VMs, I created a new cluster in vCenter and then added the nested hosts:
-![New nested hosts added to a cluster](/images/posts-2020/z8fvzu4Km.png)
+![New nested hosts added to a cluster](z8fvzu4Km.png)
Next, I created a new Distributed Virtual Switch to break out the VLAN trunk on the nested host "physical" adapters into the individual VLANs I created on the VyOS router. Again, each port group will need to allow Promiscuous Mode and Forged Transmits, and I set the dvSwitch MTU size to 9000 (to support Jumbo Frames on the vSAN and vMotion portgroups).
-![New dvSwitch for nested traffic](/images/posts-2020/arA7gurqh.png)
+![New dvSwitch for nested traffic](arA7gurqh.png)
I migrated the physical NICs and `vmk0` to the new dvSwitch, and then created new vmkernel interfaces for vMotion and vSAN traffic on each of the nested hosts:
-![ESXi vmkernel interfaces](/images/posts-2020/6-auEYd-W.png)
+![ESXi vmkernel interfaces](6-auEYd-W.png)
I then ssh'd into the hosts and used `vmkping` to make sure they could talk to each other over these interfaces. I changed the vMotion interface to use the vMotion TCP/IP stack so needed to append the `-S vmotion` flag to the command:
@@ -234,10 +234,10 @@ round-trip min/avg/max = 0.202/0.252/0.312 ms
```
Okay, time to throw some vSAN on these hosts. Select the cluster object, go to the configuration tab, scroll down to vSAN, and click "Turn on vSAN". This will be a single site cluster, and I don't need to enable any additional services. When prompted, I claim the 8GB drives for the cache tier and the 16GB drives for capacity.
-![Configuring vSAN](/images/posts-2020/mw-rsq_1a.png)
+![Configuring vSAN](mw-rsq_1a.png)
It'll take a few minutes for vSAN to get configured on the cluster.
-![vSAN capacity is.... not much, but it's a start](/images/posts-2020/mye0LdtNj.png)
+![vSAN capacity is.... not much, but it's a start](mye0LdtNj.png)
Huzzah! Next stop:
@@ -253,7 +253,7 @@ Anyhoo, each of these VMs will need to be resolvable in DNS so I started by crea
|`vra.lab.bowdre.net`|`192.168.1.42`|
I then attached the installer ISO to my Windows VM and ran through the installation from there.
-![vRealize Easy Installer](/images/posts-2020/42n3aMim5.png)
+![vRealize Easy Installer](42n3aMim5.png)
Similar to the vCenter deployment process, this one prompts you for all the information it needs up front and then takes care of everything from there. That's great news because this is a pretty long deployment; it took probably two hours from clicking the final "Okay, do it" button to being able to log in to my shiny new vRealize Automation environment.
diff --git a/static/images/posts-2020/mw-rsq_1a.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/mw-rsq_1a.png
similarity index 100%
rename from static/images/posts-2020/mw-rsq_1a.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/mw-rsq_1a.png
diff --git a/static/images/posts-2020/mye0LdtNj.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/mye0LdtNj.png
similarity index 100%
rename from static/images/posts-2020/mye0LdtNj.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/mye0LdtNj.png
diff --git a/static/images/posts-2020/nkdH7Jfxw.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/nkdH7Jfxw.png
similarity index 100%
rename from static/images/posts-2020/nkdH7Jfxw.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/nkdH7Jfxw.png
diff --git a/static/images/posts-2020/w0HeFSi7Q.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/w0HeFSi7Q.png
similarity index 100%
rename from static/images/posts-2020/w0HeFSi7Q.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/w0HeFSi7Q.png
diff --git a/static/images/posts-2020/z8fvzu4Km.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/z8fvzu4Km.png
similarity index 100%
rename from static/images/posts-2020/z8fvzu4Km.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/z8fvzu4Km.png
diff --git a/static/images/posts-2020/zOJp-jqVb.png b/content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/zOJp-jqVb.png
similarity index 100%
rename from static/images/posts-2020/zOJp-jqVb.png
rename to content/posts/2021/02/vmware-home-lab-on-intel-nuc-9/zOJp-jqVb.png
diff --git a/static/images/posts-2020/3-UIo1Ykn.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/3-UIo1Ykn.png
similarity index 100%
rename from static/images/posts-2020/3-UIo1Ykn.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/3-UIo1Ykn.png
diff --git a/static/images/posts-2020/3vQER.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/3vQER.png
similarity index 100%
rename from static/images/posts-2020/3vQER.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/3vQER.png
diff --git a/static/images/posts-2020/4dNwfNNDY.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/4dNwfNNDY.png
similarity index 100%
rename from static/images/posts-2020/4dNwfNNDY.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/4dNwfNNDY.png
diff --git a/static/images/posts-2020/6k06ySON7.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/6k06ySON7.png
similarity index 100%
rename from static/images/posts-2020/6k06ySON7.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/6k06ySON7.png
diff --git a/static/images/posts-2020/AZsVThaRO.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/AZsVThaRO.png
similarity index 100%
rename from static/images/posts-2020/AZsVThaRO.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/AZsVThaRO.png
diff --git a/static/images/posts-2020/BA2BWCd6K.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/BA2BWCd6K.png
similarity index 100%
rename from static/images/posts-2020/BA2BWCd6K.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/BA2BWCd6K.png
diff --git a/static/images/posts-2020/HC6vQMeVT.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/HC6vQMeVT.png
similarity index 100%
rename from static/images/posts-2020/HC6vQMeVT.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/HC6vQMeVT.png
diff --git a/static/images/posts-2020/KUCwEgEhN.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/KUCwEgEhN.png
similarity index 100%
rename from static/images/posts-2020/KUCwEgEhN.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/KUCwEgEhN.png
diff --git a/static/images/posts-2020/LST4LisFl.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/LST4LisFl.png
similarity index 100%
rename from static/images/posts-2020/LST4LisFl.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/LST4LisFl.png
diff --git a/static/images/posts-2020/PIeW8xA2j.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/PIeW8xA2j.png
similarity index 100%
rename from static/images/posts-2020/PIeW8xA2j.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/PIeW8xA2j.png
diff --git a/static/images/posts-2020/Q-2ZQg_ji.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/Q-2ZQg_ji.png
similarity index 100%
rename from static/images/posts-2020/Q-2ZQg_ji.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/Q-2ZQg_ji.png
diff --git a/static/images/posts-2020/RtMljqM9x.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/RtMljqM9x.png
similarity index 100%
rename from static/images/posts-2020/RtMljqM9x.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/RtMljqM9x.png
diff --git a/static/images/posts-2020/URW7vc1ih.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/URW7vc1ih.png
similarity index 100%
rename from static/images/posts-2020/URW7vc1ih.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/URW7vc1ih.png
diff --git a/static/images/posts-2020/VZaK4btzl.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/VZaK4btzl.png
similarity index 100%
rename from static/images/posts-2020/VZaK4btzl.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/VZaK4btzl.png
diff --git a/static/images/posts-2020/XVD9QVU-S.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/XVD9QVU-S.png
similarity index 100%
rename from static/images/posts-2020/XVD9QVU-S.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/XVD9QVU-S.png
diff --git a/static/images/posts-2020/XmtEm51h2.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/XmtEm51h2.png
similarity index 100%
rename from static/images/posts-2020/XmtEm51h2.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/XmtEm51h2.png
diff --git a/content/posts/2021/03/vra8-custom-provisioning-part-one.md b/content/posts/2021/03/vra8-custom-provisioning-part-one/index.md
similarity index 88%
rename from content/posts/2021/03/vra8-custom-provisioning-part-one.md
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/index.md
index 416cc25..352bb3f 100644
--- a/content/posts/2021/03/vra8-custom-provisioning-part-one.md
+++ b/content/posts/2021/03/vra8-custom-provisioning-part-one/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-03-29T08:34:30Z"
-thumbnail: images/posts-2020/VZaK4btzl.png
-usePageBundles: false
+thumbnail: VZaK4btzl.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -26,35 +26,35 @@ Looking back, that's kind of a lot. I can see why I've been working on this for
### vSphere setup
In production, I'll want to be able to deploy to different computer clusters spanning multiple vCenters. That's a bit difficult to do on a single physical server, but I still wanted to be able to simulate that sort of dynamic resource selection. So for development and testing in my lab, I'll be using two sites - `BOW` and `DRE`. I ditched the complicated "just because I can" vSAN I'd built previously and instead spun up two single-host nested clusters, one for each of my sites:
-![vCenter showing the BOW and DRE clusters](/images/posts-2020/KUCwEgEhN.png)
+![vCenter showing the BOW and DRE clusters](KUCwEgEhN.png)
Those hosts have one virtual NIC each on a standard switch connected to my home network, and a second NIC each connected to the ["isolated" internal lab network](vmware-home-lab-on-intel-nuc-9#networking) with all the VLANs for the guests to run on:
-![dvSwitch showing attached hosts and dvPortGroups](/images/posts-2020/y8vZEnWqR.png)
+![dvSwitch showing attached hosts and dvPortGroups](y8vZEnWqR.png)
### vRA setup
On the vRA side of things, I logged in to the Cloud Assembly portion and went to the Infrastructure tab. I first created a Project named `LAB`, added the vCenter as a Cloud Account, and then created a Cloud Zone for the vCenter as well. On the Compute tab of the Cloud Zone properties, I manually added both the `BOW` and `DRE` clusters.
-![BOW and DRE Clusters added to Cloud Zone](/images/posts-2020/sCQKUH07e.png)
+![BOW and DRE Clusters added to Cloud Zone](sCQKUH07e.png)
I also created a Network Profile and added each of the nested dvPortGroups I had created for this purpose.
-![Network Profile with added vSphere networks](/images/posts-2020/LST4LisFl.png)
+![Network Profile with added vSphere networks](LST4LisFl.png)
Each network also gets associated with the related IP Range which was [imported from {php}IPAM](/integrating-phpipam-with-vrealize-automation-8).
-![IP Range bound to a network](/images/posts-2020/AZsVThaRO.png)
+![IP Range bound to a network](AZsVThaRO.png)
Since each of my hosts only has 100GB of datastore and my Windows template specifies a 60GB VMDK, I went ahead and created a Storage Profile so that deployments would default to being Thin Provisioned.
-![Thin-provision storage profile](/images/posts-2020/3vQER.png)
+![Thin-provision storage profile](3vQER.png)
I created a few Flavor Mappings ranging from `micro` (1vCPU|1GB RAM) to `giant` (8vCPU|16GB) but for this resource-constrained lab I'll stick mostly to the `micro`, `tiny` (1vCPU|2GB), and `small` (2vCPU|2GB) sizes.
-![T-shirt size Flavor Mappings](/images/posts-2020/lodJlc8Hp.png)
+![T-shirt size Flavor Mappings](lodJlc8Hp.png)
And I created an Image Mapping named `ws2019` which points to a Windows Server 2019 Core template I have stored in my lab's Content Library (cleverly-named "LABrary" for my own amusement).
-![Windows Server Image Mapping](/images/posts-2020/6k06ySON7.png)
+![Windows Server Image Mapping](6k06ySON7.png)
And with that, my vRA infrastructure is ready for testing a *very* basic deployment.
### My First Cloud Template
Now it's time to leave the Infrastructure tab and visit the Design one, where I'll create a new Cloud Template (what previous versions of vRA called "Blueprints"). I start by dragging one each of the **vSphere > Machine** and **vSphere > Network** entities onto the workspace. I then pop over to the Code tab on the right to throw together some simple YAML statements:
-![My first Cloud Template!](/images/posts-2020/RtMljqM9x.png)
+![My first Cloud Template!](RtMljqM9x.png)
VMware's got a [pretty great document](https://docs.vmware.com/en/vRealize-Automation/8.3/Using-and-Managing-Cloud-Assembly/GUID-6BA1DA96-5C20-44BF-9C81-F8132B9B4872.html#list-of-input-properties-2) describing the syntax for these input properties, plus a lot of it is kind of self-explanatory. Let's step through this real quick:
```yaml
@@ -151,40 +151,40 @@ resources:
```
Cool! But does it work? Hitting the **Test** button at the bottom right is a great way to validate a template before actually running a deployment. That will confirm that the template syntax, infrastructure, and IPAM configuration is all set up correctly to support this particular deployment.
-![Test inputs](/images/posts-2020/lNmduGWr1.png)
-![Test results](/images/posts-2020/BA2BWCd6K.png)
+![Test inputs](lNmduGWr1.png)
+![Test results](BA2BWCd6K.png)
Looks good! I like to click on the **Provisioning Diagram** link to see a bit more detail about where components were placed and why. That's also an immensely helpful troubleshooting option if the test *isn't* successful.
-![Provisioning diagram](/images/posts-2020/PIeW8xA2j.png)
+![Provisioning diagram](PIeW8xA2j.png)
And finally, I can hit that **Deploy** button to actually spin up this VM.
-![Deploy this sucker](/images/posts-2020/XmtEm51h2.png)
+![Deploy this sucker](XmtEm51h2.png)
Each deployment has to have a *unique* deployment name. I got tired of trying to keep up with what names I had already used so kind of settled on a [DATE]_[TIME] format for my test deployments. I'll automatic this tedious step away in the future.
I then confirm that the (automatically-selected default) inputs are correct and kick it off.
-![Deployment inputs](/images/posts-2020/HC6vQMeVT.png)
+![Deployment inputs](HC6vQMeVT.png)
The deployment will take a few minutes. I like to click over to the **History** tab to see a bit more detail as things progress.
-![Deployment history](/images/posts-2020/uklHiv46Y.png)
+![Deployment history](uklHiv46Y.png)
It doesn't take too long for activity to show up on the vSphere side of things:
-![vSphere is cloning the source template](/images/posts-2020/4dNwfNNDY.png)
+![vSphere is cloning the source template](4dNwfNNDY.png)
And there's the completed VM - notice the statically-applied IP address courtesy of {php}IPAM!
-![Completed test VM](/images/posts-2020/3-UIo1Ykn.png)
+![Completed test VM](3-UIo1Ykn.png)
And I can pop over to the IPAM interface to confirm that the IP has been marked as reserved as well:
-![Newly-created IPAM reservation](/images/posts-2020/mAfdPLKnp.png)
+![Newly-created IPAM reservation](mAfdPLKnp.png)
Fantastic! But one of my objectives from earlier was to let the user control where a VM gets provisioned. Fortunately it's pretty easy to implement thanks to vRA 8's use of tags.
### Using tags for resource placement
Just about every entity within vRA 8 can have tags applied to it, and you can leverage those tags in some pretty creative and useful ways. For now, I'll start by applying tags to my compute resources; I'll use `comp:bow` for the "BOW Cluster" and `comp:dre` for the "DRE Cluster".
-![Compute tags](/images/posts-2020/oz1IAp-i0.png)
+![Compute tags](oz1IAp-i0.png)
I'll also use the `net:bow` and `net:dre` tags to logically divide up the networks between my sites:
-![Network tags](/images/posts-2020/ngSWbVI4Y.png)
+![Network tags](ngSWbVI4Y.png)
I can now add an input to the Cloud Template so the user can pick which site they need to deploy to:
@@ -225,16 +225,16 @@ resources:
```
So the VM will now only be deployed to the compute resource and networks which are tagged to match the selected Site identifier. I ran another test to make sure I didn't break anything:
-![Testing against the DRE site](/images/posts-2020/Q-2ZQg_ji.png)
+![Testing against the DRE site](Q-2ZQg_ji.png)
It came back successful, so I clicked through to see the provisioning diagram. On the network tab, I see that only the last two networks (`d1650-Servers-4` and `d1660-Servers-5`) were considered since the first three didn't match the required `net:dre` tag:
-![Network provisioning diagram](/images/posts-2020/XVD9QVU-S.png)
+![Network provisioning diagram](XVD9QVU-S.png)
And it's a similar story on the compute tab:
-![Compute provisioning diagram](/images/posts-2020/URW7vc1ih.png)
+![Compute provisioning diagram](URW7vc1ih.png)
As a final test for this change, I kicked off one deployment to each site to make sure things worked as expected.
-![vSphere showing one VM at each site](/images/posts-2020/VZaK4btzl.png)
+![vSphere showing one VM at each site](VZaK4btzl.png)
Nice!
diff --git a/static/images/posts-2020/lNmduGWr1.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/lNmduGWr1.png
similarity index 100%
rename from static/images/posts-2020/lNmduGWr1.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/lNmduGWr1.png
diff --git a/static/images/posts-2020/lodJlc8Hp.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/lodJlc8Hp.png
similarity index 100%
rename from static/images/posts-2020/lodJlc8Hp.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/lodJlc8Hp.png
diff --git a/static/images/posts-2020/mAfdPLKnp.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/mAfdPLKnp.png
similarity index 100%
rename from static/images/posts-2020/mAfdPLKnp.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/mAfdPLKnp.png
diff --git a/static/images/posts-2020/ngSWbVI4Y.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/ngSWbVI4Y.png
similarity index 100%
rename from static/images/posts-2020/ngSWbVI4Y.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/ngSWbVI4Y.png
diff --git a/static/images/posts-2020/oz1IAp-i0.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/oz1IAp-i0.png
similarity index 100%
rename from static/images/posts-2020/oz1IAp-i0.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/oz1IAp-i0.png
diff --git a/static/images/posts-2020/sCQKUH07e.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/sCQKUH07e.png
similarity index 100%
rename from static/images/posts-2020/sCQKUH07e.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/sCQKUH07e.png
diff --git a/static/images/posts-2020/uklHiv46Y.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/uklHiv46Y.png
similarity index 100%
rename from static/images/posts-2020/uklHiv46Y.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/uklHiv46Y.png
diff --git a/static/images/posts-2020/y8vZEnWqR.png b/content/posts/2021/03/vra8-custom-provisioning-part-one/y8vZEnWqR.png
similarity index 100%
rename from static/images/posts-2020/y8vZEnWqR.png
rename to content/posts/2021/03/vra8-custom-provisioning-part-one/y8vZEnWqR.png
diff --git a/static/images/posts-2021/07/20210723-script.png b/content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk/20210723-script.png
similarity index 100%
rename from static/images/posts-2021/07/20210723-script.png
rename to content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk/20210723-script.png
diff --git a/content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk.md b/content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk/index.md
similarity index 99%
rename from content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk.md
rename to content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk/index.md
index 13f2853..3ceb292 100644
--- a/content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk.md
+++ b/content/posts/2021/04/automatic-unattended-expansion-of-linux-root-lvm-volume-to-fill-disk/index.md
@@ -1,7 +1,8 @@
---
series: Scripts
date: "2021-04-29T08:34:30Z"
-usePageBundles: false
+usePageBundles: true
+thumbnail: 20210723-script.png
tags:
- linux
- shell
diff --git a/content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates.md b/content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates/index.md
similarity index 99%
rename from content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates.md
rename to content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates/index.md
index 2ab6a82..ad58766 100644
--- a/content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates.md
+++ b/content/posts/2021/04/using-powershell-and-a-scheduled-task-to-apply-windows-updates/index.md
@@ -1,7 +1,7 @@
---
series: Scripts
date: "2021-04-29T08:34:30Z"
-usePageBundles: false
+usePageBundles: true
tags:
- windows
- powershell
diff --git a/static/images/posts-2020/6HBIUf6KE.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/6HBIUf6KE.png
similarity index 100%
rename from static/images/posts-2020/6HBIUf6KE.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/6HBIUf6KE.png
diff --git a/static/images/posts-2020/7MfV-1uiO.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/7MfV-1uiO.png
similarity index 100%
rename from static/images/posts-2020/7MfV-1uiO.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/7MfV-1uiO.png
diff --git a/static/images/posts-2020/GZKQbELfM.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/GZKQbELfM.png
similarity index 100%
rename from static/images/posts-2020/GZKQbELfM.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/GZKQbELfM.png
diff --git a/static/images/posts-2020/JT7pbzM-5.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/JT7pbzM-5.png
similarity index 100%
rename from static/images/posts-2020/JT7pbzM-5.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/JT7pbzM-5.png
diff --git a/static/images/posts-2020/K6vcxpDj8.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/K6vcxpDj8.png
similarity index 100%
rename from static/images/posts-2020/K6vcxpDj8.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/K6vcxpDj8.png
diff --git a/static/images/posts-2020/U6oMWDal2.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/U6oMWDal2.png
similarity index 100%
rename from static/images/posts-2020/U6oMWDal2.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/U6oMWDal2.png
diff --git a/static/images/posts-2020/iB1bjdC8C.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/iB1bjdC8C.png
similarity index 100%
rename from static/images/posts-2020/iB1bjdC8C.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/iB1bjdC8C.png
diff --git a/content/posts/2021/04/vra8-custom-provisioning-part-three.md b/content/posts/2021/04/vra8-custom-provisioning-part-three/index.md
similarity index 94%
rename from content/posts/2021/04/vra8-custom-provisioning-part-three.md
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/index.md
index 96c355d..1f37723 100644
--- a/content/posts/2021/04/vra8-custom-provisioning-part-three.md
+++ b/content/posts/2021/04/vra8-custom-provisioning-part-three/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-04-19T08:34:30Z"
-thumbnail: images/posts-2020/K6vcxpDj8.png
-usePageBundles: false
+thumbnail: K6vcxpDj8.png
+usePageBundles: true
lastmod: "2021-10-01"
tags:
- vmware
@@ -20,23 +20,23 @@ Picking up after [Part Two](/vra8-custom-provisioning-part-two), I now have a pr
Remember how I [used the built-in vSphere plugin](/vra8-custom-provisioning-part-two#interlude-connecting-vro-to-vcenter) to let vRO query my vCenter(s) for VMs with a specific name? And how that required first configuring the vCenter endpoint(s) in vRO? I'm going to take a very similar approach here.
So as before, I'll first need to run the preinstalled "Add an Active Directory server" workflow:
-![Add an Active Directory server workflow](/images/posts-2020/uUDJXtWKz.png)
+![Add an Active Directory server workflow](uUDJXtWKz.png)
I fill out the Connection tab like so:
-![Connection tab](/images/posts-2020/U6oMWDal2.png)
+![Connection tab](U6oMWDal2.png)
*I don't have SSL enabled on my homelab AD server so I left that unchecked.*
On the Authentication tab, I tick the box to use a shared session and specify the service account I'll use to connect to AD. It would be great for later steps if this account has the appropriate privileges to create/delete computer accounts at least within designated OUs.
-![Authentication tab](/images/posts-2020/7MfV-1uiO.png)
+![Authentication tab](7MfV-1uiO.png)
If you've got multiple AD servers, you can use the options on the Alternative Hosts tab to specify those, saving you from having to create a new configuration for each. I've just got the one AD server in my lab, though, so at this point I just hit Run.
Once it completes successfully, I can visit the Inventory section of the vRO interface to confirm that the new Active Directory endpoint shows up:
-![New AD endpoint](/images/posts-2020/vlnle_ekN.png)
+![New AD endpoint](vlnle_ekN.png)
#### checkForAdConflict Action
Since I try to keep things modular, I'm going to write a new vRO action within the `net.bowdre.utility` module called `checkForAdConflict` which can be called from the `Generate unique hostname` workflow. It will take in `computerName (String)` as an input and return a boolean `True` if a conflict is found or `False` if the name is available.
-![Action: checkForAdConflict](/images/posts-2020/JT7pbzM-5.png)
+![Action: checkForAdConflict](JT7pbzM-5.png)
It's basically going to loop through the Active Directory hosts defined in vRO and search each for a matching computer name. Here's the full code:
@@ -61,7 +61,7 @@ for each (var adHost in adHosts) {
#### Adding it to the workflow
Now I can pop back over to my massive `Generate unique hostname` workflow and drop in a new scriptable task between the `check for VM name conflicts` and `return nextVmName` tasks. It will bring in `candidateVmName (String)` as well as `conflict (Boolean)` as inputs, return `conflict (Boolean)` as an output, and `errMsg (String)` will be used for exception handling. If `errMsg (String)` is thrown, the flow will follow the dashed red line back to the `conflict resolution` action.
-![Action: check for AD conflict](/images/posts-2020/iB1bjdC8C.png)
+![Action: check for AD conflict](iB1bjdC8C.png)
I'm using this as a scriptable task so that I can do a little bit of processing before I call the action I created earlier - namely, if `conflict (Boolean)` was already set, the task should skip any further processing. That does mean that I'll need to call the action by both its module and name using `System.getModule("net.bowdre.utility").checkForAdConflict(candidateVmName)`. So here's the full script:
@@ -176,15 +176,15 @@ checkDnsConflicts.zip handler.ps1 Modules
#### checkForDnsConflict action (Deprecated)
And now I can go into vRO, create a new action called `checkForDnsConflict` inside my `net.bowdre.utilities` module. This time, I change the Language to `PowerCLI 12 (PowerShell 7.0)` and switch the Type to `Zip` to reveal the Import button.
-![Preparing to import the zip](/images/posts-2020/sjCtvoZA0.png)
+![Preparing to import the zip](sjCtvoZA0.png)
Clicking that button lets me browse to the file I need to import. I can also set up the two input variables that the script requires, `hostname (String)` and `domain (String)`.
-![Package imported and variables defined](/images/posts-2020/xPvBx3oVX.png)
+![Package imported and variables defined](xPvBx3oVX.png)
#### Adding it to the workflow
Just like with the `check for AD conflict` action, I'll add this onto the workflow as a scriptable task, this time between that action and the `return nextVmName` one. This will take `candidateVmName (String)`, `conflict (Boolean)`, and `requestProperties (Properties)` as inputs, and will return `conflict (Boolean)` as its sole output. The task will use `errMsg (String)` as its exception binding, which will divert flow via the dashed red line back to the `conflict resolution` task.
-![Task: check for DNS conflict](/images/posts-2020/uSunGKJfH.png)
+![Task: check for DNS conflict](uSunGKJfH.png)
_[Update] The below script has been altered to drop the unneeded call to my homemade `checkForDnsConflict` action and instead use the built-in `System.resolveHostName()`. Thanks @powertim!_
@@ -210,15 +210,15 @@ if (conflict) {
### Testing
Once that's all in place, I kick off another deployment to make sure that everything works correctly. After it completes, I can navigate to the **Extensibility > Workflow runs** section of the vRA interface to review the details:
-![Workflow run success](/images/posts-2020/GZKQbELfM.png)
+![Workflow run success](GZKQbELfM.png)
It worked!
But what if there *had* been conflicts? It's important to make sure that works too. I know that if I run that deployment again, the VM will get named `DRE-DTST-XXX008` and then `DRE-DTST-XXX009`. So I'm going to force conflicts by creating an AD object for one and a DNS record for the other.
-![Making conflicts](/images/posts-2020/6HBIUf6KE.png)
+![Making conflicts](6HBIUf6KE.png)
And I'll kick off another deployment and see what happens.
-![Workflow success even with conflicts](/images/posts-2020/K6vcxpDj8.png)
+![Workflow success even with conflicts](K6vcxpDj8.png)
The workflow saw that the last VM was created as `-007` so it first grabbed `-008`. It saw that `-008` already existed in AD so incremented up to try `-009`. The workflow then found that a record for `-009` was present in DNS so bumped it up to `-010`. That name finally passed through the checks and so the VM was deployed with the name `DRE-DTST-XXX010`. Success!
diff --git a/static/images/posts-2020/sjCtvoZA0.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/sjCtvoZA0.png
similarity index 100%
rename from static/images/posts-2020/sjCtvoZA0.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/sjCtvoZA0.png
diff --git a/static/images/posts-2020/uSunGKJfH.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/uSunGKJfH.png
similarity index 100%
rename from static/images/posts-2020/uSunGKJfH.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/uSunGKJfH.png
diff --git a/static/images/posts-2020/uUDJXtWKz.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/uUDJXtWKz.png
similarity index 100%
rename from static/images/posts-2020/uUDJXtWKz.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/uUDJXtWKz.png
diff --git a/static/images/posts-2020/vlnle_ekN.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/vlnle_ekN.png
similarity index 100%
rename from static/images/posts-2020/vlnle_ekN.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/vlnle_ekN.png
diff --git a/static/images/posts-2020/xPvBx3oVX.png b/content/posts/2021/04/vra8-custom-provisioning-part-three/xPvBx3oVX.png
similarity index 100%
rename from static/images/posts-2020/xPvBx3oVX.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-three/xPvBx3oVX.png
diff --git a/static/images/posts-2020/0fSl55whe.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/0fSl55whe.png
similarity index 100%
rename from static/images/posts-2020/0fSl55whe.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/0fSl55whe.png
diff --git a/static/images/posts-2020/4B6wN8QeG.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/4B6wN8QeG.png
similarity index 100%
rename from static/images/posts-2020/4B6wN8QeG.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/4B6wN8QeG.png
diff --git a/static/images/posts-2020/5QFTPHp5H.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/5QFTPHp5H.png
similarity index 100%
rename from static/images/posts-2020/5QFTPHp5H.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/5QFTPHp5H.png
diff --git a/static/images/posts-2020/5bWfqh4ZSE.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/5bWfqh4ZSE.png
similarity index 100%
rename from static/images/posts-2020/5bWfqh4ZSE.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/5bWfqh4ZSE.png
diff --git a/static/images/posts-2020/65ECa7nej.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/65ECa7nej.png
similarity index 100%
rename from static/images/posts-2020/65ECa7nej.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/65ECa7nej.png
diff --git a/static/images/posts-2020/6Gpxapzd3.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/6Gpxapzd3.png
similarity index 100%
rename from static/images/posts-2020/6Gpxapzd3.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/6Gpxapzd3.png
diff --git a/static/images/posts-2020/6PA6lIOcP.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/6PA6lIOcP.png
similarity index 100%
rename from static/images/posts-2020/6PA6lIOcP.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/6PA6lIOcP.png
diff --git a/static/images/posts-2020/7Sb3j2PS3.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/7Sb3j2PS3.png
similarity index 100%
rename from static/images/posts-2020/7Sb3j2PS3.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/7Sb3j2PS3.png
diff --git a/static/images/posts-2020/AiFwzSpWS.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/AiFwzSpWS.png
similarity index 100%
rename from static/images/posts-2020/AiFwzSpWS.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/AiFwzSpWS.png
diff --git a/static/images/posts-2020/BOIwhMxKy.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/BOIwhMxKy.png
similarity index 100%
rename from static/images/posts-2020/BOIwhMxKy.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/BOIwhMxKy.png
diff --git a/static/images/posts-2020/BhBnBh8VB.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/BhBnBh8VB.png
similarity index 100%
rename from static/images/posts-2020/BhBnBh8VB.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/BhBnBh8VB.png
diff --git a/static/images/posts-2020/ByIWO66PC.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/ByIWO66PC.png
similarity index 100%
rename from static/images/posts-2020/ByIWO66PC.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/ByIWO66PC.png
diff --git a/static/images/posts-2020/F0IZHRj-J.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/F0IZHRj-J.png
similarity index 100%
rename from static/images/posts-2020/F0IZHRj-J.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/F0IZHRj-J.png
diff --git a/static/images/posts-2020/G0TEJ30003.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/G0TEJ30003.png
similarity index 100%
rename from static/images/posts-2020/G0TEJ30003.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/G0TEJ30003.png
diff --git a/static/images/posts-2020/HXrAMJrH.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/HXrAMJrH.png
similarity index 100%
rename from static/images/posts-2020/HXrAMJrH.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/HXrAMJrH.png
diff --git a/static/images/posts-2020/IzaMb39C-.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/IzaMb39C-.png
similarity index 100%
rename from static/images/posts-2020/IzaMb39C-.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/IzaMb39C-.png
diff --git a/static/images/posts-2020/PubHnv_jM.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/PubHnv_jM.png
similarity index 100%
rename from static/images/posts-2020/PubHnv_jM.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/PubHnv_jM.png
diff --git a/static/images/posts-2020/R9d8edeFP.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/R9d8edeFP.png
similarity index 100%
rename from static/images/posts-2020/R9d8edeFP.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/R9d8edeFP.png
diff --git a/static/images/posts-2020/RuqJhj00_.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/RuqJhj00_.png
similarity index 100%
rename from static/images/posts-2020/RuqJhj00_.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/RuqJhj00_.png
diff --git a/static/images/posts-2020/SOPs3mzTs.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/SOPs3mzTs.png
similarity index 100%
rename from static/images/posts-2020/SOPs3mzTs.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/SOPs3mzTs.png
diff --git a/static/images/posts-2020/UIafeShcv.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/UIafeShcv.png
similarity index 100%
rename from static/images/posts-2020/UIafeShcv.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/UIafeShcv.png
diff --git a/static/images/posts-2020/XATryy20y.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/XATryy20y.png
similarity index 100%
rename from static/images/posts-2020/XATryy20y.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/XATryy20y.png
diff --git a/static/images/posts-2020/Zyha7vAwi.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/Zyha7vAwi.png
similarity index 100%
rename from static/images/posts-2020/Zyha7vAwi.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/Zyha7vAwi.png
diff --git a/static/images/posts-2020/aQg91t93a.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/aQg91t93a.png
similarity index 100%
rename from static/images/posts-2020/aQg91t93a.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/aQg91t93a.png
diff --git a/static/images/posts-2020/afDacKjVx.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/afDacKjVx.png
similarity index 100%
rename from static/images/posts-2020/afDacKjVx.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/afDacKjVx.png
diff --git a/static/images/posts-2020/cONrdrbb6.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/cONrdrbb6.png
similarity index 100%
rename from static/images/posts-2020/cONrdrbb6.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/cONrdrbb6.png
diff --git a/static/images/posts-2020/dhcjdDo-E.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/dhcjdDo-E.png
similarity index 100%
rename from static/images/posts-2020/dhcjdDo-E.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/dhcjdDo-E.png
diff --git a/static/images/posts-2020/eZ1BUfesQ.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/eZ1BUfesQ.png
similarity index 100%
rename from static/images/posts-2020/eZ1BUfesQ.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/eZ1BUfesQ.png
diff --git a/static/images/posts-2020/fWlSrD56N.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/fWlSrD56N.png
similarity index 100%
rename from static/images/posts-2020/fWlSrD56N.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/fWlSrD56N.png
diff --git a/static/images/posts-2020/gIEFRnilq.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/gIEFRnilq.png
similarity index 100%
rename from static/images/posts-2020/gIEFRnilq.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/gIEFRnilq.png
diff --git a/static/images/posts-2020/h_PHeT6af.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/h_PHeT6af.png
similarity index 100%
rename from static/images/posts-2020/h_PHeT6af.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/h_PHeT6af.png
diff --git a/content/posts/2021/04/vra8-custom-provisioning-part-two.md b/content/posts/2021/04/vra8-custom-provisioning-part-two/index.md
similarity index 91%
rename from content/posts/2021/04/vra8-custom-provisioning-part-two.md
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/index.md
index 9236697..ed573a7 100644
--- a/content/posts/2021/04/vra8-custom-provisioning-part-two.md
+++ b/content/posts/2021/04/vra8-custom-provisioning-part-two/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-04-02T08:34:30Z"
-thumbnail: images/posts-2020/HXrAMJrH.png
-usePageBundles: false
+thumbnail: HXrAMJrH.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -12,7 +12,7 @@ title: 'vRA8 Custom Provisioning: Part Two'
---
We [last left off this series](/vra8-custom-provisioning-part-one) after I'd set up vRA, performed a test deployment off of a minimal cloud template, and then enhanced the simple template to use vRA tags to let the user specify where a VM should be provisioned. But these VMs have kind of dumb names; right now, they're just getting named after the user who requests it + a random couple of digits, courtesy of a simple [naming template defined on the project's Provisioning page](https://docs.vmware.com/en/vRealize-Automation/8.3/Using-and-Managing-Cloud-Assembly/GUID-AD400ED7-EB3A-4D36-B9A7-81E100FB3003.html?hWord=N4IghgNiBcIHZgLYEs4HMQF8g):
-![Naming template](/images/posts-2020/zAF26KJnO.png)
+![Naming template](zAF26KJnO.png)
I could use this naming template to *almost* accomplish what I need from a naming solution, but I don't like that the numbers are random rather than an sequence (I want to deploy `server001` followed by `server002` rather than `server343` followed by `server718`). And it's not enough for me that a VM's name be unique just within the scope of vRA - the hostname should be unique across my entire environment.
@@ -191,10 +191,10 @@ resources:
```
Great! Here's what it looks like on the deployment request:
-![Deployment request with naming elements](/images/posts-2020/iqsHm5zQR.png)
+![Deployment request with naming elements](iqsHm5zQR.png)
...but the deployed VM got named `john-329`. Why?
-![VM deployed with a lame name](/images/posts-2020/lUo1odZ03.png)
+![VM deployed with a lame name](lUo1odZ03.png)
Oh yeah, I need to create a thing that will take these naming elements, mash them together, check for any conflicts, and then apply the new name to the VM. vRealize Orchestrator, it's your time!
@@ -202,28 +202,28 @@ Oh yeah, I need to create a thing that will take these naming elements, mash the
When I first started looking for a naming solution, I found a [really handy blog post from Michael Poore](https://blog.v12n.io/custom-naming-in-vrealize-automation-8x-1/) that described his solution to doing custom naming. I wound up following his general approach but had to adapt it a bit to make the code work in vRO 8 and to add in the additional checks I wanted. So credit to Michael for getting me pointed in the right direction!
I start by hopping over to the Orchestrator interface and navigating to the Configurations section. I'm going to create a new configuration folder named `CustomProvisioning` that will store all the Configuration Elements I'll use to configure my workflows on this project.
-![Configuration Folder](/images/posts-2020/y7JKSxsqE.png)
+![Configuration Folder](y7JKSxsqE.png)
Defining certain variables within configurations separates those from the workflows themselves, making the workflows much more portable. That will allow me to transfer the same code between multiple environments (like my homelab and my lab environment at work) without having to rewrite a bunch of hardcoded values.
Now I'll create a new configuration within the new folder. This will hold information about the naming schema so I name it `namingSchema`. In it, I create two strings to define the base naming format (up to the numbers on the end) and full name format (including the numbers). I define `baseFormat` and `nameFormat` as templates based on what I put together earlier.
-![The namingSchema configuration](/images/posts-2020/zLec-3X_D.png)
+![The namingSchema configuration](zLec-3X_D.png)
I also create another configuration named `computerNames`. When vRO picks a name for a VM, it will record it here as a `number` variable named after the "base name" (`BOW-DAPP-WEB`) and the last-used sequence as the value (`001`). This will make it quick-and-easy to see what the next VM should be named. For now, though, I just need the configuration to not be empty so I add a single variable named `sample` just to take up space.
-![The computerNames configuration](/images/posts-2020/pqrvUNmsj.png)
+![The computerNames configuration](pqrvUNmsj.png)
Okay, now it's time to get messy.
### The vRO workflow
Just like with the configuration elements, I create a new workflow folder named `CustomProvisioning` to keep all my workflows together. And then I make a `VM Provisioning` workflow that will be used for pre-provisioning tasks.
-![Workflow organization](/images/posts-2020/qt-D1mJFE.png)
+![Workflow organization](qt-D1mJFE.png)
On the Inputs/Outputs tab of the workflow, I create a single input named `inputProperties` of type `Properties` which will hold all the information about the deployment coming from the vRA side of things.
-![inputProperties](/images/posts-2020/tiBJVKYdf.png)
+![inputProperties](tiBJVKYdf.png)
#### Logging the input properties
The first thing I'll want this workflow to do (particularly for testing) is to tell me about the input data from vRA. That will help to eliminate a lot of guesswork. I could just write a script within the workflow to do that, but creating it as a separate action will make it easier to reuse in other workflows. Behold, the `logPayloadProperties` action (nested within the `net.bowdre.utility` module which contains some spoilers for what else is to come!):
-![image.png](/images/posts-2020/0fSl55whe.png)
+![image.png](0fSl55whe.png)
This action has a single input, a `Properties` object named `payload`. (By the way, vRO is pretty particular about variable typing so going forward I'll reference variables as `variableName (type)`.) Here's the JavaScript that will basically loop through each element and write the contents to the vRO debug log:
@@ -260,23 +260,23 @@ function logSingleProperty(name,value,i) {
```
Going back to my VM Provisioning workflow, I drag an Action Element onto the canvas and tie it to my new action, passing in `inputProperties (Properties)` as the input:
-![image.png](/images/posts-2020/o8CgTjSYm.png)
+![image.png](o8CgTjSYm.png)
#### Event Broker Subscription
And at this point I save the workflow. I'm not finished with it - not by a long shot! - but this is a great place to get the workflow plumbed up to vRA and run a quick test. So I go to the vRA interface, hit up the Extensibility tab, and create a new subscription. I name it "VM Provisioning" and set it to fire on the "Compute allocation" event, which will happen right before the VM starts getting created. I link in my VM Provisioning workflow, and also set this as a blocking execution so that no other/future workflows will run until this one completes.
-![VM Provisioning subscription](/images/posts-2020/IzaMb39C-.png)
+![VM Provisioning subscription](IzaMb39C-.png)
Alrighty, let's test this and see if it works. I head back to the Design tab and kick off another deployment.
-![Test deployment](/images/posts-2020/6PA6lIOcP.png)
+![Test deployment](6PA6lIOcP.png)
I'm going to go grab some more coffee while this runs.
-![Successful deployment](/images/posts-2020/Zyha7vAwi.png)
+![Successful deployment](Zyha7vAwi.png)
And we're back! Now that the deployment completed successfully, I can go back to the Orchestrator view and check the Workflow Runs section to confirm that the VM Provisioning workflow did fire correctly. I can click on it to get more details, and the Logs tab will show me all the lovely data logged by the `logPayloadProperties` action running from the workflow.
-![Logged payload properties](/images/posts-2020/AiFwzSpWS.png)
+![Logged payload properties](AiFwzSpWS.png)
That information can also be seen on the Variables tab:
-![So many variables](/images/posts-2020/65ECa7nej.png)
+![So many variables](65ECa7nej.png)
A really handy thing about capturing the data this way is that I can use the Run Again or Debug button to execute the vRO workflow again without having to actually deploy a new VM from vRA. This will be great for testing as I press onward.
@@ -286,7 +286,7 @@ A really handy thing about capturing the data this way is that I can use the Run
I'm going to use this VM Provisioning workflow as a sort of top-level wrapper. This workflow will have a task to parse the payload and grab the variables that will be needed for naming a VM, and it will also have a task to actually rename the VM, but it's going to delegate the name generation to another nested workflow. Making the workflows somewhat modular will make it easier to make changes in the future if needed.
Anyway, I drop a Scriptable Task item onto the workflow canvas to handle parsing the payload - I'll call it `parse payload` - and pass it `inputProperties (Properties)` as its input.
-![parse payload task](/images/posts-2020/aQg91t93a.png)
+![parse payload task](aQg91t93a.png)
The script for this is pretty straight-forward:
@@ -311,13 +311,13 @@ System.debug("Original names: " + originalNames)
```
It creates a new `requestProperties (Properties)` variable to store the limited set of properties that will be needed for naming - `site`, `environment`, `function`, and `app`. It also stores a copy of the original `resourceNames (Array/string)`, which will be useful when we need to replace the old name with the new one. To make those two new variables accessible to other parts of the workflow, I'll need to also create the variables at the workflow level and map them as outputs of this task:
-![outputs mapped](/images/posts-2020/4B6wN8QeG.png)
+![outputs mapped](4B6wN8QeG.png)
I'll also drop in a "Foreach Element" item, which will run a linked workflow once for each item in an input array (`originalNames (Array/string)` in this case). I haven't actually created that nested workflow yet so I'm going to skip selecting that for now.
-![Nested workflow placeholder](/images/posts-2020/UIafeShcv.png)
+![Nested workflow placeholder](UIafeShcv.png)
The final step of this workflow will be to replace the existing contents of `resourceNames (Array/string)` with the new name. I'll do that with another scriptable task element, named `Apply new names`, which takes `inputProperties (Properties)` and `newNames (Array/string)` as inputs and returns `resourceNames (Array/string)` as a workflow output back to vRA. vRA will see that `resourceNames` has changed and it will update the name of the deployed resource (the VM) accordingly.
-![Apply new names task](/images/posts-2020/h_PHeT6af.png)
+![Apply new names task](h_PHeT6af.png)
And here's the script for that task:
@@ -337,17 +337,17 @@ Now's a good time to save this workflow (ignoring the warning about it failing v
### Nested workflow
I'm a creative person so I'm going to call this workflow "Generate unique hostname". It's going to receive `requestProperties (Properties)` as its sole input, and will return `nextVmName (String)` as its sole output.
-![Workflow input and output](/images/posts-2020/5bWfqh4ZSE.png)
+![Workflow input and output](5bWfqh4ZSE.png)
I will also need to bind a couple of workflow variables to those configuration elements I created earlier. This is done by creating the variable as usual (`baseFormat (string)` in this case), toggling the "Bind to configuration" option, and then searching for the appropriate configuration. It's important to make sure the selected type matches that of the configuration element - otherwise it won't show up in the list.
-![Binding a variable to a configuration](/images/posts-2020/PubHnv_jM.png)
+![Binding a variable to a configuration](PubHnv_jM.png)
I do the same for the `nameFormat (string)` variable as well.
-![Configuration variables added to the workflow](/images/posts-2020/7Sb3j2PS3.png)
+![Configuration variables added to the workflow](7Sb3j2PS3.png)
#### Task: create lock
Okay, on to the schema. This workflow may take a little while to execute, and it would be bad if another deployment came in while it was running - the two runs might both assign the same hostname without realizing it. Fortunately vRO has a locking system which can be used to avoid that. Accordingly, I'll add a scriptable task element to the canvas and call it `create lock`. It will have two inputs used for identifying the lock so that it can be easily removed later on, so I create a new variable `lockOwner (string)` with the value `eventBroker` and another named `lockId (string)` set to `namingLock`.
-![Task: create lock](/images/posts-2020/G0TEJ30003.png)
+![Task: create lock](G0TEJ30003.png)
The script is very short:
@@ -362,7 +362,7 @@ LockingSystem.lockAndWait(lockId, lockOwner)
#### Task: generate hostnameBase
We're getting to the meat of the operation now - another scriptable task named `generate hostnameBase` which will take the naming components from the deployment properties and stick them together in the form defined in the `nameFormat (String)` configuration. The inputs will be the existing `nameFormat (String)`, `requestProperties (Properties)`, and `baseFormat (String)` variables, and it will output new `hostnameBase (String)` ("`BOW-DAPP-WEB`") and `digitCount (Number)` ("`3`", one for each `#` in the format) variables. I'll also go ahead and initialize `hostnameSeq (Number)` to `0` to prepare for a later step.
-![Task: generate hostnameBase](/images/posts-2020/XATryy20y.png)
+![Task: generate hostnameBase](XATryy20y.png)
```js
@@ -389,19 +389,19 @@ System.debug("Hostname base: " + hostnameBase)
#### Interlude: connecting vRO to vCenter
Coming up, I'm going to want to connect to vCenter so I can find out if there are any existing VMs with a similar name. I'll use the vSphere vCenter Plug-in which is included with vRO to facilitate that, but that means I'll first need to set up that connection. So I'll save the workflow I've been working on (save early, save often) and then go run the preloaded "Add a vCenter Server instance" workflow. The first page of required inputs is pretty self-explanatory:
-![Add a vCenter Server instance - vCenter properties](/images/posts-2020/6Gpxapzd3.png)
+![Add a vCenter Server instance - vCenter properties](6Gpxapzd3.png)
On the connection properties page, I unchecked the per-user connection in favor of using a single service account, the same one that I'm already using for vRA's connection to vCenter.
-![Add a vCenter Server instance - Connection properties](/images/posts-2020/RuqJhj00_.png)
+![Add a vCenter Server instance - Connection properties](RuqJhj00_.png)
After successful completion of the workflow, I can go to Administration > Inventory and confirm that the new endpoint is there:
-![vCenter plugin endpoint](/images/posts-2020/rUmGPdz2I.png)
+![vCenter plugin endpoint](rUmGPdz2I.png)
I've only got the one vCenter in my lab. At work, I've got multiple vCenters so I would need to repeat these steps to add each of them as an endpoint.
#### Task: prepare vCenter SDK connection
Anyway, back to my "Generate unique hostname" workflow, where I'll add another scriptable task to prepare the vCenter SDK connection. This one doesn't require any inputs, but will output an array of `VC:SdkConnection` objects:
-![Task: prepare vCenter SDK connection](/images/posts-2020/ByIWO66PC.png)
+![Task: prepare vCenter SDK connection](ByIWO66PC.png)
```js
// JavaScript: prepare vCenter SDK connection
@@ -414,11 +414,11 @@ System.log("Preparing vCenter SDK connection...")
#### ForEach element: search VMs by name
Next, I'm going to drop another ForEach element onto the canvas. For each vCenter endpoint in `sdkConnections (Array/VC:SdkConnection)`, it will execute the workflow titled "Get virtual machines by name with PC". I map the required `vc` input to `*sdkConnections (VC:SdkConnection)`, `filter` to `hostnameBase (String)`, and skip `rootVmFolder` since I don't care where a VM resides. And I create a new `vmsByHost (Array/Array)` variable to hold the output.
-![ForEach: search VMs by name](/images/posts-2020/mnOxV2udH.png)
+![ForEach: search VMs by name](mnOxV2udH.png)
#### Task: unpack results for all hosts
That `vmsByHost (Array/array)` object contains any and all VMs which match `hostnameBase (String)`, but they're broken down by the host they're running on. So I use a scriptable task to convert that array-of-arrays into a new array-of-strings containing just the VM names.
-![Task: unpack results for all hosts](/images/posts-2020/gIEFRnilq.png)
+![Task: unpack results for all hosts](gIEFRnilq.png)
```js
// JavaScript: unpack results for all hosts
@@ -439,7 +439,7 @@ vmNames = vms.map(function(i) {return (i.displayName).toUpperCase()})
#### Task: generate hostnameSeq & candidateVmName
This scriptable task will check the `computerNames` configuration element we created earlier to see if we've already named a VM starting with `hostnameBase (String)`. If such a name exists, we'll increment the number at the end by one, and return that as a new `hostnameSeq (Number)` variable; if it's the first of its kind, `hostnameSeq (Number)` will be set to `1`. And then we'll combine `hostnameBase (String)` and `hostnameSeq (Number)` to create the new `candidateVmName (String)`. If things don't work out, this script will throw `errMsg (String)` so I need to add that as an output exception binding as well.
-![Task: generate hostnameSeq & candidateVmName](/images/posts-2020/fWlSrD56N.png)
+![Task: generate hostnameSeq & candidateVmName](fWlSrD56N.png)
```js
// JavaScript: generate hostnameSeq & candidateVmName
@@ -486,7 +486,7 @@ System.log("Proposed VM name: " + candidateVmName)
#### Task: check for VM name conflicts
Now that I know what I'd like to try to name this new VM, it's time to start checking for any potential conflicts. So this task will compare my `candidateVmName (String)` against the existing `vmNames (Array/string)` to see if there are any collisions. If there's a match, it will set a new variable called `conflict (Boolean)` to `true` and also report the issue through the `errMsg (String)` output exception binding. Otherwise it will move on to the next check.
-![Task: check for VM name conflicts](/images/posts-2020/qmHszypww.png)
+![Task: check for VM name conflicts](qmHszypww.png)
```js
// JavaScript: check for VM name conflicts
@@ -508,10 +508,10 @@ System.log("No VM name conflicts found for " + candidateVmName)
So what happens if there *is* a naming conflict? This solution wouldn't be very flexible if it just gave up as soon as it encountered a problem. Fortunately, I planned for this - all I need to do in the event of a conflict is to run the `generate hostnameSeq & candidateVmName` task again to increment `hostnameSeq (Number)` by one, use that to create a new `candidateVmName (String)`, and then continue on with the checks.
So far, all of the workflow elements have been connected with happy blue lines which show the flow when everything is going according to the plan. Remember that `errMsg (String)` from the last task? When that gets thrown, the flow will switch to follow an angry dashed red line (if there is one). After dropping a new scriptable task onto the canvas, I can click on the blue line connecting it to the previous item and then click the red X to make it go away.
-![So long, Blue Line!](/images/posts-2020/BOIwhMxKy.png)
+![So long, Blue Line!](BOIwhMxKy.png)
I can then drag the new element away from the "everything is fine" flow, and connect it to the `check for VM name conflict` element with that angry dashed red line. Once `conflict resolution` completes (successfully), a happy blue line will direct the flow back to `generate hostnameSeq & candidateVmName` so that the sequence can be incremented and the checks performed again. And finally, a blue line will connect the `check for VM name conflict` task's successful completion to the end of the workflow:
-![Error -> fix it -> try again](/images/posts-2020/dhcjdDo-E.png)
+![Error -> fix it -> try again](dhcjdDo-E.png)
All this task really does is clear the `conflict (Boolean)` flag so that's the only output.
@@ -528,7 +528,7 @@ So if `check VM name conflict` encounters a collision with an existing VM name i
#### Task: return nextVmName
Assuming that everything has gone according to plan and the workflow has avoided any naming conflicts, it will need to return `nextVmName (String)` back to the `VM Provisioning` workflow. That's as simple as setting it to the last value of `candidateVmName (String)`:
-![Task: return nextVmName](/images/posts-2020/5QFTPHp5H.png)
+![Task: return nextVmName](5QFTPHp5H.png)
```js
// JavaScript: return nextVmName
@@ -541,7 +541,7 @@ System.log(" ***** Selecting [" + nextVmName + "] as the next VM name ***** ")
#### Task: remove lock
And we should also remove that lock that we created at the start of this workflow.
-![Task: remove lock](/images/posts-2020/BhBnBh8VB.png)
+![Task: remove lock](BhBnBh8VB.png)
```js
// JavaScript remove lock
@@ -556,26 +556,26 @@ Done! Well, mostly. Right now the workflow only actually releases the lock if it
#### Default error handler
I can use a default error handler to capture an abort due to running out of possible names, release the lock (with an exact copy of the `remove lock` task), and return (failed) control back to the parent workflow.
-![Default error handler](/images/posts-2020/afDacKjVx.png)
+![Default error handler](afDacKjVx.png)
Because the error handler will only fire when the workflow has failed catastrophically, I'll want to make sure the parent workflow knows about it. So I'll set the end mode to "Error, throw an exception" and bind it to that `errMsg (String)` variable to communicate the problem back to the parent.
-![End Mode](/images/posts-2020/R9d8edeFP.png)
+![End Mode](R9d8edeFP.png)
#### Finalizing the VM Provisioning workflow
When I had dropped the foreach workflow item into the VM Provisioning workflow earlier, I hadn't configured anything but the name. Now that the nested workflow is complete, I need to fill in the blanks:
-![Generate unique hostname](/images/posts-2020/F0IZHRj-J.png)
+![Generate unique hostname](F0IZHRj-J.png)
So for each item in `originalNames (Array/string)`, this will run the workflow named `Generate unique hostname`. The input to the workflow will be `requestProperties (Properties)`, and the output will be `newNames (Array/string)`.
### Putting it all together now
Hokay, so. I've got configuration elements which hold the template for how I want servers to be named and also track which names have been used. My cloud template asks the user to input certain details which will be used to create a useful computer name. And I've added an extensibility subscription in Cloud Assembly which will call this vRealize Orchestrator workflow before the VM gets created:
-![Workflow: VM Provisioning](/images/posts-2020/cONrdrbb6.png)
+![Workflow: VM Provisioning](cONrdrbb6.png)
This workflow first logs all the properties obtained from the vRA side of things, then parses the properties to grab the necessary details. It then passes that information to a nested workflow actually generate the hostname. Once it gets a result, it updates the deployment properties with the new name so that vRA can configure the VM accordingly.
The nested workflow is a bit more complicated:
-![Workflow: Generate unique hostname](/images/posts-2020/siEJSdeDE.png)
+![Workflow: Generate unique hostname](siEJSdeDE.png)
It first creates a lock to ensure there won't be multiple instances of this workflow running simultaneously, and then processes data coming from the "parent" workflow to extract the details needed for this workflow. It smashes together the naming elements (site, environment, function, etc) to create a naming base, then connects to each defined vCenter to compile a list of any VMs with the same base. The workflow then consults a configuration element to see which (if any) similar names have already been used, and generates a suggested VM name based on that. It then consults the existing VM list to see if there might be any collisions; if so, it flags the conflict and loops back to generate a new name and try again. Once the conflicts are all cleared, the suggested VM name is made official and returned back up to the VM Provisioning workflow.
@@ -583,16 +583,16 @@ Cool. But does it actually work?
### Testing
Remember how I had tested my initial workflow just to see which variables got captured? Now that the workflow has a bit more content, I can just re-run it without having to actually provision a new VM. After doing so, the logging view reports that it worked!
-![Sweet success!](/images/posts-2020/eZ1BUfesQ.png)
+![Sweet success!](eZ1BUfesQ.png)
I can also revisit the `computerNames` configuration element to see the new name reflected there:
-![More success](/images/posts-2020/krx8rZMmh.png)
+![More success](krx8rZMmh.png)
If I run the workflow again, I should see `DRE-DTST-XXX002` assigned, and I do!
-![Twice as nice](/images/posts-2020/SOPs3mzTs.png)
+![Twice as nice](SOPs3mzTs.png)
And, finally, I can go back to vRA and request a new VM and confirm that the name gets correctly applied to the VM.
-![#winning](/images/posts-2020/HXrAMJrH.png)
+![#winning](HXrAMJrH.png)
It's so beautiful!
diff --git a/static/images/posts-2020/iqsHm5zQR.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/iqsHm5zQR.png
similarity index 100%
rename from static/images/posts-2020/iqsHm5zQR.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/iqsHm5zQR.png
diff --git a/static/images/posts-2020/krx8rZMmh.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/krx8rZMmh.png
similarity index 100%
rename from static/images/posts-2020/krx8rZMmh.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/krx8rZMmh.png
diff --git a/static/images/posts-2020/lUo1odZ03.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/lUo1odZ03.png
similarity index 100%
rename from static/images/posts-2020/lUo1odZ03.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/lUo1odZ03.png
diff --git a/static/images/posts-2020/mnOxV2udH.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/mnOxV2udH.png
similarity index 100%
rename from static/images/posts-2020/mnOxV2udH.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/mnOxV2udH.png
diff --git a/static/images/posts-2020/o8CgTjSYm.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/o8CgTjSYm.png
similarity index 100%
rename from static/images/posts-2020/o8CgTjSYm.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/o8CgTjSYm.png
diff --git a/static/images/posts-2020/pqrvUNmsj.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/pqrvUNmsj.png
similarity index 100%
rename from static/images/posts-2020/pqrvUNmsj.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/pqrvUNmsj.png
diff --git a/static/images/posts-2020/qmHszypww.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/qmHszypww.png
similarity index 100%
rename from static/images/posts-2020/qmHszypww.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/qmHszypww.png
diff --git a/static/images/posts-2020/qt-D1mJFE.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/qt-D1mJFE.png
similarity index 100%
rename from static/images/posts-2020/qt-D1mJFE.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/qt-D1mJFE.png
diff --git a/static/images/posts-2020/rUmGPdz2I.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/rUmGPdz2I.png
similarity index 100%
rename from static/images/posts-2020/rUmGPdz2I.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/rUmGPdz2I.png
diff --git a/static/images/posts-2020/siEJSdeDE.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/siEJSdeDE.png
similarity index 100%
rename from static/images/posts-2020/siEJSdeDE.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/siEJSdeDE.png
diff --git a/static/images/posts-2020/tiBJVKYdf.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/tiBJVKYdf.png
similarity index 100%
rename from static/images/posts-2020/tiBJVKYdf.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/tiBJVKYdf.png
diff --git a/static/images/posts-2020/y7JKSxsqE.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/y7JKSxsqE.png
similarity index 100%
rename from static/images/posts-2020/y7JKSxsqE.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/y7JKSxsqE.png
diff --git a/static/images/posts-2020/zAF26KJnO.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/zAF26KJnO.png
similarity index 100%
rename from static/images/posts-2020/zAF26KJnO.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/zAF26KJnO.png
diff --git a/static/images/posts-2020/zLec-3X_D.png b/content/posts/2021/04/vra8-custom-provisioning-part-two/zLec-3X_D.png
similarity index 100%
rename from static/images/posts-2020/zLec-3X_D.png
rename to content/posts/2021/04/vra8-custom-provisioning-part-two/zLec-3X_D.png
diff --git a/static/images/posts-2020/34xD8tbli.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/34xD8tbli.png
similarity index 100%
rename from static/images/posts-2020/34xD8tbli.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/34xD8tbli.png
diff --git a/static/images/posts-2020/Es90-kFW9.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/Es90-kFW9.png
similarity index 100%
rename from static/images/posts-2020/Es90-kFW9.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/Es90-kFW9.png
diff --git a/static/images/posts-2020/HRRpFOKuN.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/HRRpFOKuN.png
similarity index 100%
rename from static/images/posts-2020/HRRpFOKuN.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/HRRpFOKuN.png
diff --git a/static/images/posts-2020/NOyfgjjUy.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/NOyfgjjUy.png
similarity index 100%
rename from static/images/posts-2020/NOyfgjjUy.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/NOyfgjjUy.png
diff --git a/static/images/posts-2020/OtPGufxlP.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/OtPGufxlP.png
similarity index 100%
rename from static/images/posts-2020/OtPGufxlP.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/OtPGufxlP.png
diff --git a/static/images/posts-2020/UHvtv1DrT.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/UHvtv1DrT.png
similarity index 100%
rename from static/images/posts-2020/UHvtv1DrT.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/UHvtv1DrT.png
diff --git a/static/images/posts-2020/bw09OXG7f.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/bw09OXG7f.png
similarity index 100%
rename from static/images/posts-2020/bw09OXG7f.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/bw09OXG7f.png
diff --git a/static/images/posts-2020/clE6OVmjp.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/clE6OVmjp.png
similarity index 100%
rename from static/images/posts-2020/clE6OVmjp.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/clE6OVmjp.png
diff --git a/content/posts/2021/05/adguard-home-in-docker-on-photon-os.md b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/index.md
similarity index 93%
rename from content/posts/2021/05/adguard-home-in-docker-on-photon-os.md
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/index.md
index 0d92232..c1e3d7c 100644
--- a/content/posts/2021/05/adguard-home-in-docker-on-photon-os.md
+++ b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/index.md
@@ -1,8 +1,8 @@
---
series: Projects
date: "2021-05-27T08:34:30Z"
-thumbnail: images/posts-2020/HRRpFOKuN.png
-usePageBundles: false
+thumbnail: HRRpFOKuN.png
+usePageBundles: true
tags:
- docker
- vmware
@@ -20,9 +20,9 @@ https://packages.vmware.com/photon/4.0/GA/ova/photon-hw13-uefi-4.0-1526e30ba0.ov
```
Then I went into vCenter, hit the **Deploy OVF Template** option, and pasted in the URL:
-![Deploying the OVA straight from the internet](/images/posts-2020/Es90-kFW9.png)
+![Deploying the OVA straight from the internet](Es90-kFW9.png)
This lets me skip the kind of tedious "download file from internet and then upload file to vCenter" dance, and I can then proceed to click through the rest of the deployment options.
-![Ready to deploy](/images/posts-2020/rCpaTbPX5.png)
+![Ready to deploy](rCpaTbPX5.png)
Once the VM is created, I power it on and hop into the web console. The default root username is `changeme`, and I'll of course be forced to change that the first time I log in.
@@ -56,10 +56,10 @@ IPv6AcceptRA=no
I set the required permissions on my new network configuration file with `chmod 644 /etc/systemd/network/10-static-en.network` and then restarted `networkd` with `systemctl restart systemd-networkd`.
I then ran `networkctl` a couple of times until the `eth0` interface went fully green, and did an `ip a` to confirm that the address had been applied.
-![Verifying networking](/images/posts-2020/qOw7Ysj3O.png)
+![Verifying networking](qOw7Ysj3O.png)
One last little bit of housekeeping is to change the hostname with `hostnamectl set-hostname adguard` and then reboot for good measure. I can then log in via SSH to continue the setup.
-![SSH login](/images/posts-2020/NOyfgjjUy.png)
+![SSH login](NOyfgjjUy.png)
Now that I'm in, I run `tdnf update` to make sure the VM is fully up to date.
@@ -146,10 +146,10 @@ Creating adguard ... done
### Post-deploy configuration
Next, I point a web browser to `http://adguard.lab.bowdre.net:3000` to perform the initial (minimal) setup:
-![Initial config screen](/images/posts-2020/UHvtv1DrT.png)
+![Initial config screen](UHvtv1DrT.png)
Once that's done, I can log in to the dashboard at `http://adguard.lab.bowdre.net/login.html`:
-![Login page](/images/posts-2020/34xD8tbli.png)
+![Login page](34xD8tbli.png)
AdGuard Home ships with pretty sensible defaults so there's not really a huge need to actually do a lot of configuration. Any changes that I *do* do will be saved in `~/adguard/confdir/AdGuardHome.yaml` so they will be preserved across container changes.
@@ -160,15 +160,15 @@ Normally, you'd tell your Wifi router what DNS server you want to use, and it wo
I already have Google Wifi set up to use my Windows DC (at `192.168.1.5`) for DNS. That lets me easily access systems on my internal `lab.bowdre.net` domain without having to manually configure DNS, and the DC forwards resolution requests it can't handle on to the upstream (internet) DNS servers.
To easily insert my AdGuard Home instance into the flow, I pop in to my Windows DC and configure the AdGuard Home address (`192.168.1.2`) as the primary DNS forwarder. The DC will continue to handle internal resolutions, and anything it can't handle will now get passed up the chain to AdGuard Home. And this also gives me a bit of a failsafe, in that queries will fail back to the previously-configured upstream DNS if AdGuard Home doesn't respond within a few seconds.
-![Setting AdGuard Home as a forwarder](/images/posts-2020/bw09OXG7f.png)
+![Setting AdGuard Home as a forwarder](bw09OXG7f.png)
It's working!
-![Requests!](/images/posts-2020/HRRpFOKuN.png)
+![Requests!](HRRpFOKuN.png)
### Caveat
Chaining my DNS configurations in this way (router -> DC -> AdGuard Home -> internet) does have a bit of a limitation, in that all queries will appear to come from the Windows server:
-![Only client](/images/posts-2020/OtPGufxlP.png)
+![Only client](OtPGufxlP.png)
I won't be able to do any per-client filtering as a result, but honestly I'm okay with that as I already use the "Pause Internet" option in Google Wifi to block outbound traffic from certain devices anyway. And using the Windows DNS as an intermediary makes it significantly quicker and easier to switch things up if I run into problems later; changing the forwarder here takes effect instantly rather than having to manually update all of my clients or wait for DHCP to distribute the change.
I have worked around this in the past by [bypassing Google Wifi's DHCP](https://www.mbreviews.com/pi-hole-google-wifi-raspberry-pi/) but I think it was actually more trouble than it was worth to me.
@@ -176,6 +176,6 @@ I have worked around this in the past by [bypassing Google Wifi's DHCP](https://
### One last thing...
I'm putting a lot of responsibility on both of these VMs, my Windows DC and my new AdGuard Home instance. If they aren't up, I won't have internet access, and that would be a shame. I already have my ESXi host configured to automatically start up when power is (re)applied, so I also adjust the VM Startup/Shutdown Configuration so that AdGuard Home will automatically boot after ESXi is loaded, followed closely by the Windows DC (and the rest of my virtualized infrastructure):
-![Auto Start-up Options](/images/posts-2020/clE6OVmjp.png)
+![Auto Start-up Options](clE6OVmjp.png)
So there you have it. Simple DNS-based ad-blocking running on a minimal container-optimized VM that *should* be more stable than the add-on tacked on to my Home Assistant instance. Enjoy!
\ No newline at end of file
diff --git a/static/images/posts-2020/qOw7Ysj3O.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/qOw7Ysj3O.png
similarity index 100%
rename from static/images/posts-2020/qOw7Ysj3O.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/qOw7Ysj3O.png
diff --git a/static/images/posts-2020/rCpaTbPX5.png b/content/posts/2021/05/adguard-home-in-docker-on-photon-os/rCpaTbPX5.png
similarity index 100%
rename from static/images/posts-2020/rCpaTbPX5.png
rename to content/posts/2021/05/adguard-home-in-docker-on-photon-os/rCpaTbPX5.png
diff --git a/static/images/posts-2020/Ivv0ia8oX.png b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/Ivv0ia8oX.png
similarity index 100%
rename from static/images/posts-2020/Ivv0ia8oX.png
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/Ivv0ia8oX.png
diff --git a/static/images/posts-2020/NoN-72Qf6.png b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/NoN-72Qf6.png
similarity index 100%
rename from static/images/posts-2020/NoN-72Qf6.png
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/NoN-72Qf6.png
diff --git a/static/images/posts-2020/aumfETl1l.gif b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/aumfETl1l.gif
similarity index 100%
rename from static/images/posts-2020/aumfETl1l.gif
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/aumfETl1l.gif
diff --git a/content/posts/2021/05/vra8-automatic-deployment-naming-another-take.md b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/index.md
similarity index 86%
rename from content/posts/2021/05/vra8-automatic-deployment-naming-another-take.md
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/index.md
index b82b789..cda6f0a 100644
--- a/content/posts/2021/05/vra8-automatic-deployment-naming-another-take.md
+++ b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-05-20T08:34:30Z"
-thumbnail: images/posts-2020/wl-WPQpEl.png
-usePageBundles: false
+thumbnail: wl-WPQpEl.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -15,10 +15,10 @@ toc: false
A [few days ago](/vra8-custom-provisioning-part-four#automatic-deployment-naming), I shared how I combined a Service Broker Custom Form with a vRO action to automatically generate a unique and descriptive deployment name based on user inputs. That approach works *fine* but while testing some other components I realized that calling that action each time a user makes a selection isn't necessarily ideal. After a bit of experimentation, I settled on what I believe to be a better solution.
Instead of setting the "Deployment Name" field to use an External Source (vRO), I'm going to configure it to use a Computed Value. This is a bit less flexible, but all the magic happens right there in the form without having to make an expensive vRO call.
-![Computed Value option](/images/posts-2020/Ivv0ia8oX.png)
+![Computed Value option](Ivv0ia8oX.png)
After setting `Value source` to `Computed value`, I also set the `Operation` to `Concatenate` (since it is, after all, the only operation choice. I can then use the **Add Value** button to add some fields. Each can be either a *Constant* (like a separator) or linked to a *Field* on the request form. By combining those, I can basically reconstruct the same arrangement that I was previously generating with vRO:
-![Fields and Constants!](/images/posts-2020/zN3EN6lrG.png)
+![Fields and Constants!](zN3EN6lrG.png)
So this will generate a name that looks something like `[user]_[catalog_item]_[site]-[env][function]-[app]`, all without having to call vRO! That gets me pretty close to what I want... but there's always the chance that the generated name won't be truly unique. Being able to append a timestamp on to the end would be a big help here.
@@ -36,20 +36,20 @@ return result
```
I then drag a Text Field called `Timestamp` onto the Service Broker Custom Form canvas, and set it to not be visible:
-![Invisible timestamp](/images/posts-2020/rtTeG3ZoR.png)
+![Invisible timestamp](rtTeG3ZoR.png)
And I set it to pull its value from my new `net.bowdre.utility/getTimestamp` action:
-![Calling the action](/images/posts-2020/NoN-72Qf6.png)
+![Calling the action](NoN-72Qf6.png)
Now when the form loads, this field will store a timestamp with thousandths-of-a-second precision.
The last step is to return to the Deployment Name field and link in the new Timestamp field so that it will get tacked on to the end of the generated name.
-![Linked!](/images/posts-2020/wl-WPQpEl.png)
+![Linked!](wl-WPQpEl.png)
The old way looked like this, where it had to churn a bit after each selection:
-![The Churn](/images/posts-2020/vH-npyz9s.gif)
+![The Churn](vH-npyz9s.gif)
Here's the newer approach, which feels much snappier:
-![Snappy!](/images/posts-2020/aumfETl1l.gif)
+![Snappy!](aumfETl1l.gif)
Not bad! Now I can make the Deployment Name field hidden again and get back to work!
\ No newline at end of file
diff --git a/static/images/posts-2020/rtTeG3ZoR.png b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/rtTeG3ZoR.png
similarity index 100%
rename from static/images/posts-2020/rtTeG3ZoR.png
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/rtTeG3ZoR.png
diff --git a/static/images/posts-2020/vH-npyz9s.gif b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/vH-npyz9s.gif
similarity index 100%
rename from static/images/posts-2020/vH-npyz9s.gif
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/vH-npyz9s.gif
diff --git a/static/images/posts-2020/wl-WPQpEl.png b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/wl-WPQpEl.png
similarity index 100%
rename from static/images/posts-2020/wl-WPQpEl.png
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/wl-WPQpEl.png
diff --git a/static/images/posts-2020/zN3EN6lrG.png b/content/posts/2021/05/vra8-automatic-deployment-naming-another-take/zN3EN6lrG.png
similarity index 100%
rename from static/images/posts-2020/zN3EN6lrG.png
rename to content/posts/2021/05/vra8-automatic-deployment-naming-another-take/zN3EN6lrG.png
diff --git a/static/images/posts-2020/0-9BaWJqq.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/0-9BaWJqq.png
similarity index 100%
rename from static/images/posts-2020/0-9BaWJqq.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/0-9BaWJqq.png
diff --git a/static/images/posts-2020/09faF5-Fm.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/09faF5-Fm.png
similarity index 100%
rename from static/images/posts-2020/09faF5-Fm.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/09faF5-Fm.png
diff --git a/static/images/posts-2020/1NJvDeA7r.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/1NJvDeA7r.png
similarity index 100%
rename from static/images/posts-2020/1NJvDeA7r.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/1NJvDeA7r.png
diff --git a/static/images/posts-2020/4X1dPG_Rq.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/4X1dPG_Rq.png
similarity index 100%
rename from static/images/posts-2020/4X1dPG_Rq.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/4X1dPG_Rq.png
diff --git a/static/images/posts-2020/4flvfGC54.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/4flvfGC54.png
similarity index 100%
rename from static/images/posts-2020/4flvfGC54.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/4flvfGC54.png
diff --git a/static/images/posts-2020/CDy518peA.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/CDy518peA.png
similarity index 100%
rename from static/images/posts-2020/CDy518peA.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/CDy518peA.png
diff --git a/static/images/posts-2020/GMCWhns7u.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/GMCWhns7u.png
similarity index 100%
rename from static/images/posts-2020/GMCWhns7u.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/GMCWhns7u.png
diff --git a/static/images/posts-2020/Hlnnd_8Ed.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/Hlnnd_8Ed.png
similarity index 100%
rename from static/images/posts-2020/Hlnnd_8Ed.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/Hlnnd_8Ed.png
diff --git a/static/images/posts-2020/IdrT-Un8H1.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/IdrT-Un8H1.png
similarity index 100%
rename from static/images/posts-2020/IdrT-Un8H1.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/IdrT-Un8H1.png
diff --git a/static/images/posts-2020/J_RG9JNPz.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/J_RG9JNPz.png
similarity index 100%
rename from static/images/posts-2020/J_RG9JNPz.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/J_RG9JNPz.png
diff --git a/static/images/posts-2020/REZ08yA2E.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/REZ08yA2E.png
similarity index 100%
rename from static/images/posts-2020/REZ08yA2E.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/REZ08yA2E.png
diff --git a/static/images/posts-2020/TQGyrUqIx.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/TQGyrUqIx.png
similarity index 100%
rename from static/images/posts-2020/TQGyrUqIx.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/TQGyrUqIx.png
diff --git a/static/images/posts-2020/ZPsS0oZuc.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/ZPsS0oZuc.png
similarity index 100%
rename from static/images/posts-2020/ZPsS0oZuc.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/ZPsS0oZuc.png
diff --git a/static/images/posts-2020/af-OEP5Tu.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/af-OEP5Tu.png
similarity index 100%
rename from static/images/posts-2020/af-OEP5Tu.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/af-OEP5Tu.png
diff --git a/static/images/posts-2020/bCKrtn05o.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/bCKrtn05o.png
similarity index 100%
rename from static/images/posts-2020/bCKrtn05o.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/bCKrtn05o.png
diff --git a/static/images/posts-2020/fh37T__nb.gif b/content/posts/2021/05/vra8-custom-provisioning-part-four/fh37T__nb.gif
similarity index 100%
rename from static/images/posts-2020/fh37T__nb.gif
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/fh37T__nb.gif
diff --git a/static/images/posts-2020/hFPeakMxn.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/hFPeakMxn.png
similarity index 100%
rename from static/images/posts-2020/hFPeakMxn.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/hFPeakMxn.png
diff --git a/static/images/posts-2020/iScnhmzVY.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/iScnhmzVY.png
similarity index 100%
rename from static/images/posts-2020/iScnhmzVY.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/iScnhmzVY.png
diff --git a/content/posts/2021/05/vra8-custom-provisioning-part-four.md b/content/posts/2021/05/vra8-custom-provisioning-part-four/index.md
similarity index 89%
rename from content/posts/2021/05/vra8-custom-provisioning-part-four.md
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/index.md
index 282dd3e..b26ee24 100644
--- a/content/posts/2021/05/vra8-custom-provisioning-part-four.md
+++ b/content/posts/2021/05/vra8-custom-provisioning-part-four/index.md
@@ -2,8 +2,8 @@
series: vRA8
date: "2021-05-18T08:34:30Z"
lastmod: "2021-05-20"
-thumbnail: images/posts-2020/hFPeakMxn.png
-usePageBundles: false
+thumbnail: hFPeakMxn.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -20,28 +20,28 @@ This post will add in some "front-end" operations, like creating a customized VM
So far, I've been working either in the Cloud Assembly or Orchestrator UIs, both of which are really geared toward administrators. Now I'm going to be working with Service Broker which will provide the user-facing front-end. This is where "normal" users will be able to submit provisioning requests without having to worry about any of the underlying infrastructure or orchestration.
Before I can do anything with my Cloud Template in the Service Broker UI, though, I'll need to release it from Cloud Assembly. I do this by opening the template on the *Design* tab and clicking the *Version* button at the bottom of the screen. I'll label this as `1.0` and tick the checkbox to *Release this version to the catalog*.
-![Releasing the Cloud Template to the Service Broker catalog](/images/posts-2020/0-9BaWJqq.png)
+![Releasing the Cloud Template to the Service Broker catalog](0-9BaWJqq.png)
I can then go to the Service Broker UI and add a new Content Source for my Cloud Assembly templates.
-![Add a new Content Source](/images/posts-2020/4X1dPG_Rq.png)
-![Adding a new Content Source](/images/posts-2020/af-OEP5Tu.png)
+![Add a new Content Source](4X1dPG_Rq.png)
+![Adding a new Content Source](af-OEP5Tu.png)
After hitting the *Create & Import* button, all released Cloud Templates in the selected Project will show up in the Service Broker *Content* section:
-![New content!](/images/posts-2020/Hlnnd_8Ed.png)
+![New content!](Hlnnd_8Ed.png)
In order for users to deploy from this template, I also need to go to *Content Sharing*, select the Project, and share the content. This can be done either at the Project level or by selecting individual content items.
-![Content sharing](/images/posts-2020/iScnhmzVY.png)
+![Content sharing](iScnhmzVY.png)
That template now appears on the Service Broker *Catalog* tab:
-![Catalog items](/images/posts-2020/09faF5-Fm.png)
+![Catalog items](09faF5-Fm.png)
That's cool and all, and I could go ahead and request a deployment off of that catalog item right now - but I'm really interested in being able to customize the request form. I do that by clicking on the little three-dot menu icon next to the Content entry and selecting the *Customize form* option.
-![Customize form](/images/posts-2020/ZPsS0oZuc.png)
+![Customize form](ZPsS0oZuc.png)
When you start out, the custom form kind of jumbles up the available fields. So I'm going to start by dragging-and-dropping the fields to resemble the order defined in the Cloud Template:
-![Starting to customize the custom form](/images/posts-2020/oLwUg1k6T.png)
+![Starting to customize the custom form](oLwUg1k6T.png)
In addition to rearranging the request form fields, Custom Forms also provide significant control over how the form behaves. You can change how a field is displayed, define default values, make fields dependent upon other fields and more. For instance, all of my templates and resources belong to a single project so making the user select the project (from a set of 1) is kind of redundant. Every deployment has to be tied to a project so I can't just remove that field, but I can select the "Project" field on the canvas and change its *Visibility* to "No" to hide it. It will silently pass along the correct project ID in the background without cluttering up the form.
-![Hiding the Project field](/images/posts-2020/4flvfGC54.png)
+![Hiding the Project field](4flvfGC54.png)
How about that Deployment Name field? In my tests, I'd been manually creating a string of numbers to uniquely identify the deployment, but I'm not going to ask my users to do that. Instead, I'll leverage another great capability of Custom Forms - tying a field value to a result of a custom vRO action!
@@ -49,10 +49,10 @@ How about that Deployment Name field? In my tests, I'd been manually creating a
*[Update] I've since come up with what I think is a better approach to handling this. Check it out [here](/vra8-automatic-deployment-naming-another-take)!*
That means it's time to dive back into the vRealize Orchestrator interface and whip up a new action for this purpose. I created a new action within my existing `net.bowdre.utility` module called `createDeploymentName`.
-![createDeploymentName action](/images/posts-2020/GMCWhns7u.png)
+![createDeploymentName action](GMCWhns7u.png)
A good deployment name *must* be globally unique, and it would be great if it could also convey some useful information like who requested the deployment, which template it is being deployed from, and the purpose of the server. The `siteCode (String)`, `envCode (String)`, `functionCode (String)`, and `appCode (String)` variables from the request form will do a great job of describing the server's purpose. I can also pass in some additional information from the Service Broker form like `catalogItemName (String)` to get the template name and `requestedByName (String)` to identify the user making the request. So I'll set all those as inputs to my action:
-![createDeploymentName inputs](/images/posts-2020/bCKrtn05o.png)
+![createDeploymentName inputs](bCKrtn05o.png)
I also went ahead and specified that the action will return a String.
@@ -76,10 +76,10 @@ return deploymentName
```
With that sorted, I can go back to the Service Broker interface to modify the custom form a bit more. I select the "Deployment Name" field and click over to the Values tab on the right. There, I set the *Value source* to "External source" and *Select action* to the new action I just created, `net.bowdre.utility/createDeploymentName`. (If the action doesn't appear in the search field, go to *Infrastructure > Integrations > Embedded-VRO* and click the "Start Data Collection" button to force vRA to update its inventory of vRO actions and workflows.) I then map all the action's inputs to properties available on the request form.
-![Linking the action](/images/posts-2020/mpbPukEeB.png)
+![Linking the action](mpbPukEeB.png)
The last step before testing is to click that *Enable* button to activate the custom form, and then the *Save* button to save my work. So did it work? Let's head to the *Catalog* tab and open the request:
-![Watching the deployment name change](/images/posts-2020/tybyj-5dG.gif)
+![Watching the deployment name change](tybyj-5dG.gif)
Cool! So it's dynamically generating the deployment name based on selections made on the form. Now that it works, I can go back to the custom form and set the "Deployment Name" field to be invisible just like the "Project" one.
@@ -116,15 +116,15 @@ I *could* just use those tags to let users pick the appropriate network, but I'v
| d1650-Servers-4 | `net:dre`, `net:front`, `net:dre-front-172.16.50.0` |
| d1660-Servers-5 | `net:dre`, `net:back`, `net:dre-back-172.16.60.0` |
-![Tagged networks](/images/posts-2020/J_RG9JNPz.png)
+![Tagged networks](J_RG9JNPz.png)
So I can now use a single tag to positively identify a single network, as long as I know its site and either its purpose or its IP space. I'll reference these tags in a vRO action that will populate a dropdown in the request form with the available networks for the selected site. Unfortunately I couldn't come up with an easy way to dynamically pull the tags into vRO so I create another Configuration Element to store them:
-![networksPerSite configuration element](/images/posts-2020/xfEultDM_.png)
+![networksPerSite configuration element](xfEultDM_.png)
This gets filed under the existing `CustomProvisioning` folder, and I name it `networksPerSite`. Each site gets a new variable of type `Array/string`. The name of the variable matches the site ID, and the contents are just the tags minus the `net:` prefix.
I created a new action named (appropriately) `getNetworksForSite`. This will accept `siteCode (String)` as its input from the Service Broker request form, and will return an array of strings containing the available networks.
-![getNetworksForSite action](/images/posts-2020/IdrT-Un8H1.png)
+![getNetworksForSite action](IdrT-Un8H1.png)
```js
// JavaScript: getNetworksForSite
@@ -186,31 +186,31 @@ resources:
Remember that the `networksPerSite` configuration element contains the portion of the tags *after* the `net:` prefix so that's why I include the prefix in the constraint tag here. I just didn't want it to appear in the selection dropdown.
After making this change to the Cloud Template I use the "Create Version" button again to create a new version and tick the option to release it so that it can be picked up by Service Broker.
-![Another new version](/images/posts-2020/REZ08yA2E.png)
+![Another new version](REZ08yA2E.png)
Back on the Service Broker UI, I hit my `LAB` Content Source again to Save & Import the new change, and then go to customize the form for `WindowsDemo` again. After dragging-and-dropping the new `Network` field onto the request form blueprint, I kind of repeat the steps I used for adjusting the Deployment Name field earlier. On the Appearance tab I set it to be a DropDown, and on the Values tab I set it to an external source, `net.bowdre.utility/getNetworksForSite`. This action only needs a single input so I map `Site` on the request form to the `siteCode` input.
-![Linking the Network field to the getNetworksForSite action](/images/posts-2020/CDy518peA.png)
+![Linking the Network field to the getNetworksForSite action](CDy518peA.png)
Now I can just go back to the Catalog tab and request a new deployment to check out my--
-![Ew, an ugly error](/images/posts-2020/zWFTuOYOG.png)
+![Ew, an ugly error](zWFTuOYOG.png)
Oh yeah. That vRO action gets called as soon as the request form loads - before selecting the required site code as an input. I could modify the action so that returns an empty string if the site hasn't been selected yet, but I'm kind of lazy so I'll instead just modify the custom form so that the Site field defaults to the `BOW` site.
-![BOW is default](/images/posts-2020/yb77nH2Fp.png)
+![BOW is default](yb77nH2Fp.png)
*Now* I can open up the request form and see how well it works:
-![Network selection in action](/images/posts-2020/fh37T__nb.gif)
+![Network selection in action](fh37T__nb.gif)
Noice!
### Putting it all together now
At this point, I'll actually kick off a deployment and see how everything works out.
-![The request](/images/posts-2020/hFPeakMxn.png)
+![The request](hFPeakMxn.png)
After hitting Submit, I can see that this deployment has a much more friendly name than the previous ones:
-![Auto generated deployment name!](/images/posts-2020/TQGyrUqIx.png)
+![Auto generated deployment name!](TQGyrUqIx.png)
And I can also confirm that the VM got named appropriately (based on the [naming standard I implemented earlier](vra8-custom-provisioning-part-two)), and it also got placed on the `172.16.60.0/24` network I selected.
-![Network placement - check!](/images/posts-2020/1NJvDeA7r.png)
+![Network placement - check!](1NJvDeA7r.png)
Very slick. And I think that's a great stopping point for today.
diff --git a/static/images/posts-2020/mpbPukEeB.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/mpbPukEeB.png
similarity index 100%
rename from static/images/posts-2020/mpbPukEeB.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/mpbPukEeB.png
diff --git a/static/images/posts-2020/oLwUg1k6T.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/oLwUg1k6T.png
similarity index 100%
rename from static/images/posts-2020/oLwUg1k6T.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/oLwUg1k6T.png
diff --git a/static/images/posts-2020/tybyj-5dG.gif b/content/posts/2021/05/vra8-custom-provisioning-part-four/tybyj-5dG.gif
similarity index 100%
rename from static/images/posts-2020/tybyj-5dG.gif
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/tybyj-5dG.gif
diff --git a/static/images/posts-2020/xfEultDM_.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/xfEultDM_.png
similarity index 100%
rename from static/images/posts-2020/xfEultDM_.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/xfEultDM_.png
diff --git a/static/images/posts-2020/yb77nH2Fp.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/yb77nH2Fp.png
similarity index 100%
rename from static/images/posts-2020/yb77nH2Fp.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/yb77nH2Fp.png
diff --git a/static/images/posts-2020/zWFTuOYOG.png b/content/posts/2021/05/vra8-custom-provisioning-part-four/zWFTuOYOG.png
similarity index 100%
rename from static/images/posts-2020/zWFTuOYOG.png
rename to content/posts/2021/05/vra8-custom-provisioning-part-four/zWFTuOYOG.png
diff --git a/static/images/posts-2020/-Fuvz-GmF.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/-Fuvz-GmF.png
similarity index 100%
rename from static/images/posts-2020/-Fuvz-GmF.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/-Fuvz-GmF.png
diff --git a/static/images/posts-2020/5ATk99aPW.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/5ATk99aPW.png
similarity index 100%
rename from static/images/posts-2020/5ATk99aPW.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/5ATk99aPW.png
diff --git a/static/images/posts-2020/F3Wkd3VT.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/F3Wkd3VT.png
similarity index 100%
rename from static/images/posts-2020/F3Wkd3VT.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/F3Wkd3VT.png
diff --git a/static/images/posts-2020/Lq9DBCK_Y.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/Lq9DBCK_Y.png
similarity index 100%
rename from static/images/posts-2020/Lq9DBCK_Y.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/Lq9DBCK_Y.png
diff --git a/static/images/posts-2020/N7YllJkxS.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/N7YllJkxS.png
similarity index 100%
rename from static/images/posts-2020/N7YllJkxS.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/N7YllJkxS.png
diff --git a/static/images/posts-2020/PmhVOWJsUn.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/PmhVOWJsUn.png
similarity index 100%
rename from static/images/posts-2020/PmhVOWJsUn.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/PmhVOWJsUn.png
diff --git a/static/images/posts-2020/X9JhgWx8x.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/X9JhgWx8x.png
similarity index 100%
rename from static/images/posts-2020/X9JhgWx8x.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/X9JhgWx8x.png
diff --git a/static/images/posts-2020/Z2aKLsLou.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/Z2aKLsLou.png
similarity index 100%
rename from static/images/posts-2020/Z2aKLsLou.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/Z2aKLsLou.png
diff --git a/static/images/posts-2020/cEbWSOg00.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/cEbWSOg00.png
similarity index 100%
rename from static/images/posts-2020/cEbWSOg00.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/cEbWSOg00.png
diff --git a/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8.md b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/index.md
similarity index 89%
rename from content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8.md
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/index.md
index bf2c16e..28ca400 100644
--- a/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8.md
+++ b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-06-01T08:34:30Z"
-thumbnail: images/posts-2020/-Fuvz-GmF.png
-usePageBundles: false
+thumbnail: -Fuvz-GmF.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -17,7 +17,7 @@ In this post, I'll describe how to get certain details from the Service Broker r
### New inputs
I'll start this by adding a few new inputs to the cloud template in Cloud Assembly.
-![New inputs in Cloud Assembly](/images/posts-2020/F3Wkd3VT.png)
+![New inputs in Cloud Assembly](F3Wkd3VT.png)
I'm using a basic regex on the `poc_email` field to make sure that the user's input is *probably* a valid email address in the format `[some string]@[some string].[some string]`.
@@ -46,7 +46,7 @@ inputs:
```
I'll also need to add these to the `resources` section of the template so that they will get passed along with the deployment properties.
-![New resource properties](/images/posts-2020/N7YllJkxS.png)
+![New resource properties](N7YllJkxS.png)
I'm actually going to combine the `poc_name` and `poc_email` fields into a single `poc` string.
@@ -63,21 +63,21 @@ resources:
```
I'll save this as a new version so that the changes will be available in the Service Broker front-end.
-![New template version](/images/posts-2020/Z2aKLsLou.png)
+![New template version](Z2aKLsLou.png)
### Service Broker custom form
I can then go to Service Broker and drag the new fields onto the Custom Form canvas. (If the new fields don't show up, hit up the Content Sources section of Service Broker, select the content source, and click the "Save and Import" button to sync the changes.) While I'm at it, I set the Description field to display as a text area (encouraging more detailed input), and I also set all the fields on the form to be required.
-![Service Broker form](/images/posts-2020/unhgNySSzz.png)
+![Service Broker form](unhgNySSzz.png)
### vRO workflow
Okay, so I've got the information I want to pass on to vCenter. Now I need to whip up a new workflow in vRO that will actually do that (after [telling vRO how to connect to the vCenter](/vra8-custom-provisioning-part-two#interlude-connecting-vro-to-vcenter), of course). I'll want to call this after the VM has been provisioned, so I'll cleverly call the workflow "VM Post-Provisioning".
-![Naming the new workflow](/images/posts-2020/X9JhgWx8x.png)
+![Naming the new workflow](X9JhgWx8x.png)
The workflow will have a single input from vRA, `inputProperties` of type `Properties`.
-![Workflow input](/images/posts-2020/zHrp6GPcP.png)
+![Workflow input](zHrp6GPcP.png)
The first thing this workflow needs to do is parse `inputProperties (Properties)` to get the name of the VM, and it will then use that information to query vCenter and grab the corresponding VM object. So I'll add a scriptable task item to the workflow canvas and call it `Get VM Object`. It will take `inputProperties (Properties)` as its sole input, and output a new variable called `vm` of type `VC:VirtualMachine`.
-![Get VM Object action](/images/posts-2020/5ATk99aPW.png)
+![Get VM Object action](5ATk99aPW.png)
The script for this task is fairly straightforward:
```js
@@ -93,7 +93,7 @@ vm = vms[0]
```
I'll add another scriptable task item to the workflow to actually apply the notes to the VM - I'll call it `Set Notes`, and it will take both `vm (VC:VirtualMachine)` and `inputProperties (Properties)` as its inputs.
-![Set Notes action](/images/posts-2020/w24V6YVOR.png)
+![Set Notes action](w24V6YVOR.png)
The first part of the script creates a new VM config spec, inserts the description into the spec, and then reconfigures the selected VM with the new spec.
@@ -118,17 +118,17 @@ System.getModule("com.vmware.library.vc.customattribute").setOrCreateCustomField
### Extensibility subscription
Now I need to return to Cloud Assembly and create a new extensibility subscription that will call this new workflow at the appropriate time. I'll call it "VM Post-Provisioning" and attach it to the "Compute Post Provision" topic.
-![Creating the new subscription](/images/posts-2020/PmhVOWJsUn.png)
+![Creating the new subscription](PmhVOWJsUn.png)
And then I'll link it to my new workflow:
-![Selecting the workflow](/images/posts-2020/cEbWSOg00.png)
+![Selecting the workflow](cEbWSOg00.png)
### Testing
And then back to Service Broker to request a VM and see if it works:
-![Test request](/images/posts-2020/Lq9DBCK_Y.png)
+![Test request](Lq9DBCK_Y.png)
It worked!
-![New VM with notes](/images/posts-2020/-Fuvz-GmF.png)
+![New VM with notes](-Fuvz-GmF.png)
In the future, I'll be exploring more features that I can add on to this "VM Post-Provisioning" workflow like creating static DNS records as needed.
diff --git a/static/images/posts-2020/unhgNySSzz.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/unhgNySSzz.png
similarity index 100%
rename from static/images/posts-2020/unhgNySSzz.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/unhgNySSzz.png
diff --git a/static/images/posts-2020/w24V6YVOR.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/w24V6YVOR.png
similarity index 100%
rename from static/images/posts-2020/w24V6YVOR.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/w24V6YVOR.png
diff --git a/static/images/posts-2020/zHrp6GPcP.png b/content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/zHrp6GPcP.png
similarity index 100%
rename from static/images/posts-2020/zHrp6GPcP.png
rename to content/posts/2021/06/adding-vm-notes-and-custom-attributes-with-vra8/zHrp6GPcP.png
diff --git a/static/images/posts-2020/-9apQIUci.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/-9apQIUci.png
similarity index 100%
rename from static/images/posts-2020/-9apQIUci.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/-9apQIUci.png
diff --git a/static/images/posts-2020/2fbKJc5Y6.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/2fbKJc5Y6.png
similarity index 100%
rename from static/images/posts-2020/2fbKJc5Y6.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/2fbKJc5Y6.png
diff --git a/static/images/posts-2020/2xe34VJym.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/2xe34VJym.png
similarity index 100%
rename from static/images/posts-2020/2xe34VJym.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/2xe34VJym.png
diff --git a/static/images/posts-2020/5PD1H7b1O.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/5PD1H7b1O.png
similarity index 100%
rename from static/images/posts-2020/5PD1H7b1O.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/5PD1H7b1O.png
diff --git a/static/images/posts-2020/6IRPHhr6u.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/6IRPHhr6u.png
similarity index 100%
rename from static/images/posts-2020/6IRPHhr6u.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/6IRPHhr6u.png
diff --git a/static/images/posts-2020/8XAB60aqk.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/8XAB60aqk.png
similarity index 100%
rename from static/images/posts-2020/8XAB60aqk.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/8XAB60aqk.png
diff --git a/static/images/posts-2020/GHVqVOTAE.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/GHVqVOTAE.png
similarity index 100%
rename from static/images/posts-2020/GHVqVOTAE.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/GHVqVOTAE.png
diff --git a/static/images/posts-2020/Ki0z1C3g.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/Ki0z1C3g.png
similarity index 100%
rename from static/images/posts-2020/Ki0z1C3g.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/Ki0z1C3g.png
diff --git a/static/images/posts-2020/OSbsiOw8E.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/OSbsiOw8E.png
similarity index 100%
rename from static/images/posts-2020/OSbsiOw8E.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/OSbsiOw8E.png
diff --git a/static/images/posts-2020/dMPHvLHkH.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/dMPHvLHkH.png
similarity index 100%
rename from static/images/posts-2020/dMPHvLHkH.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/dMPHvLHkH.png
diff --git a/static/images/posts-2020/dZkZUIFum.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/dZkZUIFum.png
similarity index 100%
rename from static/images/posts-2020/dZkZUIFum.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/dZkZUIFum.png
diff --git a/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier.md b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/index.md
similarity index 96%
rename from content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier.md
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/index.md
index cf4ee2d..131d72d 100644
--- a/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier.md
+++ b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/index.md
@@ -1,8 +1,8 @@
---
series: Projects
date: "2021-06-28T00:00:00Z"
-thumbnail: images/posts-2020/2xe34VJym.png
-usePageBundles: false
+thumbnail: 2xe34VJym.png
+usePageBundles: true
lastmod: "2021-09-17"
tags:
- docker
@@ -19,21 +19,21 @@ As usual, it took quite a bit of fumbling about before I got everything working
### Instance creation
Getting a VM spun up on Oracle Cloud was a pretty simple process. I logged into my account, navigated to *Menu -> Compute -> Instances*, and clicked on the big blue **Create Instance** button.
-![Create Instance](/images/posts-2020/8XAB60aqk.png)
+![Create Instance](8XAB60aqk.png)
I'll be hosting this for my `bowdre.net` domain, so I start by naming the instance accordingly: `matrix.bowdre.net`. Naming it isn't strictly necessary, but it does help with keeping track of things. The instance defaults to using an Oracle Linux image. I'd rather use an Ubuntu one for this, simply because I was able to find more documentation on getting Synapse going on Debian-based systems. So I hit the **Edit** button next to *Image and Shape*, select the **Change Image** option, pick **Canonical Ubuntu** from the list of available images, and finally click **Select Image** to confirm my choice.
-![Image Selection](/images/posts-2020/OSbsiOw8E.png)
+![Image Selection](OSbsiOw8E.png)
This will be an Ubuntu 20.04 image running on a `VM.Standard.E2.1.Micro` instance, which gets a single AMD EPYC 7551 CPU with 2.0GHz base frequency and 1GB of RAM. It's not much, but it's free - and it should do just fine for this project.
I can leave the rest of the options as their defaults, making sure that the instance will be allotted a public IPv4 address.
-![Other default selections](/images/posts-2020/Ki0z1C3g.png)
+![Other default selections](Ki0z1C3g.png)
Scrolling down a bit to the *Add SSH Keys* section, I leave the default **Generate a key pair for me** option selected, and click the very-important **Save Private Key** button to download the private key to my computer so that I'll be able to connect to the instance via SSH.
-![Download Private Key](/images/posts-2020/dZkZUIFum.png)
+![Download Private Key](dZkZUIFum.png)
Now I can finally click the blue **Create Instance** button at the bottom of the screen, and just wait a few minutes for it to start up. Once the status shows a big green "Running" square, I'm ready to connect! I'll copy the listed public IP and make a note of the default username (`ubuntu`). I can then plug the IP, username, and the private key I downloaded earlier into my SSH client (the [Secure Shell extension](https://chrome.google.com/webstore/detail/secure-shell/iodihamcpbpeioajjeobimgagajmlibd) for Google Chrome since I'm doing this from my Pixelbook), and log in to my new VM in The Cloud.
-![Logged in!](/images/posts-2020/5PD1H7b1O.png)
+![Logged in!](5PD1H7b1O.png)
### DNS setup
According to [Oracle's docs](https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/managingpublicIPs.htm), the public IP assigned to my instance is mine until I terminate the instance. It should even remain assigned if I stop or restart the instance, just as long as I don't delete the virtual NIC attached to it. So I'll skip the [`ddclient`-based dynamic DNS configuration I've used in the past](/bitwarden-password-manager-self-hosted-on-free-google-cloud-instance#configure-dynamic-dns) and instead go straight to my registrar's DNS management portal and create a new `A` record for `matrix.bowdre.net` with the instance's public IP.
@@ -55,19 +55,19 @@ But first, I need to make sure that the traffic reaches the server to begin with
Synapse listens on port `8008` for connections from messaging clients, and typically uses port `8448` for federation traffic from other Matrix servers. Rather than expose those ports directly, I'm going to put Synapse behind a reverse proxy on HTTPS port `443`. I'll also need to allow inbound traffic HTTP port `80` for ACME certificate challenges. I've got two firewalls to contend with: the Oracle Cloud one which blocks traffic from getting into my virtual cloud network, and the host firewall running inside the VM.
I'll tackle the cloud firewall first. From the page showing my instance details, I click on the subnet listed under the *Primary VNIC* heading:
-![Click on subnet](/images/posts-2020/lBjINolYq.png)
+![Click on subnet](lBjINolYq.png)
I then look in the *Security Lists* section and click on the Default Security List:
-![Click on default security list](/images/posts-2020/nnQ7aQrpm.png)
+![Click on default security list](nnQ7aQrpm.png)
The *Ingress Rules* section lists the existing inbound firewall exceptions, which by default is basically just SSH. I click on **Add Ingress Rules** to create a new one.
-![Ingress rules](/images/posts-2020/dMPHvLHkH.png)
+![Ingress rules](dMPHvLHkH.png)
I want this to apply to traffic from any source IP so I enter the CIDR `0.0.0.0/0`, and I enter the *Destination Port Range* as `80,443`. I also add a brief description and click **Add Ingress Rules**.
-![Adding an ingress rule](/images/posts-2020/2fbKJc5Y6.png)
+![Adding an ingress rule](2fbKJc5Y6.png)
Success! My new ingress rules appear at the bottom of the list.
-![New rules added](/images/posts-2020/s5Y0rycng.png)
+![New rules added](s5Y0rycng.png)
That gets traffic from the internet and to my instance, but the OS is still going to drop the traffic at its own firewall. I'll need to work with `iptables` to change that. (You typically use `ufw` to manage firewalls more easily on Ubuntu, but it isn't included on this minimal image and seemed to butt heads with `iptables` when I tried adding it. I eventually decided it was better to just interact with `iptables` directly). I'll start by listing the existing rules on the `INPUT` chain:
```
@@ -246,10 +246,10 @@ Nmap done: 1 IP address (1 host up) scanned in 5.29 seconds
```
Browsing to `https://matrix.bowdre.net` shows a blank page - but a valid and trusted certificate that I did absolutely nothing to configure!
-![Valid cert!](/images/posts-2020/GHVqVOTAE.png)
+![Valid cert!](GHVqVOTAE.png)
The `.well-known` URL also returns the expected JSON:
-![.well-known](/images/posts-2020/6IRPHhr6u.png)
+![.well-known](6IRPHhr6u.png)
And trying to hit anything else at `https://bowdre.net` brings me right back here.
@@ -384,10 +384,10 @@ CONTAINER ID IMAGE COMMAND CREATED STATUS
### Testing
And I can point my browser to `https://matrix.bowdre.net/_matrix/static/` and see the Matrix landing page:
-![Synapse is running!](/images/posts-2020/-9apQIUci.png)
+![Synapse is running!](-9apQIUci.png)
Before I start trying to connect with a client, I'm going to plug the server address in to the [Matrix Federation Tester](https://federationtester.matrix.org/) to make sure that other servers will be able to talk to it without any problems:
-![Good to go](/images/posts-2020/xqOt3SydX.png)
+![Good to go](xqOt3SydX.png)
And I can view the JSON report at the bottom of the page to confirm that it's correctly pulling my `.well-known` delegation:
```json
@@ -399,7 +399,7 @@ And I can view the JSON report at the bottom of the page to confirm that it's co
```
Now I can fire up my [Matrix client of choice](https://element.io/get-started)), specify my homeserver using its full FQDN, and [register](https://app.element.io/#/register) a new user account:
-![image.png](/images/posts-2020/2xe34VJym.png)
+![image.png](2xe34VJym.png)
(Once my account gets created, I go back to edit `/opt/matrix/synapse/data/homeserver.yaml` again and set `enable_registration: false`, then fire a `docker-compose restart` command to restart the Synapse container.)
diff --git a/static/images/posts-2020/lBjINolYq.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/lBjINolYq.png
similarity index 100%
rename from static/images/posts-2020/lBjINolYq.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/lBjINolYq.png
diff --git a/static/images/posts-2020/nnQ7aQrpm.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/nnQ7aQrpm.png
similarity index 100%
rename from static/images/posts-2020/nnQ7aQrpm.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/nnQ7aQrpm.png
diff --git a/static/images/posts-2020/s5Y0rycng.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/s5Y0rycng.png
similarity index 100%
rename from static/images/posts-2020/s5Y0rycng.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/s5Y0rycng.png
diff --git a/static/images/posts-2020/xqOt3SydX.png b/content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/xqOt3SydX.png
similarity index 100%
rename from static/images/posts-2020/xqOt3SydX.png
rename to content/posts/2021/06/federated-matrix-server-synapse-on-oracle-clouds-free-tier/xqOt3SydX.png
diff --git a/static/images/posts-2020/0ZYcORuiU.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/0ZYcORuiU.png
similarity index 100%
rename from static/images/posts-2020/0ZYcORuiU.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/0ZYcORuiU.png
diff --git a/static/images/posts-2021/07/20210721-adding-ad-integration.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-adding-ad-integration.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-adding-ad-integration.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-adding-ad-integration.png
diff --git a/static/images/posts-2021/07/20210721-adding-project-to-integration.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-adding-project-to-integration.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-adding-project-to-integration.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-adding-project-to-integration.png
diff --git a/static/images/posts-2021/07/20210721-successful-ad_machine.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-successful-ad_machine.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-successful-ad_machine.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-successful-ad_machine.png
diff --git a/static/images/posts-2021/07/20210721-test-deploy-request.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-test-deploy-request.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-test-deploy-request.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-test-deploy-request.png
diff --git a/static/images/posts-2021/07/20210721-vm-joined-2.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-joined-2.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-vm-joined-2.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-joined-2.png
diff --git a/static/images/posts-2021/07/20210721-vm-joined.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-joined.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-vm-joined.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-joined.png
diff --git a/static/images/posts-2021/07/20210721-vm-not-joined.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-not-joined.png
similarity index 100%
rename from static/images/posts-2021/07/20210721-vm-not-joined.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/20210721-vm-not-joined.png
diff --git a/static/images/posts-2020/AzAna5Dda.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/AzAna5Dda.png
similarity index 100%
rename from static/images/posts-2020/AzAna5Dda.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/AzAna5Dda.png
diff --git a/static/images/posts-2020/HHiShFlnT.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/HHiShFlnT.png
similarity index 100%
rename from static/images/posts-2020/HHiShFlnT.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/HHiShFlnT.png
diff --git a/static/images/posts-2020/Zz0D9wjYr.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/Zz0D9wjYr.png
similarity index 100%
rename from static/images/posts-2020/Zz0D9wjYr.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/Zz0D9wjYr.png
diff --git a/static/images/posts-2020/gOTzVawJE.png b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/gOTzVawJE.png
similarity index 100%
rename from static/images/posts-2020/gOTzVawJE.png
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/gOTzVawJE.png
diff --git a/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8.md b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/index.md
similarity index 91%
rename from content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8.md
rename to content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/index.md
index d3ce965..c0179cc 100644
--- a/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8.md
+++ b/content/posts/2021/07/joining-vms-to-active-directory-in-site-specific-ous-with-vra8/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-07-21T00:00:00Z"
-thumbnail: images/posts-2021/07/20210721-successful-ad_machine.png
-usePageBundles: false
+thumbnail: 20210721-successful-ad_machine.png
+usePageBundles: true
tags:
- vmware
- vra
@@ -25,25 +25,25 @@ I didn't find a lot of documentation on how make this work, though, so here's ho
### Adding the AD integration
First things first: connecting vRA to AD. I do this by opening the Cloud Assembly interface, navigating to **Infrastructure > Connections > Integrations**, and clicking the **Add Integration** button. I'm then prompted to choose the integration type so I select the **Active Directory** one, and then I fill in the required information: a name (`Lab AD` seems appropriate), my domain controller as the LDAP host (`ldap://win01.lab.bowdre.net:389`), credentials for an account with sufficient privileges to create and delete computer objects (`lab\vra`), and finally the base DN to be used for the LDAP connection (`DC=lab,DC=bowdre,DC=net`).
-![Creating the new AD integration](/images/posts-2021/07/20210721-adding-ad-integration.png)
+![Creating the new AD integration](20210721-adding-ad-integration.png)
Clicking the **Validate** button quickly confirms that I've entered the information correctly, and then I can click **Add** to save my work.
I'll then need to associate the integration with a project by opening the new integration, navigating to the **Projects** tab, and clicking **Add Project**. Now I select the project name from the dropdown, enter a valid relative OU (`OU=LAB`), and enable the options to let me override the relative OU and optionally skip AD actions from the cloud template.
-![Project options for the AD integration](/images/posts-2021/07/20210721-adding-project-to-integration.png)
+![Project options for the AD integration](20210721-adding-project-to-integration.png)
### Customization specs
As mentioned above, I'll leverage the customization specs in vCenter to handle the actual joining of a computer to the domain. I maintain two specs for Windows deployments (one to join the domain and one to stay on the workgroup), and I can let the vRA cloud template decide which should be applied to a given deployment.
First, the workgroup spec, appropriately called `vra-win-workgroup`:
-![Workgroup spec](/images/posts-2020/AzAna5Dda.png)
+![Workgroup spec](AzAna5Dda.png)
It's about as basic as can be, including using DHCP for the network configuration (which doesn't really matter since the VM will eventually get a [static IP assigned from {php}IPAM](integrating-phpipam-with-vrealize-automation-8)).
`vra-win-domain` is basically the same, with one difference:
-![Domain spec](/images/posts-2020/0ZYcORuiU.png)
+![Domain spec](0ZYcORuiU.png)
Now to reference these specs from a cloud template...
@@ -195,34 +195,34 @@ resources:
```
The last thing I need to do before leaving the Cloud Assembly interface is smash that **Version** button at the bottom of the cloud template editor so that the changes will be visible to Service Broker:
-![New version](/images/posts-2020/gOTzVawJE.png)
+![New version](gOTzVawJE.png)
### Service Broker custom form updates
... and the *first* thing to do after entering the Service Broker UI is to navigate to **Content Sources**, click on my Lab content source, and then click **Save & Import** to bring in the new version. I can then go to **Content**, click the little three-dot menu icon next to my `WindowsDemo` cloud template, and pick the **Customize form** option.
This bit will be pretty quick. I just need to look for the new `Join to AD domain` element on the left:
-![New element on left](/images/posts-2020/Zz0D9wjYr.png)
+![New element on left](Zz0D9wjYr.png)
And drag-and-drop it onto the canvas in the middle. I'll stick it directly after the `Network` field:
-![New element on the canvas](/images/posts-2020/HHiShFlnT.png)
+![New element on the canvas](HHiShFlnT.png)
I don't need to do anything else here since I'm not trying to do any fancy logic or anything, so I'll just hit **Save** and move on to...
### Testing
Now to submit the request through Service Broker to see if this actually works:
-![Submitting the request](/images/posts-2021/07/20210721-test-deploy-request.png)
+![Submitting the request](20210721-test-deploy-request.png)
After a few minutes, I can go into Cloud Assembly and navigate to **Extensibility > Activity > Actions Runs** and look at the **Integration Runs** to see if the `ad_machine` action has completed yet.
-![Successful ad_machine action](/images/posts-2021/07/20210721-successful-ad_machine.png)
+![Successful ad_machine action](20210721-successful-ad_machine.png)
Looking good! And once the deployment completes, I can look at the VM in vCenter to see that it has registered a fully-qualified DNS name since it was automatically joined to the domain:
-![Domain-joined VM](/images/posts-2021/07/20210721-vm-joined.png)
+![Domain-joined VM](20210721-vm-joined.png)
I can also repeat the test for a VM deployed to the `DRE` site just to confirm that it gets correctly placed in that site's OU:
-![Another domain-joined VM](/images/posts-2021/07/20210721-vm-joined-2.png)
+![Another domain-joined VM](20210721-vm-joined-2.png)
And I'll fire off another deployment with the `adJoin` box *unchecked* to test that I can also skip the AD configuration completely:
-![VM not joined to the domain](/images/posts-2021/07/20210721-vm-not-joined.png)
+![VM not joined to the domain](20210721-vm-not-joined.png)
### Conclusion
Confession time: I had actually started writing this posts weeks ago. At that point, my efforts to bend the built-in AD integration to my will had been fairly unsuccessful, so I was instead working on a custom vRO workflow to accomplish the same basic thing. I circled back to try the AD integration again after upgrading the vRA environment to the latest 8.4.2 release, and found that it actually works quite well now. So I happily scrapped my ~50 lines of messy vRO JavaScript in favor of *just three lines* of YAML in the cloud template.
diff --git a/static/images/posts-2021/07/20210724-new-series-link.png b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-new-series-link.png
similarity index 100%
rename from static/images/posts-2021/07/20210724-new-series-link.png
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-new-series-link.png
diff --git a/static/images/posts-2021/07/20210724-old-category-link.png b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-old-category-link.png
similarity index 100%
rename from static/images/posts-2021/07/20210724-old-category-link.png
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-old-category-link.png
diff --git a/static/images/posts-2021/07/20210724-posts-by-category.png b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-posts-by-category.png
similarity index 100%
rename from static/images/posts-2021/07/20210724-posts-by-category.png
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-posts-by-category.png
diff --git a/static/images/posts-2021/07/20210724-series-navigation.png b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-series-navigation.png
similarity index 100%
rename from static/images/posts-2021/07/20210724-series-navigation.png
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-series-navigation.png
diff --git a/static/images/posts-2021/07/20210724-vra8-series.png b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-vra8-series.png
similarity index 100%
rename from static/images/posts-2021/07/20210724-vra8-series.png
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/20210724-vra8-series.png
diff --git a/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages.md b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/index.md
similarity index 96%
rename from content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages.md
rename to content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/index.md
index acfc55a..77d2dff 100644
--- a/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages.md
+++ b/content/posts/2021/07/recreating-hashnode-series-categories-in-jekyll-on-github-pages/index.md
@@ -1,8 +1,8 @@
---
series: Tips
date: "2021-07-24T16:46:00Z"
-thumbnail: images/posts-2021/07/20210724-series-navigation.png
-usePageBundles: false
+thumbnail: 20210724-series-navigation.png
+usePageBundles: true
tags:
- meta
- jekyll
@@ -15,7 +15,7 @@ I quickly realized that if I were hosting this pretty much anywhere *other* than
### Reviewing the theme-provided option
The Jekyll theme I'm using ([Minimal Mistakes](https://github.com/mmistakes/minimal-mistakes)) comes with [built-in support](https://mmistakes.github.io/mm-github-pages-starter/categories/) for a [category archive page](/series), which (like the [tags page](/tags)) displays all the categorized posts on a single page. Links at the top will let you jump to an appropriate anchor to start viewing the selected category, but it's not really an elegant way to display a single category.
-![Posts by category](/images/posts-2021/07/20210724-posts-by-category.png)
+![Posts by category](20210724-posts-by-category.png)
It's a start, though, so I took a few minutes to check out how it's being generated. The category archive page lives at [`_pages/category-archive.md`](https://raw.githubusercontent.com/mmistakes/mm-github-pages-starter/master/_pages/category-archive.md):
```markdown
@@ -151,7 +151,7 @@ header:
You can see that this page is referencing the series layout I just created, and it's going to live at `http://localhost/series/vra8` - precisely where this series was on Hashnode. I've tagged it with the category I want to feature on this page, and specified that the posts will be sorted in reverse order so that anyone reading through the series will start at the beginning (I hear it's a very good place to start). I also added a teaser image which will be displayed when I link to the series from elsewhere. And I included a quick little italicized blurb to tell readers what the series is about.
Check it out [here](/series/vra8):
-![vRA8 series](/images/posts-2021/07/20210724-vra8-series.png)
+![vRA8 series](20210724-vra8-series.png)
The other series pages will be basically the same, just without the reverse sort directive. Here's `_pages/series-tips.md`:
```markdown
@@ -193,7 +193,7 @@ author_profile: true
### Fixing category links in posts
The bottom of each post has a section which lists the tags and categories to which it belongs. Right now, those are still pointing to the category archive page (`/series/#vra8`) instead of the series feature pages I created (`/series/vra8`).
-![Old category link](/images/posts-2021/07/20210724-old-category-link.png)
+![Old category link](20210724-old-category-link.png)
That *works* but I'd rather it reference the fancy new pages I created. Tracking down where to make that change was a bit of a journey.
@@ -258,7 +258,7 @@ To sell the series illusion even further, I can pop into [`_data/ui-text.yml`](h
date_label : "Updated:"
comments_label : "Leave a comment"
```
-![Updated series link](/images/posts-2021/07/20210724-new-series-link.png)
+![Updated series link](20210724-new-series-link.png)
Much better!
@@ -281,6 +281,6 @@ main:
```
### All done!
-![Slick series navigation!](/images/posts-2021/07/20210724-series-navigation.png)
+![Slick series navigation!](20210724-series-navigation.png)
I set out to recreate the series setup that I had over at Hashnode, and I think I've accomplished that. More importantly, I've learned quite a bit more about how Jekyll works, and I'm already plotting further tweaks. For now, though, I think this is ready for a `git push`!
\ No newline at end of file
diff --git a/content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files.md b/content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files/index.md
similarity index 97%
rename from content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files.md
rename to content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files/index.md
index 502b450..5d6174e 100644
--- a/content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files.md
+++ b/content/posts/2021/07/script-to-update-image-embed-links-in-markdown-files/index.md
@@ -1,7 +1,7 @@
---
series: Scripts
date: "2021-07-19T16:03:30Z"
-usePageBundles: false
+usePageBundles: true
tags:
- linux
- shell
@@ -57,7 +57,7 @@ And the image embeds in the local copy of my posts now all look like this:
```markdown
-![Clever image title](/images/posts-2020/lhTnVwCO3.png)
+![Clever image title](lhTnVwCO3.png)
```
diff --git a/static/images/posts-2021/07/20210720-jekyll.png b/content/posts/2021/07/virtually-potato-migrated-to-github-pages/20210720-jekyll.png
similarity index 100%
rename from static/images/posts-2021/07/20210720-jekyll.png
rename to content/posts/2021/07/virtually-potato-migrated-to-github-pages/20210720-jekyll.png
diff --git a/static/images/posts-2021/07/20210720-party.gif b/content/posts/2021/07/virtually-potato-migrated-to-github-pages/20210720-party.gif
similarity index 100%
rename from static/images/posts-2021/07/20210720-party.gif
rename to content/posts/2021/07/virtually-potato-migrated-to-github-pages/20210720-party.gif
diff --git a/content/posts/2021/07/virtually-potato-migrated-to-github-pages.md b/content/posts/2021/07/virtually-potato-migrated-to-github-pages/index.md
similarity index 96%
rename from content/posts/2021/07/virtually-potato-migrated-to-github-pages.md
rename to content/posts/2021/07/virtually-potato-migrated-to-github-pages/index.md
index b3b8c6f..d52966d 100644
--- a/content/posts/2021/07/virtually-potato-migrated-to-github-pages.md
+++ b/content/posts/2021/07/virtually-potato-migrated-to-github-pages/index.md
@@ -1,7 +1,7 @@
---
date: "2021-07-20T22:20:00Z"
-thumbnail: images/posts-2021/07/20210720-jekyll.png
-usePageBundles: false
+thumbnail: 20210720-jekyll.png
+usePageBundles: true
tags:
- linux
- meta
@@ -13,7 +13,7 @@ title: Virtually Potato migrated to GitHub Pages!
After a bit less than a year of hosting my little technical blog with [Hashnode](https://hashnode.com), I spent a few days [migrating the content](/script-to-update-image-embed-links-in-markdown-files) over to a new format hosted with [GitHub Pages](https://pages.github.com/).
-![Party!](/images/posts-2021/07/20210720-party.gif)
+![Party!](20210720-party.gif)
### So long, Hashnode
Hashnode served me well for the most part, but it was never really a great fit for me. Hashnode's focus is on developer content, and I'm not really a developer; I'm a sysadmin who occasionally develops solutions to solve my needs, but the code is never the end goal for me. As a result, I didn't spend much time in the (large and extremely active) community associated with Hashnode. It's a perfectly adequate blogging platform apart from the community, but it's really built to prop up that community aspect and I found that to be a bit limiting - particularly once Hashnode stopped letting you create tags to be used within your blog and instead only allowed you to choose from [the tags](https://hashnode.com/tags) already popular in the community. There are hundreds of tags for different coding languages, but not any that would cover the infrastructure virtualization or other technical projects that I tend to write about.
@@ -66,7 +66,7 @@ LiveReload address: http://0.0.0.0:35729
```
And there it is!
-![Jekyll running locally on my Chromebook](/images/posts-2021/07/20210720-jekyll.png)
+![Jekyll running locally on my Chromebook](20210720-jekyll.png)
### `git push` time
Alright that's enough rambling for now. I'm very happy with this new setup, particularly with the automatically-generated Table of Contents to help folks navigate some of my longer posts. (I can't believe I was having to piece those together manually in this blog's previous iteration!)
diff --git a/static/images/posts-2021/08/20210803_new_template_version.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210803_new_template_version.png
similarity index 100%
rename from static/images/posts-2021/08/20210803_new_template_version.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210803_new_template_version.png
diff --git a/static/images/posts-2021/08/20210803_updating_custom_form.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210803_updating_custom_form.png
similarity index 100%
rename from static/images/posts-2021/08/20210803_updating_custom_form.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210803_updating_custom_form.png
diff --git a/static/images/posts-2021/08/20210809_creating_bound_variable.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_creating_bound_variable.png
similarity index 100%
rename from static/images/posts-2021/08/20210809_creating_bound_variable.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_creating_bound_variable.png
diff --git a/static/images/posts-2021/08/20210809_task_inputs.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_task_inputs.png
similarity index 100%
rename from static/images/posts-2021/08/20210809_task_inputs.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_task_inputs.png
diff --git a/static/images/posts-2021/08/20210809_variables_added.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_variables_added.png
similarity index 100%
rename from static/images/posts-2021/08/20210809_variables_added.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210809_variables_added.png
diff --git a/static/images/posts-2021/08/20210811_inputproperties.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210811_inputproperties.png
similarity index 100%
rename from static/images/posts-2021/08/20210811_inputproperties.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210811_inputproperties.png
diff --git a/static/images/posts-2021/08/20210811_new_workflow.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210811_new_workflow.png
similarity index 100%
rename from static/images/posts-2021/08/20210811_new_workflow.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210811_new_workflow.png
diff --git a/static/images/posts-2021/08/20210812_delete_dns_record_task.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_delete_dns_record_task.png
similarity index 100%
rename from static/images/posts-2021/08/20210812_delete_dns_record_task.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_delete_dns_record_task.png
diff --git a/static/images/posts-2021/08/20210812_deprovision_variables.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_deprovision_variables.png
similarity index 100%
rename from static/images/posts-2021/08/20210812_deprovision_variables.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_deprovision_variables.png
diff --git a/static/images/posts-2021/08/20210812_deprovisioning_subscription.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_deprovisioning_subscription.png
similarity index 100%
rename from static/images/posts-2021/08/20210812_deprovisioning_subscription.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_deprovisioning_subscription.png
diff --git a/static/images/posts-2021/08/20210812_test_deploy_request.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_test_deploy_request.png
similarity index 100%
rename from static/images/posts-2021/08/20210812_test_deploy_request.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210812_test_deploy_request.png
diff --git a/static/images/posts-2021/08/20210813_delete_deployment.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_delete_deployment.png
similarity index 100%
rename from static/images/posts-2021/08/20210813_delete_deployment.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_delete_deployment.png
diff --git a/static/images/posts-2021/08/20210813_workflow_deletion.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_workflow_deletion.png
similarity index 100%
rename from static/images/posts-2021/08/20210813_workflow_deletion.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_workflow_deletion.png
diff --git a/static/images/posts-2021/08/20210813_workflow_success.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_workflow_success.png
similarity index 100%
rename from static/images/posts-2021/08/20210813_workflow_success.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/20210813_workflow_success.png
diff --git a/static/images/posts-2020/Go3D-gemP.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/Go3D-gemP.png
similarity index 100%
rename from static/images/posts-2020/Go3D-gemP.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/Go3D-gemP.png
diff --git a/static/images/posts-2020/a5gtUrQbc.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/a5gtUrQbc.png
similarity index 100%
rename from static/images/posts-2020/a5gtUrQbc.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/a5gtUrQbc.png
diff --git a/static/images/posts-2020/fJswso9KH.png b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/fJswso9KH.png
similarity index 100%
rename from static/images/posts-2020/fJswso9KH.png
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/fJswso9KH.png
diff --git a/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation.md b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/index.md
similarity index 93%
rename from content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation.md
rename to content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/index.md
index c60d58f..6d473e8 100644
--- a/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation.md
+++ b/content/posts/2021/08/creating-static-records-in-microsoft-dns-from-vrealize-automation/index.md
@@ -1,7 +1,8 @@
---
series: vRA8
date: "2021-08-13T00:00:00Z"
-usePageBundles: false
+usePageBundles: true
+thumbnail: 20210813_workflow_success.png
tags:
- vmware
- vra
@@ -228,13 +229,13 @@ resources:
- tag: 'net:${input.network}'
```
I save the template, and then also hit the "Version" button to publish a new version to the catalog:
-![Releasing new version](/images/posts-2021/08/20210803_new_template_version.png)
+![Releasing new version](20210803_new_template_version.png)
#### Service Broker Custom Form
I switch over to the Service Broker UI to update the custom form - but first I stop off at **Content & Policies > Content Sources**, select my Content Source, and hit the **Save & Import** button to force a sync of the cloud templates. I can then move on to the **Content & Policies > Content** section, click the 3-dot menu next to my template name, and select the option to **Customize Form**.
I'll just drag the new Schema Element called `Create static DNS record` from the Request Inputs panel and on to the form canvas. I'll drop it right below the `Join to AD domain` field:
-![Adding the field to the form](/images/posts-2021/08/20210803_updating_custom_form.png)
+![Adding the field to the form](20210803_updating_custom_form.png)
And then I'll hit the **Save** button so that my efforts are preserved.
@@ -246,10 +247,10 @@ I will be adding the DNS action on to my existing "VM Post-Provisioning" workflo
#### Configuration Element
But first, I'm going to go to the **Assets > Configurations** section of the Orchestrator UI and create a new Configuration Element to store variables related to the SSH host and DNS configuration.
-![Create a new configuration](/images/posts-2020/Go3D-gemP.png)
+![Create a new configuration](Go3D-gemP.png)
I'll call it `dnsConfig` and put it in my `CustomProvisioning` folder.
-![Giving it a name](/images/posts-2020/fJswso9KH.png)
+![Giving it a name](fJswso9KH.png)
And then I create the following variables:
@@ -264,17 +265,17 @@ And then I create the following variables:
`sshHost` is my new `win02` server that I'm going to connect to via SSH, and `sshUser` and `sshPass` should explain themselves. The `dnsServer` array will tell the script which DNS servers to try to create the record on; this will just be a single server in my lab, but I'm going to construct the script to support multiple servers in case one isn't reachable. And `supported domains` will be used to restrict where I'll be creating records; again, that's just a single domain in my lab, but I'm building this solution to account for the possibility where a VM might need to be deployed on a domain where I can't create a static record in this way so I want it to fail elegantly.
Here's what the new configuration element looks like:
-![Variables defined](/images/posts-2020/a5gtUrQbc.png)
+![Variables defined](a5gtUrQbc.png)
#### Workflow to create records
I'll need to tell my workflow about the variables held in the `dnsConfig` Configuration Element I just created. I do that by opening the "VM Post-Provisioning" workflow in the vRO UI, clicking the **Edit** button, and then switching to the **Variables** tab. I create a variable for each member of `dnsConfig`, and enable the toggle to *Bind to configuration* so that I can select the corresponding item. It's important to make sure that the variable type exactly matches what's in the configuration element so that you'll be able to pick it!
-![Linking variable to config element](/images/posts-2021/08/20210809_creating_bound_variable.png)
+![Linking variable to config element](20210809_creating_bound_variable.png)
I repeat that for each of the remaining variables until all the members of `dnsConfig` are represented in the workflow:
-![Variables added](/images/posts-2021/08/20210809_variables_added.png)
+![Variables added](20210809_variables_added.png)
Now we're ready for the good part: inserting a new scriptable task into the workflow schema. I'll called it `Create DNS Record` and place it directly after the `Set Notes` task. For inputs, the task will take in `inputProperties (Properties)` as well as everything from that `dnsConfig` configuration element:
-![Task inputs](/images/posts-2021/08/20210809_task_inputs.png)
+![Task inputs](20210809_task_inputs.png)
And here's the JavaScript for the task:
```js
@@ -325,16 +326,16 @@ Now I can just save the workflow, and I'm done! - with this part. Of course, bei
#### Workflow to delete records
I haven't previously created any workflows that fire on deployment removal, so I'll create a new one and call it `VM Deprovisioning`:
-![New workflow](/images/posts-2021/08/20210811_new_workflow.png)
+![New workflow](20210811_new_workflow.png)
This workflow only needs a single input (`inputProperties (Properties)`) so it can receive information about the deployment from vRA:
-![Workflow input](/images/posts-2021/08/20210811_inputproperties.png)
+![Workflow input](20210811_inputproperties.png)
I'll also need to bind in the variables from the `dnsConfig` element as before:
-![Workflow variables](/images/posts-2021/08/20210812_deprovision_variables.png)
+![Workflow variables](20210812_deprovision_variables.png)
The schema will include a single scriptable task:
-![Delete DNS Record task](/images/posts-2021/08/20210812_delete_dns_record_task.png)
+![Delete DNS Record task](20210812_delete_dns_record_task.png)
And it's going to be *pretty damn similar* to the other one:
@@ -383,14 +384,14 @@ if (staticDns == "true" && supportedDomains.indexOf(dnsDomain) >= 0) {
```
Since this is a new workflow, I'll also need to head back to **Cloud Assembly > Extensibility > Subscriptions** and add a new subscription to call it when a deployment gets deleted. I'll call it "VM Deprovisioning", assign it to the "Compute Post Removal" Event Topic, and link it to my new "VM Deprovisioning" workflow. I *could* use the Condition option to filter this only for deployments which had a static DNS record created, but I'll later want to use this same workflow for other cleanup tasks so I'll just save it as is for now.
-![VM Deprovisioning subscription](/images/posts-2021/08/20210812_deprovisioning_subscription.png)
+![VM Deprovisioning subscription](20210812_deprovisioning_subscription.png)
### Testing
Now I can (finally) fire off a quick deployment to see if all this mess actually works:
-![Test deploy request](/images/posts-2021/08/20210812_test_deploy_request.png)
+![Test deploy request](20210812_test_deploy_request.png)
Once the deployment completes, I go back into vRO, find the most recent item in the **Workflow Runs** view, and click over to the **Logs** tab to see how I did:
-![Workflow success!](/images/posts-2021/08/20210813_workflow_success.png)
+![Workflow success!](20210813_workflow_success.png)
And I can run a quick query to make sure that name actually resolves:
```shell
@@ -401,10 +402,10 @@ And I can run a quick query to make sure that name actually resolves:
It works!
Now to test the cleanup. For that, I'll head back to Service Broker, navigate to the **Deployments** tab, find my deployment, click the little three-dot menu button, and select the **Delete** option:
-![Deleting the deployment](/images/posts-2021/08/20210813_delete_deployment.png)
+![Deleting the deployment](20210813_delete_deployment.png)
Again, I'll check the **Workflow Runs** in vRO to see that the deprovisioning task completed successfully:
-![VM Deprovisioning workflow](/images/posts-2021/08/20210813_workflow_deletion.png)
+![VM Deprovisioning workflow](20210813_workflow_deletion.png)
And I can `dig` a little more to make sure the name doesn't resolve anymore:
```shell
diff --git a/static/images/posts-2021/08/20210820_add_mapping_1.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_add_mapping_1.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_add_mapping_1.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_add_mapping_1.png
diff --git a/static/images/posts-2021/08/20210820_add_mapping_2.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_add_mapping_2.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_add_mapping_2.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_add_mapping_2.png
diff --git a/static/images/posts-2021/08/20210820_authorize_cloud_shell.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_authorize_cloud_shell.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_authorize_cloud_shell.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_authorize_cloud_shell.png
diff --git a/static/images/posts-2021/08/20210820_cloud_shell.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_cloud_shell.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_cloud_shell.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_cloud_shell.png
diff --git a/static/images/posts-2021/08/20210820_create_project.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_create_project.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_create_project.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_create_project.png
diff --git a/static/images/posts-2021/08/20210820_domain_mapping.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_domain_mapping.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_domain_mapping.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_domain_mapping.png
diff --git a/static/images/posts-2021/08/20210820_enable_sheets_api.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_enable_sheets_api.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_enable_sheets_api.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_enable_sheets_api.png
diff --git a/static/images/posts-2021/08/20210820_home_page.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_home_page.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_home_page.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_home_page.png
diff --git a/static/images/posts-2021/08/20210820_landing_page.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_landing_page.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_landing_page.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_landing_page.png
diff --git a/static/images/posts-2021/08/20210820_manage_custom_domain.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_manage_custom_domain.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_manage_custom_domain.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_manage_custom_domain.png
diff --git a/static/images/posts-2021/08/20210820_open_in_cloud_shell.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_open_in_cloud_shell.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_open_in_cloud_shell.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_open_in_cloud_shell.png
diff --git a/static/images/posts-2021/08/20210820_service_account.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_service_account.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_service_account.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_service_account.png
diff --git a/static/images/posts-2021/08/20210820_share_with_svc_account.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_share_with_svc_account.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_share_with_svc_account.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_share_with_svc_account.png
diff --git a/static/images/posts-2021/08/20210820_sheet.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_sheet.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_sheet.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_sheet.png
diff --git a/static/images/posts-2021/08/20210820_sheets_api_disabled.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_sheets_api_disabled.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_sheets_api_disabled.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_sheets_api_disabled.png
diff --git a/static/images/posts-2021/08/20210820_successful_redirect.png b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_successful_redirect.png
similarity index 100%
rename from static/images/posts-2021/08/20210820_successful_redirect.png
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/20210820_successful_redirect.png
diff --git a/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run.md b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/index.md
similarity index 82%
rename from content/posts/2021/08/free-serverless-url-shortener-google-cloud-run.md
rename to content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/index.md
index 593e5fb..aab2d7f 100644
--- a/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run.md
+++ b/content/posts/2021/08/free-serverless-url-shortener-google-cloud-run/index.md
@@ -1,7 +1,7 @@
---
series: Projects
date: "2021-08-20T00:00:00Z"
-usePageBundles: false
+usePageBundles: true
tags:
- gcp
- cloud
@@ -15,62 +15,62 @@ The Github instructions were pretty straight-forward but I did have to fumble th
### Shortcut mapping
Since the setup uses a simple Google Sheets document to map the shortcuts to the original long-form URLs, I started by going to [https://sheets.new](https://sheets.new) to create a new Sheet. I then just copied in the shorcuts and URLs I was already using in short.io. By the way, I learned on a previous attempt that this solution only works with lowercase shortcuts so I made sure to convert my `MixedCase` ones as I went.
-![Creating a new sheet](/images/posts-2021/08/20210820_sheet.png)
+![Creating a new sheet](20210820_sheet.png)
I then made a note of the Sheet ID from the URL; that's the bit that looks like `1SMeoyesCaGHRlYdGj9VyqD-qhXtab1jrcgHZ0irvNDs`. That will be needed later on.
### Create a new GCP project
I created a new project in my GCP account by going to [https://console.cloud.google.com/projectcreate](https://console.cloud.google.com/projectcreate) and entering a descriptive name.
-![Creating a new GCP project](/images/posts-2021/08/20210820_create_project.png)
+![Creating a new GCP project](20210820_create_project.png)
### Deploy to GCP
At this point, I was ready to actually kick off the deployment. Ahmet made this part exceptionally easy: just hit the **Run on Google Cloud** button from the [Github project page](https://github.com/ahmetb/sheets-url-shortener#setup). That opens up a Google Cloud Shell instance which prompts for authorization before it starts the deployment script.
-![Open in Cloud Shell prompt](/images/posts-2021/08/20210820_open_in_cloud_shell.png)
+![Open in Cloud Shell prompt](20210820_open_in_cloud_shell.png)
-![Authorize Cloud Shell prompt](/images/posts-2021/08/20210820_authorize_cloud_shell.png)
+![Authorize Cloud Shell prompt](20210820_authorize_cloud_shell.png)
The script prompted me to select a project and a region, and then asked for the Sheet ID that I copied earlier.
-![Cloud Shell deployment](/images/posts-2021/08/20210820_cloud_shell.png)
+![Cloud Shell deployment](20210820_cloud_shell.png)
### Grant access to the Sheet
In order for the Cloud Run service to be able to see the URL mappings in the Sheet I needed to share the Sheet with the service account. That service account is found by going to [https://console.cloud.google.com/run](https://console.cloud.google.com/run), clicking on the new `sheets-url-shortener` service, and then viewing the **Permissions** tab. I'm interested in the one that's `############-computer@developer.gserviceaccount.com`.
-![Finding the service account](/images/posts-2021/08/20210820_service_account.png)
+![Finding the service account](20210820_service_account.png)
I then went back to the Sheet, hit the big **Share** button at the top, and shared the Sheet to the service account with *Viewer* access.
-![Sharing to the service account](/images/posts-2021/08/20210820_share_with_svc_account.png)
+![Sharing to the service account](20210820_share_with_svc_account.png)
### Quick test
Back in GCP land, the details page for the `sheets-url-shortener` Cloud Run service shows a gross-looking URL near the top: `https://sheets-url-shortener-vrw7x6wdzq-uc.a.run.app`. That doesn't do much for *shortening* my links, but it'll do just fine for a quick test. First, I pointed my browser straight to that listed URL:
-![Testing the web server](/images/posts-2021/08/20210820_home_page.png)
+![Testing the web server](20210820_home_page.png)
This at least tells me that the web server portion is working. Now to see if I can redirect to my [project car posts on Polywork](https://john.bowdre.net/?badges%5B%5D=Car+Nerd):
-![Testing a redirect](/images/posts-2021/08/20210820_sheets_api_disabled.png)
+![Testing a redirect](20210820_sheets_api_disabled.png)
Hmm, not quite. Luckily the error tells me exactly what I need to do...
### Enable Sheets API
I just needed to visit `https://console.developers.google.com/apis/api/sheets.googleapis.com/overview?project=############` to enable the Google Sheets API.
-![Enabling Sheets API](/images/posts-2021/08/20210820_enable_sheets_api.png)
+![Enabling Sheets API](20210820_enable_sheets_api.png)
Once that's done, I can try my redirect again - and, after a brief moment, it successfully sends me on to Polywork!
-![Successful redirect](/images/posts-2021/08/20210820_successful_redirect.png)
+![Successful redirect](20210820_successful_redirect.png)
### Link custom domain
The whole point of this project is to *shorten* URLs, but I haven't done that yet. I'll want to link in my `go.bowdre.net` domain to use that in place of the rather unwieldy `https://sheets-url-shortener-vrw7x6wdzq-uc.a.run.app`. I do that by going back to the [Cloud Run console](https://console.cloud.google.com/run) and selecting the option at the top to **Manage Custom Domains**.
-![Manage custom domains](/images/posts-2021/08/20210820_manage_custom_domain.png)
+![Manage custom domains](20210820_manage_custom_domain.png)
I can then use the **Add Mapping** button, select my `sheets-url-shortener` service, choose one of my verified domains (which I *think* are already verified since they're registered through Google Domains with the same account), and then specify the desired subdomain.
-![Adding a domain mapping](/images/posts-2021/08/20210820_add_mapping_1.png)
+![Adding a domain mapping](20210820_add_mapping_1.png)
The wizard then tells me exactly what record I need to create/update with my domain host:
-![CNAME details](/images/posts-2021/08/20210820_add_mapping_2.png)
+![CNAME details](20210820_add_mapping_2.png)
It took a while for the domain mapping to go live once I've updated the record.
-![Processing mapping...](/images/posts-2021/08/20210820_domain_mapping.png)
+![Processing mapping...](20210820_domain_mapping.png)
### Final tests
Once it did finally update, I was able to hit `https://go.bowdre.net` to get the error/landing page, complete with a valid SSL cert:
-![Successful error!](/images/posts-2021/08/20210820_landing_page.png)
+![Successful error!](20210820_landing_page.png)
And testing [go.bowdre.net/ghia](https://go.bowdre.net/ghia) works as well!
diff --git a/content/posts/2021/08/notes-on-vra-ha-with-nsx-alb.md b/content/posts/2021/08/notes-on-vra-ha-with-nsx-alb/index.md
similarity index 99%
rename from content/posts/2021/08/notes-on-vra-ha-with-nsx-alb.md
rename to content/posts/2021/08/notes-on-vra-ha-with-nsx-alb/index.md
index 8a00584..b7bc240 100644
--- a/content/posts/2021/08/notes-on-vra-ha-with-nsx-alb.md
+++ b/content/posts/2021/08/notes-on-vra-ha-with-nsx-alb/index.md
@@ -1,7 +1,7 @@
---
series: vRA8
date: "2021-08-25T00:00:00Z"
-usePageBundles: false
+usePageBundles: true
tags:
- nsx
- cluster
diff --git a/static/images/posts-2021/08/20210831_administrators_placement.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_administrators_placement.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_administrators_placement.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_administrators_placement.png
diff --git a/static/images/posts-2021/08/20210831_administrators_visibility.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_administrators_visibility.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_administrators_visibility.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_administrators_visibility.png
diff --git a/static/images/posts-2021/08/20210831_cloud_assembly_new_version.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_cloud_assembly_new_version.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_cloud_assembly_new_version.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_cloud_assembly_new_version.png
diff --git a/static/images/posts-2021/08/20210831_system_drive_size_label.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_label.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_system_drive_size_label.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_label.png
diff --git a/static/images/posts-2021/08/20210831_system_drive_size_placement.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_placement.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_system_drive_size_placement.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_placement.png
diff --git a/static/images/posts-2021/08/20210831_system_drive_size_step.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_step.png
similarity index 100%
rename from static/images/posts-2021/08/20210831_system_drive_size_step.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210831_system_drive_size_step.png
diff --git a/static/images/posts-2021/09/20210901_action_constants.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_action_constants.png
similarity index 100%
rename from static/images/posts-2021/09/20210901_action_constants.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_action_constants.png
diff --git a/static/images/posts-2021/09/20210901_action_select_language.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_action_select_language.png
similarity index 100%
rename from static/images/posts-2021/09/20210901_action_select_language.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_action_select_language.png
diff --git a/static/images/posts-2021/09/20210901_create_action.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_create_action.png
similarity index 100%
rename from static/images/posts-2021/09/20210901_create_action.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_create_action.png
diff --git a/static/images/posts-2021/09/20210901_create_action_constant.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_create_action_constant.png
similarity index 100%
rename from static/images/posts-2021/09/20210901_create_action_constant.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_create_action_constant.png
diff --git a/static/images/posts-2021/09/20210901_map_constants_to_action.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_map_constants_to_action.png
similarity index 100%
rename from static/images/posts-2021/09/20210901_map_constants_to_action.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210901_map_constants_to_action.png
diff --git a/static/images/posts-2021/09/20210903_action_run_success.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_action_run_success.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_action_run_success.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_action_run_success.png
diff --git a/static/images/posts-2021/09/20210903_extensibility_subscriptions.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_extensibility_subscriptions.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_extensibility_subscriptions.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_extensibility_subscriptions.png
diff --git a/static/images/posts-2021/09/20210903_new_subscription_1.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_new_subscription_1.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_new_subscription_1.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_new_subscription_1.png
diff --git a/static/images/posts-2021/09/20210903_new_subscription_2.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_new_subscription_2.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_new_subscription_2.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_new_subscription_2.png
diff --git a/static/images/posts-2021/09/20210903_old_subscription_blocking.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_old_subscription_blocking.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_old_subscription_blocking.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_old_subscription_blocking.png
diff --git a/static/images/posts-2021/09/20210903_request.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_request.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_request.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_request.png
diff --git a/static/images/posts-2021/09/20210903_verify_disk_size.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_verify_disk_size.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_verify_disk_size.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_verify_disk_size.png
diff --git a/static/images/posts-2021/09/20210903_verify_local_admins.png b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_verify_local_admins.png
similarity index 100%
rename from static/images/posts-2021/09/20210903_verify_local_admins.png
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/20210903_verify_local_admins.png
diff --git a/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions.md b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/index.md
similarity index 93%
rename from content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions.md
rename to content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/index.md
index e596b33..c9e6a13 100644
--- a/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions.md
+++ b/content/posts/2021/09/run-scripts-in-guest-os-with-vra-abx-actions/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-09-03T00:00:00Z"
-thumbnail: images/posts-2021/09/20210903_action_run_success.png
-usePageBundles: false
+thumbnail: 20210903_action_run_success.png
+usePageBundles: true
lastmod: "2021-09-20"
tags:
- vra
@@ -246,25 +246,25 @@ resources:
```
With the template sorted, I need to assign it a new version and release it to the catalog so that the changes will be visible to Service Broker:
-![Releasing a new version of a Cloud Assembly template](/images/posts-2021/08/20210831_cloud_assembly_new_version.png)
+![Releasing a new version of a Cloud Assembly template](20210831_cloud_assembly_new_version.png)
#### Service Broker custom form
I now need to also make some updates to the custom form configuration in Service Broker so that the new fields will appear on the request form. First things first, though: after switching to the Service Broker UI, I go to **Content & Policies > Content Sources**, open the linked content source, and click the **Save & Import** button to force Service Broker to pull in the latest versions from Cloud Assembly.
I can then go to **Content**, click the three-dot menu next to my `WindowsDemo` item, and select the **Customize Form** option. I drag-and-drop the `System drive size` from the *Schema Elements* section onto the canvas, placing it directly below the existing `Resource Size` field.
-![Placing the system drive size field on the canvas](/images/posts-2021/08/20210831_system_drive_size_placement.png)
+![Placing the system drive size field on the canvas](20210831_system_drive_size_placement.png)
With the field selected, I use the **Properties** section to edit the label with a unit so that users will better understand what they're requesting.
-![System drive size label](/images/posts-2021/08/20210831_system_drive_size_label.png)
+![System drive size label](20210831_system_drive_size_label.png)
On the **Values** tab, I change the *Step* option to `5` so that we won't wind up with users requesting a disk size of `62.357 GB` or anything crazy like that.
-![System drive size step](/images/posts-2021/08/20210831_system_drive_size_step.png)
+![System drive size step](20210831_system_drive_size_step.png)
I'll drag-and-drop the `Administrators` field to the canvas, and put it right below the VM description:
-![Administrators field placement](/images/posts-2021/08/20210831_administrators_placement.png)
+![Administrators field placement](20210831_administrators_placement.png)
I only want this field to be visible if the VM is going to be joined to the AD domain, so I'll set the *Visibility* accordingly:
-![Administrators field visibility](/images/posts-2021/08/20210831_administrators_visibility.png)
+![Administrators field visibility](20210831_administrators_visibility.png)
That should be everything I need to add to the custom form so I'll be sure to hit that big **Save** button before moving on.
@@ -278,21 +278,21 @@ From the vRA Cloud Assembly interface, I'll navigate to **Extensibility > Librar
- `templatePassWinDomain`: for logging into VMs with the designated domain credentials.
I'll make sure to enable the *Encrypt the action constant value* toggle for each so they'll be protected.
-![Creating an action constant](/images/posts-2021/09/20210901_create_action_constant.png)
+![Creating an action constant](20210901_create_action_constant.png)
-![Created action constants](/images/posts-2021/09/20210901_action_constants.png)
+![Created action constants](20210901_action_constants.png)
Once all those constants are created I can move on to the meat of this little project:
#### ABX Action
I'll click back to **Extensibility > Library > Actions** and then **+ New Action**. I give the new action a clever title and description:
-![Create a new action](/images/posts-2021/09/20210901_create_action.png)]
+![Create a new action](20210901_create_action.png)]
I then hit the language dropdown near the top left and select to use `powershell` so that I can use those sweet, sweet PowerCLI cmdlets.
-![Language selection](/images/posts-2021/09/20210901_action_select_language.png)
+![Language selection](20210901_action_select_language.png)
And I'll pop over to the right side to map the Action Constants I created earlier so that I can reference them in the script I'm about to write:
-![Mapping constants in action](/images/posts-2021/09/20210901_map_constants_to_action.png)
+![Mapping constants in action](20210901_map_constants_to_action.png)
Now for The Script:
```powershell
@@ -467,27 +467,27 @@ It wouldn't be hard to customize the script to perform different actions (or eve
#### Event subscription
Before I can test the new action, I'll need to first add an extensibility subscription so that the ABX action will get called during the deployment. So I head to **Extensibility > Subscriptions** and click the **New Subscription** button.
-![Extensibility subscriptions](/images/posts-2021/09/20210903_extensibility_subscriptions.png)
+![Extensibility subscriptions](20210903_extensibility_subscriptions.png)
I'll be using this to call my new `configureGuest` action - so I'll name the subscription `Configure Guest`. I tie it to the `Compute Post Provision` event, and bind my action:
-![Creating the new subscription](/images/posts-2021/09/20210903_new_subscription_1.png)
+![Creating the new subscription](20210903_new_subscription_1.png)
I do have another subsciption on that event already, [`VM Post-Provisioning`](/adding-vm-notes-and-custom-attributes-with-vra8#extensibility-subscription) which is used to modify the VM object with notes and custom attributes. I'd like to make sure that my work inside the guest happens after that other subscription is completed, so I'll enable blocking and give it a priority of `2`:
-![Adding blocking to Configure Guest](/images/posts-2021/09/20210903_new_subscription_2.png)
+![Adding blocking to Configure Guest](20210903_new_subscription_2.png)
After hitting the **Save** button, I go back to that other `VM Post-Provisioning` subscription, set it to enable blocking, and give it a priority of `1`:
-![Blocking VM Post-Provisioning](/images/posts-2021/09/20210903_old_subscription_blocking.png)
+![Blocking VM Post-Provisioning](20210903_old_subscription_blocking.png)
This will ensure that the new subscription fires after the older one completes, and that should avoid any conflicts between the two.
### Testing
Alright, now let's see if it worked. I head into Service Broker to submit the deployment request:
-![Submitting the test deployment](/images/posts-2021/09/20210903_request.png)
+![Submitting the test deployment](20210903_request.png)
Note that I've set the disk size to 65GB (up from the default of 60), and I'm adding `lab\testy` as a local admin on the deployed system.
Once the deployment finishes, I can switch back to Cloud Assembly and check **Extensibility > Activity > Action Runs** and then click on the `configureGuest` run to see how it did.
-![Successful action run](/images/posts-2021/09/20210903_action_run_success.png)
+![Successful action run](20210903_action_run_success.png)
It worked!
@@ -545,10 +545,10 @@ TaskPath TaskName
```
So it *claims* to have successfully updated the VM tools, added `lab\testy` to the local `Administrators` group, extended the `C:` volume to fill the 65GB virtual disk, added firewall rules to permit remote access, and created a scheduled task to apply updates. I can open a console session to the VM to spot-check the results.
-![Verifying local admins](/images/posts-2021/09/20210903_verify_local_admins.png)
+![Verifying local admins](20210903_verify_local_admins.png)
Yep, `testy` is an admin now!
-![Verify disk size](/images/posts-2021/09/20210903_verify_disk_size.png)
+![Verify disk size](20210903_verify_disk_size.png)
And `C:` fills the disk!
### Wrap-up
diff --git a/static/images/posts-2021/10/20211027_creation_time.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_creation_time.png
similarity index 100%
rename from static/images/posts-2021/10/20211027_creation_time.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_creation_time.png
diff --git a/static/images/posts-2021/10/20211027_firewall.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_firewall.png
similarity index 100%
rename from static/images/posts-2021/10/20211027_firewall.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_firewall.png
diff --git a/static/images/posts-2021/10/20211027_instance_creation.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_instance_creation.png
similarity index 100%
rename from static/images/posts-2021/10/20211027_instance_creation.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_instance_creation.png
diff --git a/static/images/posts-2021/10/20211027_network_settings.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_network_settings.png
similarity index 100%
rename from static/images/posts-2021/10/20211027_network_settings.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_network_settings.png
diff --git a/static/images/posts-2021/10/20211027_security_settings.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_security_settings.png
similarity index 100%
rename from static/images/posts-2021/10/20211027_security_settings.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211027_security_settings.png
diff --git a/static/images/posts-2021/10/20211028_instance_advanced_settings.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_instance_advanced_settings.png
similarity index 100%
rename from static/images/posts-2021/10/20211028_instance_advanced_settings.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_instance_advanced_settings.png
diff --git a/static/images/posts-2021/10/20211028_mobile_vsphere_sucks.jpg b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_mobile_vsphere_sucks.jpg
similarity index 100%
rename from static/images/posts-2021/10/20211028_mobile_vsphere_sucks.jpg
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_mobile_vsphere_sucks.jpg
diff --git a/static/images/posts-2021/10/20211028_qrcode_config.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_qrcode_config.png
similarity index 100%
rename from static/images/posts-2021/10/20211028_qrcode_config.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_qrcode_config.png
diff --git a/static/images/posts-2021/10/20211028_remote_homelab.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_remote_homelab.png
similarity index 100%
rename from static/images/posts-2021/10/20211028_remote_homelab.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_remote_homelab.png
diff --git a/static/images/posts-2021/10/20211028_tasker_setup.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_tasker_setup.png
similarity index 100%
rename from static/images/posts-2021/10/20211028_tasker_setup.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_tasker_setup.png
diff --git a/static/images/posts-2021/10/20211028_wireguard_in_the_cloud.jpg b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_wireguard_in_the_cloud.jpg
similarity index 100%
rename from static/images/posts-2021/10/20211028_wireguard_in_the_cloud.jpg
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_wireguard_in_the_cloud.jpg
diff --git a/static/images/posts-2021/10/20211028_wireguard_mobile.png b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_wireguard_mobile.png
similarity index 100%
rename from static/images/posts-2021/10/20211028_wireguard_mobile.png
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/20211028_wireguard_mobile.png
diff --git a/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access.md b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/index.md
similarity index 96%
rename from content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access.md
rename to content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/index.md
index 1c09dd4..68ed014 100644
--- a/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access.md
+++ b/content/posts/2021/10/cloud-based-wireguard-vpn-remote-homelab-access/index.md
@@ -1,8 +1,8 @@
---
series: Projects
date: "2021-10-28T00:00:00Z"
-thumbnail: images/posts-2021/10/20211028_wireguard_in_the_cloud.jpg
-usePageBundles: false
+thumbnail: 20211028_wireguard_in_the_cloud.jpg
+usePageBundles: true
tags:
- linux
- gcp
@@ -46,10 +46,10 @@ I started by logging into my Google Cloud account at https://console.cloud.googl
| Boot Disk Size | 10 GB |
| Boot Disk Image | Ubuntu 20.04 LTS |
-![Instance creation](/images/posts-2021/10/20211027_instance_creation.png)
+![Instance creation](20211027_instance_creation.png)
The other defaults are fine, but I'll holding off on clicking the friendly blue "Create" button at the bottom and instead click to expand the **Networking, Disks, Security, Management, Sole-Tenancy** sections to tweak a few more things.
-![Instance creation advanced settings](/images/posts-2021/10/20211028_instance_advanced_settings.png)
+![Instance creation advanced settings](20211028_instance_advanced_settings.png)
##### Network Configuration
Expanding the **Networking** section of the request form lets me add a new `wireguard` network tag, which will make it easier to target the instance with a firewall rule later. I also want to enable the _IP Forwarding_ option so that the instance will be able to do router-like things.
@@ -60,7 +60,7 @@ I can do that by clicking on the _Default_ network interface to expand the confi
Anyway, after switching to the cheaper Standard tier I can click on the **External IP** dropdown and select the option to _Create IP Address_. I give it the same name as my instance to make it easy to keep up with.
-![Network configuration](/images/posts-2021/10/20211027_network_settings.png)
+![Network configuration](20211027_network_settings.png)
##### Security Configuration
The **Security** section lets me go ahead and upload an SSH public key that I can then use for logging into the instance once it's running. Of course, that means I'll first need to generate a key pair for this purpose:
@@ -70,18 +70,18 @@ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_wireguard
Okay, now that I've got my keys, I can click the **Add Item** button and paste in the contents of `~/.ssh/id_ed25519_wireguard.pub`.
-![Security configuration](/images/posts-2021/10/20211027_security_settings.png)
+![Security configuration](20211027_security_settings.png)
And that's it for the pre-deploy configuration! Time to hit **Create** to kick it off.
-![Do it!](/images/posts-2021/10/20211027_creation_time.png)
+![Do it!](20211027_creation_time.png)
The instance creation will take a couple of minutes but I can go ahead and get the firewall sorted while I wait.
#### Firewall
Google Cloud's default firewall configuration will let me reach my new server via SSH without needing to configure anything, but I'll need to add a new rule to allow the WireGuard traffic. I do this by going to **VPC > Firewall** and clicking the button at the top to **[Create Firewall Rule](https://console.cloud.google.com/networking/firewalls/add)**. I give it a name (`allow-wireguard-ingress`), select the rule target by specifying the `wireguard` network tag I had added to the instance, and set the source range to `0.0.0.0/0`. I'm going to use the default WireGuard port so select the _udp:_ checkbox and enter `51820`.
-![Firewall rule creation](/images/posts-2021/10/20211027_firewall.png)
+![Firewall rule creation](20211027_firewall.png)
I'll click **Create** and move on.
@@ -404,7 +404,7 @@ peer: {CB_PUBLIC_KEY}
```
And I can even access my homelab when not at home!
-![Remote access to my homelab!](/images/posts-2021/10/20211028_remote_homelab.png)
+![Remote access to my homelab!](20211028_remote_homelab.png)
#### Android Phone
Being able to copy-and-paste the required public keys between the WireGuard app and the SSH session to the GCP instance made it relatively easy to set up the Chromebook, but things could be a bit trickier on a phone without that kind of access. So instead I will create the phone's configuration on the WireGuard server in the cloud, render that config file as a QR code, and simply scan that through the phone's WireGuard app to import the settings.
@@ -452,13 +452,13 @@ Back in the `clients/` directory, I can use `qrencode` to render the phone confi
```sh
qrencode -t ansiutf8 < phone1.conf
```
-![QR code config](/images/posts-2021/10/20211028_qrcode_config.png)
+![QR code config](20211028_qrcode_config.png)
And then I just open the WireGuard app on my phone and use the **Scan from QR Code** option. After a successful scan, it'll prompt me to name the new tunnel, and then I should be able to connect right away.
-![Successful mobile connection](/images/posts-2021/10/20211028_wireguard_mobile.png)
+![Successful mobile connection](20211028_wireguard_mobile.png)
I can even access my vSphere lab environment - not that it offers a great mobile experience...
-![vSphere mobile sucks](/images/posts-2021/10/20211028_mobile_vsphere_sucks.jpg)
+![vSphere mobile sucks](20211028_mobile_vsphere_sucks.jpg)
Before moving on too much further, though, I'm going to clean up the keys and client config file that I generated on the GCP instance. It's not great hygiene to keep a private key stored on the same system it's used to access.
@@ -476,7 +476,7 @@ Two quick pre-requisites first:
On to the Tasker config. The only changes will be in the [VPN on Strange Wifi](/auto-connect-to-protonvpn-on-untrusted-wifi-with-tasker#vpn-on-strange-wifi) profile. I'll remove the OpenVPN-related actions from the Enter and Exit tasks and replace them with the built-in **Tasker > Tasker Function WireGuard Set Tunnel** action.
For the Enter task, I'll set the tunnel status to `true` and specify the name of the tunnel as configured in the WireGuard app; the Exit task gets the status set to `false` to disable the tunnel. Both actions will be conditional upon the `%TRUSTED_WIFI` variable being unset.
-![Tasker setup](/images/posts-2021/10/20211028_tasker_setup.png)
+![Tasker setup](20211028_tasker_setup.png)
```
Profile: VPN on Strange WiFi
diff --git a/static/images/posts-2021/11/20211105_export_selfsigned_ca.png b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_export_selfsigned_ca.png
similarity index 100%
rename from static/images/posts-2021/11/20211105_export_selfsigned_ca.png
rename to content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_export_selfsigned_ca.png
diff --git a/static/images/posts-2021/11/20211105_get_salty.png b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_get_salty.png
similarity index 100%
rename from static/images/posts-2021/11/20211105_get_salty.png
rename to content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_get_salty.png
diff --git a/static/images/posts-2021/11/20211105_ssc_403.png b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_ssc_403.png
similarity index 100%
rename from static/images/posts-2021/11/20211105_ssc_403.png
rename to content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_ssc_403.png
diff --git a/static/images/posts-2021/11/20211105_vidm_login.png b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_vidm_login.png
similarity index 100%
rename from static/images/posts-2021/11/20211105_vidm_login.png
rename to content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/20211105_vidm_login.png
diff --git a/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm.md b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/index.md
similarity index 95%
rename from content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm.md
rename to content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/index.md
index b751498..b09a498 100644
--- a/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm.md
+++ b/content/posts/2021/11/fixing-403-error-ssc-8-6-vra-idm/index.md
@@ -1,8 +1,8 @@
---
series: vRA8
date: "2021-11-05T00:00:00Z"
-thumbnail: images/posts-2021/11/20211105_ssc_403.png
-usePageBundles: false
+thumbnail: 20211105_ssc_403.png
+usePageBundles: true
tags:
- vra
- lcm
@@ -15,7 +15,7 @@ I've been wanting to learn a bit more about [SaltStack Config](https://www.vmwar
### The Problem
Unfortunately I ran into a problem immediately after the deployment completed:
-![403 error from SSC](/images/posts-2021/11/20211105_ssc_403.png)
+![403 error from SSC](20211105_ssc_403.png)
Instead of being redirected to the vIDM authentication screen, I get a 403 Forbidden error.
@@ -57,7 +57,7 @@ I fumbled around for a bit and managed to get the required certs added to the sy
So here's what I did to get things working in my homelab:
1. Point a browser to my vRA instance, click on the certificate error to view the certificate details, and then export the _CA_ certificate to a local file. (For a self-signed cert issued by LCM, this will likely be called something like `Automatically generated one-off CA authority for vRA`.)
-![Exporting the self-signed CA cert](/images/posts-2021/11/20211105_export_selfsigned_ca.png)
+![Exporting the self-signed CA cert](20211105_export_selfsigned_ca.png)
2. Open the file in a text editor, and copy the contents into a new file on the SSC appliance. I used `~/vra.crt`.
3. Append the certificate to the end of the system `ca-bundle.crt`:
```sh
@@ -102,9 +102,9 @@ systemctl stop raas
systemctl start raas
```
7. And then try to visit the SSC URL again. This time, it redirects successfully to vIDM:
-![Successful vIDM redirect](/images/posts-2021/11/20211105_vidm_login.png)
+![Successful vIDM redirect](20211105_vidm_login.png)
8. Log in and get salty:
-![Get salty!](/images/posts-2021/11/20211105_get_salty.png)
+![Get salty!](20211105_get_salty.png)
The steps for doing this at work with an enterprise CA were pretty similar, with just slightly-different steps 1 and 2:
1. Access the enterprise CA and download the CA chain, which came in `.p7b` format.
diff --git a/static/images/posts-2020/2MXGpB9Zd.png b/static/images/posts-2020/2MXGpB9Zd.png
deleted file mode 100644
index 977278d..0000000
Binary files a/static/images/posts-2020/2MXGpB9Zd.png and /dev/null differ
diff --git a/static/images/posts-2020/3FHDx82pi.png b/static/images/posts-2020/3FHDx82pi.png
deleted file mode 100644
index 7c382a3..0000000
Binary files a/static/images/posts-2020/3FHDx82pi.png and /dev/null differ
diff --git a/static/images/posts-2020/3SW0gmJL2.jpeg b/static/images/posts-2020/3SW0gmJL2.jpeg
deleted file mode 100644
index cee8f19..0000000
Binary files a/static/images/posts-2020/3SW0gmJL2.jpeg and /dev/null differ
diff --git a/static/images/posts-2020/4rbWYw2GD.png b/static/images/posts-2020/4rbWYw2GD.png
deleted file mode 100644
index 9c26a4e..0000000
Binary files a/static/images/posts-2020/4rbWYw2GD.png and /dev/null differ
diff --git a/static/images/posts-2020/8CP4Iqm2A.png b/static/images/posts-2020/8CP4Iqm2A.png
deleted file mode 100644
index 9e517bd..0000000
Binary files a/static/images/posts-2020/8CP4Iqm2A.png and /dev/null differ
diff --git a/static/images/posts-2020/AJJvTEOGd.png b/static/images/posts-2020/AJJvTEOGd.png
deleted file mode 100644
index 5777304..0000000
Binary files a/static/images/posts-2020/AJJvTEOGd.png and /dev/null differ
diff --git a/static/images/posts-2020/C-s9rSBl1.png b/static/images/posts-2020/C-s9rSBl1.png
deleted file mode 100644
index 5bef99c..0000000
Binary files a/static/images/posts-2020/C-s9rSBl1.png and /dev/null differ
diff --git a/static/images/posts-2020/E-hbCjlID.png b/static/images/posts-2020/E-hbCjlID.png
deleted file mode 100644
index de52e3d..0000000
Binary files a/static/images/posts-2020/E-hbCjlID.png and /dev/null differ
diff --git a/static/images/posts-2020/ErJHsTceh.png b/static/images/posts-2020/ErJHsTceh.png
deleted file mode 100644
index 07f9268..0000000
Binary files a/static/images/posts-2020/ErJHsTceh.png and /dev/null differ
diff --git a/static/images/posts-2020/FsaqyMC5B.png b/static/images/posts-2020/FsaqyMC5B.png
deleted file mode 100644
index eb484b8..0000000
Binary files a/static/images/posts-2020/FsaqyMC5B.png and /dev/null differ
diff --git a/static/images/posts-2020/V1ghdj5Tv.png b/static/images/posts-2020/V1ghdj5Tv.png
deleted file mode 100644
index 66ba45c..0000000
Binary files a/static/images/posts-2020/V1ghdj5Tv.png and /dev/null differ
diff --git a/static/images/posts-2020/apTfN_jXU.png b/static/images/posts-2020/apTfN_jXU.png
deleted file mode 100644
index 4561d7c..0000000
Binary files a/static/images/posts-2020/apTfN_jXU.png and /dev/null differ
diff --git a/static/images/posts-2020/djPxvPQ-g.png b/static/images/posts-2020/djPxvPQ-g.png
deleted file mode 100644
index 9e01dda..0000000
Binary files a/static/images/posts-2020/djPxvPQ-g.png and /dev/null differ
diff --git a/static/images/posts-2020/e-BWiBYGH.png b/static/images/posts-2020/e-BWiBYGH.png
deleted file mode 100644
index 734338e..0000000
Binary files a/static/images/posts-2020/e-BWiBYGH.png and /dev/null differ
diff --git a/static/images/posts-2020/gGD9J537v.png b/static/images/posts-2020/gGD9J537v.png
deleted file mode 100644
index 359beb8..0000000
Binary files a/static/images/posts-2020/gGD9J537v.png and /dev/null differ
diff --git a/static/images/posts-2020/gXNdLgRv4.png b/static/images/posts-2020/gXNdLgRv4.png
deleted file mode 100644
index 5a0b6dc..0000000
Binary files a/static/images/posts-2020/gXNdLgRv4.png and /dev/null differ
diff --git a/static/images/posts-2020/hJc-ozOTd.png b/static/images/posts-2020/hJc-ozOTd.png
deleted file mode 100644
index f7c6dc4..0000000
Binary files a/static/images/posts-2020/hJc-ozOTd.png and /dev/null differ
diff --git a/static/images/posts-2020/jcnA3ryHw.png b/static/images/posts-2020/jcnA3ryHw.png
deleted file mode 100644
index c8de39d..0000000
Binary files a/static/images/posts-2020/jcnA3ryHw.png and /dev/null differ
diff --git a/static/images/posts-2020/lj1r0qfrc.png b/static/images/posts-2020/lj1r0qfrc.png
deleted file mode 100644
index 73ea602..0000000
Binary files a/static/images/posts-2020/lj1r0qfrc.png and /dev/null differ
diff --git a/static/images/posts-2020/o41nRsWSb.png b/static/images/posts-2020/o41nRsWSb.png
deleted file mode 100644
index 61a4307..0000000
Binary files a/static/images/posts-2020/o41nRsWSb.png and /dev/null differ
diff --git a/static/images/posts-2020/oeebALFed.png b/static/images/posts-2020/oeebALFed.png
deleted file mode 100644
index 7b632d6..0000000
Binary files a/static/images/posts-2020/oeebALFed.png and /dev/null differ
diff --git a/static/images/posts-2020/qFLCV0gnk.png b/static/images/posts-2020/qFLCV0gnk.png
deleted file mode 100644
index ac32c1e..0000000
Binary files a/static/images/posts-2020/qFLCV0gnk.png and /dev/null differ
diff --git a/static/images/posts-2020/sKtVvk5RP.png b/static/images/posts-2020/sKtVvk5RP.png
deleted file mode 100644
index 0f24d88..0000000
Binary files a/static/images/posts-2020/sKtVvk5RP.png and /dev/null differ
diff --git a/static/images/posts-2020/tLwK-O2v6.png b/static/images/posts-2020/tLwK-O2v6.png
deleted file mode 100644
index ba4e98b..0000000
Binary files a/static/images/posts-2020/tLwK-O2v6.png and /dev/null differ
diff --git a/static/images/posts-2020/w7ohK7hKp.png b/static/images/posts-2020/w7ohK7hKp.png
deleted file mode 100644
index b993944..0000000
Binary files a/static/images/posts-2020/w7ohK7hKp.png and /dev/null differ
diff --git a/static/images/posts-2020/wh4-djxFf.png b/static/images/posts-2020/wh4-djxFf.png
deleted file mode 100644
index 13901d4..0000000
Binary files a/static/images/posts-2020/wh4-djxFf.png and /dev/null differ
diff --git a/static/images/posts-2020/y9qAxY8iD.png b/static/images/posts-2020/y9qAxY8iD.png
deleted file mode 100644
index 5b9793c..0000000
Binary files a/static/images/posts-2020/y9qAxY8iD.png and /dev/null differ