Skip to content

Commit

Permalink
libvirt: use command instead of which to test cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed May 24, 2022
1 parent 6afa11f commit 51c834c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libvirt/modules/drbd_node/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down
2 changes: 1 addition & 1 deletion libvirt/modules/hana_node/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down
2 changes: 1 addition & 1 deletion libvirt/modules/iscsi_server/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down
2 changes: 1 addition & 1 deletion libvirt/modules/majority_maker_node/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down
2 changes: 1 addition & 1 deletion libvirt/modules/monitoring/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down
2 changes: 1 addition & 1 deletion libvirt/modules/netweaver_node/salt_provisioner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "null_resource" "wait_after_cloud_init" {

provisioner "remote-exec" {
inline = [
"if which cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
"if command -v cloud-init; then cloud-init status --wait; else echo no cloud-init installed; fi"
]
}

Expand Down

0 comments on commit 51c834c

Please sign in to comment.