Skip to content

Commit b29029e

Browse files
committed
fix: creator tags for packer
1 parent 0fbfb0c commit b29029e

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

ebssurrogate/scripts/surrogate-bootstrap-nix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ EOF
214214
# Run Ansible playbook
215215
#export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_DEBUG=True && export ANSIBLE_REMOTE_TEMP=/mnt/tmp
216216
export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_REMOTE_TEMP=/mnt/tmp
217-
ansible-playbook -c chroot -i '/mnt,' /tmp/ansible-playbook/ansible-nix/playbook.yml -vvv $ARGS
217+
ansible-playbook -c chroot -i '/mnt,' /tmp/ansible-playbook/ansible-nix/playbook.yml $ARGS
218218
}
219219

220220
function update_systemd_services {

scripts/nix-provision.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ EOF
3333
# Run Ansible playbook
3434
#export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_DEBUG=True && export ANSIBLE_REMOTE_TEMP=/tmp
3535
export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_REMOTE_TEMP=/tmp
36-
ansible-playbook /tmp/ansible-playbook/stage2/playbook.yml -vvv $ARGS
36+
ansible-playbook /tmp/ansible-playbook/stage2/playbook.yml $ARGS
3737
}
3838

3939

stage2-nix-psql.pkr.hcl

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,25 @@ source "amazon-ebs" "ubuntu" {
6666
}
6767
ssh_username = "ubuntu"
6868
ena_support = true
69-
69+
run_tags = {
70+
creator = "packer"
71+
appType = "postgres"
72+
packerExecutionId = "${var.packer-execution-id}"
73+
}
74+
run_volume_tags = {
75+
creator = "packer"
76+
appType = "postgres"
77+
}
78+
snapshot_tags = {
79+
creator = "packer"
80+
appType = "postgres"
81+
}
82+
tags = {
83+
creator = "packer"
84+
appType = "postgres"
85+
postgresVersion = "${var.postgres-version}"
86+
sourceSha = "${var.git-head-version}"
87+
}
7088
}
7189

7290
build {

0 commit comments

Comments
 (0)