semaphore

This commit is contained in:
faten 2025-05-13 09:28:58 +00:00
parent 7cfd856748
commit d1c3844aa7
5 changed files with 68 additions and 8 deletions

1
ansible.cfg Normal file
View File

@ -0,0 +1 @@

5
hosts
View File

@ -1,6 +1,9 @@
;[all]
;stg-feten-vm2
[semaphore]
semaphore_vm ansible_host=51.255.97.175 ansible_user=ubuntu ansible_become=true
;[semaphore]
;newVmSemaphore ansible_host=49.255.97.183 ansible_user=ubuntu ansible_become=true

57
infra/semaphore.json Normal file
View File

@ -0,0 +1,57 @@
{
"application_name": "SemaphoreUI ",
"network": [
{
"name": "semaphore_network",
"bastion_access": "no",
"subnet": {
"name": "semaphore_subnet",
"ip_version": 4,
"cidr": "192.168.1.0/24",
"dns_servers": ["8.8.8.8"],
"linked_router": [{"router_name": "semaphore_router"}]
}
}
],
"router": [
{
"router_name": "semaphore_router",
"router_external_gateway": "4dd87d1c-9feb-40a2-9b3c-e532c80fe2e5",
"linked_subnets": [
{
"router_interface_name": "semaphore_interface",
"subnet_name": "semaphore_subnet"
}
]
}
],
"security_group": [
{
"name": "semaphore_sg",
"description": "Security group for vm_semaphore",
"rules": [
{
"name": "Ingress_ssh",
"description": "Allow SSH",
"direction": "ingress",
"port_range_max": 22,
"port_range_min": 22,
"protocol": "tcp",
"remote_ip_prefix": "0.0.0.0/0"
}
]
}
],
"instance": [
{
"name": "vm_semaphore2",
"az": "FR_Roubaix",
"flavor": "v3-starter-1",
"image": "Ubuntu 22.04 LTS (x86_64) [2023-10-26]",
"keypair": "semaphore_keypair",
"security_group": ["semaphore_sg"],
"network": [{"name": "semaphore_network"}]
}
]
}

View File

@ -1,7 +1 @@
$ANSIBLE_VAULT;1.1;AES256
62303632316333616431643931383639333964323332383737666531646432643263656432326432
3336326461306235643638626332613864646536666334640a376665393432653761353337376464
34653230393836383062323336626331323266643639393936646237323736363364343531373538
3530333930353631360a636433393431656165323034373832633333303966623235613231643764
31333136353864373061353065323234373732663335373661336235336437366363316235663633
6566663036666532313766323861643663383433343737636563
ewBwmwzP7teCSIXNj5fod1qKUibAQNmwzP

5
semaphore.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
export OS_CLOUD="felcloud_staging"
export PULUMI_STACK="staging"
export PULUMI_SUB_STACK="semaphore"
export PULUMI_CONFIG_PASSPHRASE_FILE="/etc/ansible/pulumi_passphrase"