Skip to content

Commit d043920

Browse files
authored
Merge pull request #4 from oracle-devrel/dev
fixes - public ip and scripts path
2 parents 50cbceb + 54d92d3 commit d043920

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

main.tf

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ data "template_cloudinit_config" "cloud_init" {
5454
}
5555

5656
locals {
57-
php_script = "~/install_php74.sh"
58-
security_script = "~/configure_local_security.sh"
59-
create_drupal_db = "~/create_drupal_db.sh"
60-
install_drupal = "~/install_drupal.sh"
61-
htaccess = "~/htaccess"
62-
indexhtml = "~/index.html"
57+
php_script = "/home/${var.vm_user}/install_php74.sh"
58+
security_script = "/home/${var.vm_user}/configure_local_security.sh"
59+
create_drupal_db = "/home/${var.vm_user}/create_drupal_db.sh"
60+
install_drupal = "/home/${var.vm_user}/install_drupal.sh"
61+
htaccess = "/home/${var.vm_user}/htaccess"
62+
indexhtml = "/home/${var.vm_user}/index.html"
6363
}
6464

6565
data "oci_core_subnet" "drupal_subnet_ds" {
@@ -337,6 +337,9 @@ resource "oci_core_public_ip" "drupal_public_ip_for_single_node" {
337337
# private_ip_id = var.numberOfNodes == 1 ? data.oci_core_private_ips.drupal_private_ips1.private_ips[0]["id"] : null
338338
private_ip_id = data.oci_core_private_ips.drupal_private_ips1.private_ips[0]["id"]
339339
defined_tags = var.defined_tags
340+
lifecycle {
341+
ignore_changes = [defined_tags]
342+
}
340343
}
341344

342345
resource "oci_core_public_ip" "drupal_public_ip_for_multi_node" {
@@ -345,6 +348,9 @@ resource "oci_core_public_ip" "drupal_public_ip_for_multi_node" {
345348
display_name = "drupal_public_ip_for_multi_node"
346349
lifetime = "RESERVED"
347350
defined_tags = var.defined_tags
351+
lifecycle {
352+
ignore_changes = [defined_tags]
353+
}
348354
}
349355

350356
data "template_file" "install_drupal" {

0 commit comments

Comments
 (0)