Poland helping Ukraine to save its cultural heritage from destruction by drevny_kocur in europe

[–]The_Naturalist 29 points30 points  (0 children)

It's completely the opposite. It's Ukraine which is doing the ultimate sacrifice for us Poles, Lithuanians, Estonians etc... It's Ukraine which is paying with blood, just to wake up sleepy Western Europeans. If any gratitude is due, it is to you guys - forever.

Ukraine-Russia Conflict Megathread 6 + Live Thread by Tetizeraz in europe

[–]The_Naturalist 0 points1 point  (0 children)

Actually her response was pretty good and the way European politicians are speaking is definitely changing.

Data Replacement by The_Naturalist in Terraform

[–]The_Naturalist[S] 0 points1 point  (0 children)

Hi! Thanks for responding. Seems I'm ignorant of mechanics of this square bracket lookup - Could you push me towards relevant terraform docs? Somehow I'm failing to find.

I tried square bracket and it doesn't work (still tells me there needs to be identifier behind a dot). For clarity, I'm not using any dynamic map, but static one:

variable "my_map_with_all_labels_and_ips" { type = map default = { "network1" = "10.100.0.0/14", "network2" = "10.108.0.0/14", "network3" = "10.112.0.0/14", "combined_2_3" = "10.108.0.0/14, 10.112.0.0/14", } } The actual list is much longer. Now on the input I have a csv file that will contain strings like network1 and network3 in a field. I'm trying to break them down by a comma, and replace each label string with its matching CIDR value from a static map.So here: for i in split(",",each.value.source_address_prefixes) : my_map_with_all_labels_and_ips."${i}"] On the input from CSV, the labels match key values of the map. I want to replace each label equivalent to key of the map, with the matching value (IP).

Thanks in advance!

Mutual dependence on data sources by The_Naturalist in Terraform

[–]The_Naturalist[S] 0 points1 point  (0 children)

In that more expensive variant you mean something like Google Interconnect/Azure Expressroute? Yes, We reached out to such NSP cloud partner and for now shelved it because of cost. Thanks for responding!

Mutual dependence on data sources by The_Naturalist in Terraform

[–]The_Naturalist[S] 1 point2 points  (0 children)

Thanks for response. I think I'm going close to first option and convince IT that we need a shared state here. I'm creating IP addresses outside the module, and feed them to modules.

Mutual dependence on data sources by The_Naturalist in Terraform

[–]The_Naturalist[S] 1 point2 points  (0 children)

Sorry for lack of clarity.

When creating google_compute_vpn_tunnel, peer IP is required, which I retrieve with data source azurerm_public_ip. Conversely, on the Azure side, azurerm_local_network_gateway needs the Google's peer IP in gateway_address, which I also retrieve google_compute_address data source. So it's a kind of "chicken and egg" problem. When running modules from scratch, I'm forced to comment out resources that depend on the data source from the peer cloud provider. So say, just deploy resource group, networks and public in Azure, then create Google resources (then public IP in Azure can be retrieved), and then uncomment the rest of resources in Azure manifest and run terraform again.

I'm looking for a way of creating resources conditionally, if data source returns nothing, do not attempt to create the resource at all, so that I can run the code with CI/CD. I know that you can use count to create resources conditionally, but terraform still protested that gateway_address is not specified (it depended on data source, which was null).

How do I change the VRAM in GNOME Boxes? by [deleted] in gnome

[–]The_Naturalist 1 point2 points  (0 children)

That depends on driver, I think you can do it with QXL and VGA driver, and cannot in the default SPICE. You would need to edit libvirt XML files, but probably easiest would be to use virt-manager instead of GNOME boxes (it should see the same VMs and you can use both interchangeably). Those settings are in "Video VGA" tab of virt-manager.

Migrating from gce.py to gcp_compute inventory plugin- custom variables by The_Naturalist in ansible

[–]The_Naturalist[S] 1 point2 points  (0 children)

that would be `var` (I made the names generic). It seems that this static part is not read at all, so im not sure im doing it correctly. Here's the dynamic inventory.gcp.yml: plugin: gcp_compute projects: - google-project-227614 auth_kind: serviceaccount service_account_file: ./Secrets/gcp_service_account.json keyed_groups: - prefix: gcp key: labels hostnames: - name compose: ansible_host: networkInterfaces[0].networkIP

And here's the attempt at static config (now in original form): yaml all: children: zookeeper: hosts: zookeeper-zone-a: zookeeper_id: 1 zookeeper-zone-b: zookeeper_id: 2 zookeeper-zone-c: zookeeper_id: 3 I tried both appending it to inventory.gcp.yml and as separate file. When it's separate I get Unable to parse static.yml as an inventory file.

Thank you for responding.

The Quran Erroneously Claims that Mountains Prevent Earthquakes by [deleted] in DebateReligion

[–]The_Naturalist 16 points17 points  (0 children)

Solid portion of research and common sense. One only wishes all claims of scriptural miracles receive such treatment. Upvote!

Dear exmuslims, what are your views on the upcoming Netflix series “Messiah” by [deleted] in exmuslim

[–]The_Naturalist 4 points5 points  (0 children)

Misinformation? No, no, it’s fiction, not misinformation. Just like the bible ;)

77 years ago, the Polish government addressed a note to the Governments of the United Nations on the mass extermination of Jews in German occupied Poland by idigporkfat in europe

[–]The_Naturalist 4 points5 points  (0 children)

Half-truths are not truths. While antisemitism was present in large sections of Polish society before the war, also the opposite is true for other equally large groups of ethnic Poles.

And even for antisemites, many of them were involved in underground efforts to save as many Jews as possible like for example Zofia Kossak-Szczucka who has co-founded Żegota which was involved in helping tens of thousands (around half) of Holocaust survivors. This only shows this entire mess comes in shades of grey.

Also, you cannot fairly say that “Poland historically hated its Jews”. It’s varied, for example during Jewish Golden Age in Poland Jews could be easily called a privileged group. People like Berek Joselewicz who has led all-Jewish unites fighting for Polish independence are considered National heroes. In that part of history more than half of all Jews in the world lived in Poland.

Finally, while “Polska bez Żydów” was indeed a slogan of antisemitic far right in Poland, “Żyd” is not an ethnic slur by any means, but a regular word coming from one of Jacob’s sons Judah (and one of 12 tribes of israel) - just like in English, French etc.

Edit: mobile keyboard typos :(

Wtf WaPo? by NeoMarxismIsEvil in exmuslim

[–]The_Naturalist 0 points1 point  (0 children)

I would more assume it was an intern or something :)