Removed registry login
This commit is contained in:
parent
519d86bb40
commit
d6a61a42e4
@ -28,12 +28,6 @@
|
|||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
name: docker-compose
|
name: docker-compose
|
||||||
|
|
||||||
- name: Log into registry
|
|
||||||
docker_login:
|
|
||||||
registry: registry.flokaiser.com
|
|
||||||
username: "{{ REGISTRY_USERNAME }}"
|
|
||||||
password: "{{ REGISTRY_PASSWORD }}"
|
|
||||||
|
|
||||||
- name: clone repository
|
- name: clone repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://git.flokaiser.com/DHBW/Cloud_Computing_II.git
|
repo: https://git.flokaiser.com/DHBW/Cloud_Computing_II.git
|
||||||
@ -52,8 +46,4 @@
|
|||||||
AZURE_KEY: "{{ AZURE_KEY }}"
|
AZURE_KEY: "{{ AZURE_KEY }}"
|
||||||
AZURE_LOCATION: "{{ AZURE_LOCATION }}"
|
AZURE_LOCATION: "{{ AZURE_LOCATION }}"
|
||||||
AZURE_ENDPOINT: "https://api.cognitive.microsofttranslator.com"
|
AZURE_ENDPOINT: "https://api.cognitive.microsofttranslator.com"
|
||||||
ENV: "dev"
|
ENV: "dev"
|
||||||
|
|
||||||
- name: Log out of DockerHub
|
|
||||||
docker_login:
|
|
||||||
state: absent
|
|
@ -52,16 +52,6 @@ variable "cloudflare_token" {
|
|||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "registry_username" {
|
|
||||||
type = string
|
|
||||||
sensitive = true
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "registry_password" {
|
|
||||||
type = string
|
|
||||||
sensitive = true
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "random_string" "lower" {
|
resource "random_string" "lower" {
|
||||||
length = 16
|
length = 16
|
||||||
upper = false
|
upper = false
|
||||||
@ -242,6 +232,6 @@ resource "azurerm_linux_virtual_machine" "example" {
|
|||||||
|
|
||||||
# Ansible
|
# Ansible
|
||||||
provisioner "local-exec" {
|
provisioner "local-exec" {
|
||||||
command = "ansible-playbook --ssh-common-args='-o StrictHostKeyChecking=no' --extra-vars CERTBOT_EMAIL='${var.certbot_email}' --extra-vars REGISTRY_USERNAME='${var.registry_username}' --extra-vars REGISTRY_PASSWORD='${var.registry_password}' --extra-vars AZURE_KEY='${azurerm_cognitive_account.example.primary_access_key}' --extra-vars AZURE_LOCATION='${var.azure_location_ca}' --extra-vars DATABASE_URL='${azurerm_cosmosdb_account.example.connection_strings.0}' -i adminuser@'${azurerm_public_ip.example.ip_address}', ../ansible/provision.yml"
|
command = "ansible-playbook --ssh-common-args='-o StrictHostKeyChecking=no' --extra-vars CERTBOT_EMAIL='${var.certbot_email}' --extra-vars AZURE_KEY='${azurerm_cognitive_account.example.primary_access_key}' --extra-vars AZURE_LOCATION='${var.azure_location_ca}' --extra-vars DATABASE_URL='${azurerm_cosmosdb_account.example.connection_strings.0}' -i adminuser@'${azurerm_public_ip.example.ip_address}', ../ansible/provision.yml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,4 @@ azure_location_ca = "germanywestcentral"
|
|||||||
azure_location = "westeurope"
|
azure_location = "westeurope"
|
||||||
certbot_email = ""
|
certbot_email = ""
|
||||||
zone_id = ""
|
zone_id = ""
|
||||||
cloudflare_token = ""
|
cloudflare_token = ""
|
||||||
registry_username = ""
|
|
||||||
registry_password = ""
|
|
Loading…
Reference in New Issue
Block a user