Skip to content

Commit 2092fbb

Browse files
committed
fix: missing tags -- policy
1 parent e1b8c3b commit 2092fbb

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

ansible/playbooks/roles/teleport-master/tasks/users.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
dest: /tmp/admin-role.yaml
1111
mode: '0644'
1212

13+
- name: Deploy bot-admin role template
14+
ansible.builtin.template:
15+
src: templates/roles/bot-admin-role.yaml.j2
16+
dest: /tmp/bot-admin-role.yaml
17+
mode: '0644'
18+
1319
- name: Deploy dev role template
1420
ansible.builtin.template:
1521
src: templates/roles/developer-role.yaml.j2
@@ -42,6 +48,12 @@
4248
args:
4349
executable: /bin/bash
4450

51+
- name: Apply bot-admin role
52+
ansible.builtin.shell: |
53+
tctl create -f /tmp/admin-role.yaml --force
54+
args:
55+
executable: /bin/bash
56+
4557
- name: Apply developer role
4658
ansible.builtin.shell: |
4759
tctl create -f /tmp/developer-role.yaml --force
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
kind: role
2+
version: v5
3+
metadata:
4+
name: bot-admin
5+
spec:
6+
allow:
7+
resources: ["bot", "token"]
8+
verbs: ["read", "list", "create", "update", "delete"]

terraform/modules/vm/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resource "azurerm_public_ip" "public_ip" {
44
location = var.location
55
allocation_method = "Static"
66
sku = "Standard"
7+
tags = var.tags
78
}
89

910
resource "azurerm_network_interface" "nic" {
@@ -17,6 +18,8 @@ resource "azurerm_network_interface" "nic" {
1718
private_ip_address_allocation = "Dynamic"
1819
public_ip_address_id = azurerm_public_ip.public_ip.id
1920
}
21+
22+
tags = var.tags
2023
}
2124

2225
resource "azurerm_linux_virtual_machine" "vm" {

0 commit comments

Comments
 (0)