89luca89/terrible

Support for FreeBSD

Closed this issue · 5 comments

Could be really nice to have the support for FreeBSD.

An important note to take in mind is that FreeBSD doesn't have python3 installed at first boot. For this reason could be reasonable to prevent this kind of problem installing this package (and eventually others) from the .tf file, during the Terraform apply.

Yes, there is a related issue #6 that would enable this kind of deployment

An important note about the implementation of the support for FreeBSD:
The idea to solve the compatibility problems, due to the impossibility to previously know the OS (at terraform time), is to set another variable specifically for the ansible_os_family. So for FreeBSD will be ansible_os_family: FreeBSD.

We should make our os_family variable maybe, to not interfere with ansible_os_family maybe?

this implementation also depends on #6 as that "custom provisioners" is what should be specified inside the custom os vars

Now that #6 is merged, you should be able to set

terraform_custom_provisioners:
    - "pkg install python3"

in the os/vars of FreeBSD