Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ad-login extension template copy #4

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open

ad-login extension template copy #4

wants to merge 28 commits into from

Conversation

yabracadabra
Copy link
Contributor

No description provided.

@yabracadabra yabracadabra marked this pull request as ready for review March 9, 2023 13:20
bittrance
bittrance previously approved these changes Apr 25, 2023
Copy link

@bittrance bittrance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, looking good. Some style comments below.

modules/azure/linux-vm/extensions.tf Outdated Show resolved Hide resolved
modules/azure/linux-vm/extensions.tf Outdated Show resolved Hide resolved

# ad_group_owners = ["user.name@example.com", "user.name_2@example_2.com"]
data "azuread_users" "ad_group_owners" {
user_principal_names = var.ad_group_owners

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not be better to create a nonsense user principal and set it as owner?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, something similar to managed identity or service principle shall be implemented in a future version.

validation/azure/linux-vm/main.tf Outdated Show resolved Hide resolved
@@ -16,15 +16,12 @@ module "linux_adextension" {
version = "test"
caching = "test"
storage_account_type = "SSD"
disk_size_gb = 128
disk_size_gb = 64

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is declared as an optional string. Why does this not fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number vs String in module, could be int32., will modify the variables.tf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number vs String in module, could be int32.

modules/azure/linux-vm/extensions.tf Outdated Show resolved Hide resolved
@@ -6,7 +6,7 @@ resource "azurerm_linux_virtual_machine" "vm" {
}
name = "vm-${var.environment}-${var.location_short}-${each.value.vm_name}"
location = var.location
resource_group_name = each.value.rg_name
resource_group_name = var.rg_name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: This should be azurerm_resource_group.rg.name. Some more below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants